image-classification-python icon indicating copy to clipboard operation
image-classification-python copied to clipboard

AttributeError: module 'mahotas' has no attribute 'features'

Open vcvishal opened this issue 5 years ago • 0 comments

C:\Users\vcvis\Desktop\image-classification-python-master>python global.py Could not import submodules (exact error was: DLL load failed: The specified module could not be found.).

There are many reasons for this error the most common one is that you have either not built the packages or have built (using python setup.py build) or installed them (using python setup.py install) and then proceeded to test mahotas without changing the current directory.

Try installing and then changing to another directory before importing mahotas. ['bluebell', 'buttercup', 'coltsfoot', 'cowslip', 'crocus', 'daffodil', 'daisy', 'dandelion', 'fritillary', 'iris', 'lilyvalley', 'pansy', 'snowdrop', 'sunflower', 'tigerlily', 'tulip', 'windflower'] Traceback (most recent call last): File "global.py", line 80, in fv_haralick = fd_haralick(image) File "global.py", line 33, in fd_haralick haralick = mahotas.features.haralick(gray).mean(axis=0) AttributeError: module 'mahotas' has no attribute 'features'

thank you

vcvishal avatar Sep 23 '20 12:09 vcvishal