-
Notifications
You must be signed in to change notification settings - Fork 118
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 import error #92
Comments
masayukeeeee
added a commit
to masayukeeeee/magnitude
that referenced
this issue
Aug 3, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey, :)
Awesome package!
However, your third-party
allennlp
code is very old. It importsMutableMapping
fromcollections
, while it was moved tocollections.abc
in Python 3.3 and has since been deprecated to import from there - although the reference was kept for backwards compatibility.The reference was completely removed in Python 3.10 and onwards, so the
magniture
library actully doesn't work on the newest Python version, nor is it future-compatible.The fix is simple - change line 12 in
pymagnitude/third_party/allennlp/common/params.py
from:to
Also, there might be some more broken imports lying around. I wouldn't know. :)
Cheers!
Reference stack trace of the error on Python 3.10.2:
The text was updated successfully, but these errors were encountered: