Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: module 'collections' has no attribute 'MutableSequence' with Python 3.10 (ships with Ubuntu 22.04 by default) #20

Closed
marcojob opened this issue Apr 2, 2022 · 1 comment

Comments

@marcojob
Copy link
Contributor

marcojob commented Apr 2, 2022

This happens because MutableSequence is now part of collections.abc; a possible fix is to change the import in transport.py to

try:
    from collections import MutableSequence
except ImportError:
    from collections.abc import MutableSequence

which might not be the most elegant solution, but keeps support for all versions.

@marcojob marcojob changed the title AttributeError: module 'collections' has no attribute 'MutableSequence' due with Python 3.10 (ships with Ubuntu 22.04 by default) AttributeError: module 'collections' has no attribute 'MutableSequence' with Python 3.10 (ships with Ubuntu 22.04 by default) Apr 2, 2022
@marcojob
Copy link
Contributor Author

marcojob commented Apr 2, 2022

Nvm this is solved on master

@marcojob marcojob closed this as completed Apr 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant