Skip to main content

Hello all,

first of all thanks for your support!

Since few days I am facing error in the S2cloudless related to its site packages. IN particular, with package skimage and arraycrop. See the errror below. Thanks for any hint.


with best regards,


Marcela Doubkova


File “C:\Users\Marcela\Documents\2_code\module_read_in.py”, line 8, in <module>
from s2cloudless import CloudMaskRequest

File “C:\Users\Marcela\Anaconda3\envs\PESSL_36\lib\site-packages\s2cloudless_init_.py”, line 5, in <module>
from .S2PixelCloudDetector import S2PixelCloudDetector, CloudMaskRequest, MODEL_EVALSCRIPT, S2_BANDS_EVALSCRIPT

File “C:\Users\Marcela\Anaconda3\envs\PESSL_36\lib\site-packages\s2cloudless\S2PixelCloudDetector.py”, line 1972, in <module>
from skimage.morphology import disk, dilation


File “C:\Users\Marcela\Anaconda3\envs\PESSL_36\lib\site-packages\skimage_init_.py”, line 167, in <module>

from .util.dtype import (img_as_float32,

File “C:\Users\Marcela\Anaconda3\envs\PESSL_36\lib\site-packages\skimage\util_init_.py”, line 8, in <module>
from .arraycrop import crop

File “C:\Users\Marcela\Anaconda3\envs\PESSL_36\lib\site-packages\skimage\util\arraycrop.py”, line 8, in <module>

from numpy.lib.arraypad import _validate_lengths
ImportError: cannot import name '_validate_lengths’

Looks like a problem in scikit-image (i.e. see this post). Solution apparently is to upgrade scikit-image.


Thank you, for your time,

sorry, I was reacting way too fast under stress at the meeting.
Will try to avoid it next time.
 


Reply