Error: numpy.core._multiarray_umath
See original GitHub issueHello,
As per instruction - I installed the requirements.txt file, upgraded my tensorflow to 1.13 but I’m getting this error
Traceback (most recent call last):
File "<frozen importlib._bootstrap>", line 968, in _find_and_load
SystemError: <class '_frozen_importlib._ModuleLockManager'> returned a result with an error set
ImportError: numpy.core._multiarray_umath failed to import
ImportError: numpy.core.umath failed to import
2019-03-05 02:29:12.004806: F tensorflow/python/lib/core/bfloat16.cc:675] Check failed: PyBfloat16_Type.tp_base != nullptr
I checked online for similar issue and saw that it can be resolved by python -m pip install --upgrade numpy
but when I did that, I got a different error which looks like current numpy bug.
from ._conv import register_converters as _register_converters
Traceback (most recent call last):
File "/Users/sens3i/anaconda3/bin/ludwig", line 6, in <module>
from ludwig.cli import main
File "/Users/sens3i/anaconda3/lib/python3.6/site-packages/ludwig/__init__.py", line 16, in <module>
from ludwig.api import LudwigModel
File "/Users/sens3i/anaconda3/lib/python3.6/site-packages/ludwig/api.py", line 39, in <module>
from ludwig.data.postprocessing import postprocess_df, postprocess
File "/Users/sens3i/anaconda3/lib/python3.6/site-packages/ludwig/data/postprocessing.py", line 19, in <module>
from ludwig.features.feature_registries import output_type_registry
File "/Users/sens3i/anaconda3/lib/python3.6/site-packages/ludwig/features/feature_registries.py", line 33, in <module>
from ludwig.features.image_feature import ImageBaseFeature
File "/Users/sens3i/anaconda3/lib/python3.6/site-packages/ludwig/features/image_feature.py", line 24, in <module>
from skimage.io import imread
File "/Users/sens3i/anaconda3/lib/python3.6/site-packages/skimage/__init__.py", line 158, in <module>
from .util.dtype import *
File "/Users/sens3i/anaconda3/lib/python3.6/site-packages/skimage/util/__init__.py", line 7, in <module>
from .arraycrop import crop
File "/Users/sens3i/anaconda3/lib/python3.6/site-packages/skimage/util/arraycrop.py", line 8, in <module>
from numpy.lib.arraypad import _validate_lengths
ImportError: cannot import name '_validate_lengths'
Please see https://github.com/scikit-image/scikit-image/issues/3551 - A member on the thread said to install scikit-image 0.14.2
which seem to resolve the issue.
I realized that my default scikit-image was 0.13.1
, so I pip install scikit-image==0.14.2
Incase someone else run into this error, I hope this helps. Also, maybe the exact version of scikit-image
used for ludwig should be added to the requirements.txt file. Thanks
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:10 (1 by maintainers)
Top Results From Across the Web
No module named 'numpy.core._multiarray_umath' - Stack ...
I have installed Ancaconda3 and Tensorflow. When I try to import Tensorflow in python shell I receive the following error:.
Read more >Numpy error No module named 'numpy.core ... - GitHub
Steps to reproduce: python -m pip install numpy Numpy error No module named 'numpy.core._multiarray_umath' Linux / python 3.10 / Error ...
Read more >python3.10 with numpy - ModuleNotFoundError: No module ...
Original error was: No module named 'numpy.core._multiarray_umath'. my path is jeremy@jeremy-Blade:/$env|grep PATH ...
Read more >No module named 'numpy.core._multiarray_umath' - Reddit
I want to add python numpy package to lambda. I have downloaded numpy package put inside a folder named as python and zip...
Read more >Original error was: No module named 'numpy.core ...
Original error was: No module named 'numpy.core._multiarray_umath' after installed pythran. Subscribe. More actions.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
python -m pip install --upgrade numpy
andpip install scikit-image==0.14.2
solved the issueSolved !!!