You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, your third-party allennlp code is very old. It imports MutableMapping from collections, while it was moved to collections.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:
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: