Nose Python
module ‘collections’ has no attribute ‘Callable’ is the error message you see when you run nosetests.
Here is how to solve this error when you run nosetests with Python 3.10.
First, uninstall nose with the following command:
pip uninstall -y nose
Second, reinstall nose but with –nobinaries flag:
pip install -U nose --no-binary :all:
Why does this work? At the time of this writting the binary generated by nose was likely generated with a version of Python 3.4 or older. This command forces to rebuild from source.