spectralpython / spectral

Python module for hyperspectral image processing
MIT License
563 stars 138 forks source link

AttributeError: module 'collections' has no attribute 'Callable' #133

Closed dobedobedo closed 2 years ago

dobedobedo commented 2 years ago

Hi, I tried to run the test with

git clone https://github.com/spectralpython/sample-data.git ./spectral_data
SPECTRAL_DATA=./spectral_data python -m spectral.tests.run

After building the module with python setup.py build.
However, I encountered the 'collections' has no attribute 'Callable' error.
It seems that collections.Callable becomes collections.abc.Callable in Python 3.10 for some reason.
The test runs well after I modified all the collections.Callable to collections.abc.Callable.