Skip to content

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

Closed
@dobedobedo

Description

@dobedobedo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions