Open M-I-Dx opened 2 years ago
What does your file look like? Did you import mahotas.features
before this code?
If I import mahotas.features instead of just mahotas, I get the following error:
/usr/local/lib/python3.7/dist-packages/mahotas/features/__init__.py in <module>()
4 #
5
----> 6 from .texture import haralick
7 from .tas import tas, pftas
8 from .zernike import zernike, zernike_moments
/usr/local/lib/python3.7/dist-packages/mahotas/features/texture.py in <module>()
6
7 import numpy as np
----> 8 from . import _texture
9 from ..internal import _verify_is_integer_type
10
ImportError: numpy.core.multiarray failed to import
---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------
Does import numpy
work on your system? This is some messed up installation. How did you install mahotas?
Yes, import numpy
works. I am running it on google colabs. For installing mahotas, I just used pip install mahotas
.
Sorry, this seems like a messed up environment and I do not have any insights.
Ok. Thanks for your time. I will try it on my local system.
I am trying to get Zernike moments for some images but I keep getting the following error
Can you suggest the fix for this?