Open mvarnold opened 1 year ago
Actually, if you want to make it backward compatible and not deal with different versions of shifterator for different versions of python, I would add something like this:
try:
from collections.abc import Mapping
except ImportError:
from collections import Mapping
in the imports and then just edit to have Mapping on line 156
if isinstance(scores, Mapping):
instead of the existing collections.Mapping
Closed by #40
@andyreagan I'm not sure this got pushed to the pypi version because some people are still getting this issue.
@andyreagan I'm not sure this got pushed to the pypi version because some people are still getting this issue.
bumping this
well yeah #40 will close it, but that hasn't been merged/released.
I just tagged it so that when #40 is merged, GH will automatically close this issue.
I guess we should really be tagging @ryanjgallagher
Could we get some other people permissions to merge?
Getting some Attribute Errors when making shifts if using a newer version of python.
It's an easy fix, just need to change line 156 in helper.py from
to
see this stack overflow post for more: https://stackoverflow.com/questions/69381312/in-vs-code-importerror-cannot-import-name-mapping-from-collections