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

Python 3.10: cannot import name 'Iterator' from 'collections' #363

Open
fagci opened this issue Nov 4, 2021 · 0 comments
Open

Python 3.10: cannot import name 'Iterator' from 'collections' #363

fagci opened this issue Nov 4, 2021 · 0 comments

Comments

@fagci
Copy link

fagci commented Nov 4, 2021

File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/rows/plugins/utils.py", line 20, in <module> 
from collections import Iterator, OrderedDict            
ImportError: cannot import name 'Iterator' from 'collections'

Maybe this will be fix:

try:
    from collections.abc import Iterator
except ImportError:
    from collections import Iterator
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