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 support Iterable in collections #59

Closed
polaris6921 opened this issue May 3, 2022 · 1 comment · Fixed by #60
Closed

Python 3.10 cannot support Iterable in collections #59

polaris6921 opened this issue May 3, 2022 · 1 comment · Fixed by #60

Comments

@polaris6921
Copy link

Since I run the command from docker hub, it prints below traceback

Traceback (most recent call last):
  File "/usr/local/bin/get_oracle_a1", line 5, in <module>
    from get_oracle_a1 import main
  File "/usr/local/lib/python3.10/site-packages/get_oracle_a1/__init__.py", line 8, in <module>
    from get_oracle_a1 import commands, config, helpers, usecases
  File "/usr/local/lib/python3.10/site-packages/get_oracle_a1/helpers.py", line 1, in <module>
    from collections import Iterable, Sequence
ImportError: cannot import name 'Iterable' from 'collections' (/usr/local/lib/python3.10/collections/__init__.py)

The Iterable belongs to collections.abc in Python 3.10 so that should be changed like,

from collections.abc import Iterable, Sequence

@isac322
Copy link
Owner

isac322 commented May 3, 2022

Thanks for report. #60 probably fixed this.

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.

2 participants