ImportError: cannot import name '_validate_lengths'
See original GitHub issueE:\repos\tensorflow>pushd E:\repos\tensorflow
E:\repos\tensorflow>ludwig experiment --data_csv translation.csv --model_definition_file model_definition.yaml
e:\programdata\anaconda3\lib\site-packages\h5py_init_.py:36: FutureWarning: Conversion of the second argument of issubdtype from float
to np.floating
is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type
.
from .conv import register_converters as register_converters
Traceback (most recent call last):
File “e:\programdata\anaconda3\lib\runpy.py”, line 193, in run_module_as_main
“main”, mod_spec)
File “e:\programdata\anaconda3\lib\runpy.py”, line 85, in run_code
exec(code, run_globals)
File "E:\ProgramData\Anaconda3\Scripts\ludwig.exe_main.py", line 5, in <module>
File "e:\programdata\anaconda3\lib\site-packages\ludwig_init.py", line 16, in <module>
from ludwig.api import LudwigModel
File “e:\programdata\anaconda3\lib\site-packages\ludwig\api.py”, line 39, in <module>
from ludwig.data.postprocessing import postprocess_df, postprocess
File “e:\programdata\anaconda3\lib\site-packages\ludwig\data\postprocessing.py”, line 19, in <module>
from ludwig.features.feature_registries import output_type_registry
File “e:\programdata\anaconda3\lib\site-packages\ludwig\features\feature_registries.py”, line 33, in <module>
from ludwig.features.image_feature import ImageBaseFeature
File “e:\programdata\anaconda3\lib\site-packages\ludwig\features\image_feature.py”, line 24, in <module>
from skimage.io import imread
File "e:\programdata\anaconda3\lib\site-packages\skimage_init.py", line 158, in <module>
from .util.dtype import *
File "e:\programdata\anaconda3\lib\site-packages\skimage\util_init.py", line 7, in <module>
from .arraycrop import crop
File “e:\programdata\anaconda3\lib\site-packages\skimage\util\arraycrop.py”, line 8, in <module>
from numpy.lib.arraypad import _validate_lengths
ImportError: cannot import name ‘_validate_lengths’
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (2 by maintainers)
Top GitHub Comments
scikit-image 0.14.2 and numpy 1.16.1 should work You may need to restart python environment after the update
@jiangweiatgithub closing this, if you have another issue please open another one.