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

MutableMapping deprecated in Python 3.10 #172

Closed
firewavemtl opened this issue Oct 25, 2021 · 0 comments · Fixed by #202
Closed

MutableMapping deprecated in Python 3.10 #172

firewavemtl opened this issue Oct 25, 2021 · 0 comments · Fixed by #202

Comments

@firewavemtl
Copy link

Hi,

ImportError: cannot import name 'MutableMapping' from 'collections' (/usr/lib64/python3.10/collections/__init__.py)

Deprecated since version 3.3, removed in version 3.10: Moved Collections Abstract Base Classes to the collections.abc module. For backwards compatibility, they continue to be visible in this module through Python 3.9.

Something like this should be done as a quick patch:

import collections
from collections import abc
collections.MutableMapping = abc.MutableMapping

But we probably should consider a better solution.

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

Successfully merging a pull request may close this issue.

1 participant