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

cannot import on python 3.10 #210

Open
CRCGlobal opened this issue Aug 4, 2023 · 2 comments
Open

cannot import on python 3.10 #210

CRCGlobal opened this issue Aug 4, 2023 · 2 comments

Comments

@CRCGlobal
Copy link

  • badX12 version: 0.2.2
  • Python version: 3.10
  • Operating System:

Description

 import badx12
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python310\lib\site-packages\badx12\__init__.py", line 6, in <module>
    from .__main__ import cli
  File "C:\Python310\lib\site-packages\badx12\__main__.py", line 10, in <module>
    from .common.click import add_commands
  File "C:\Python310\lib\site-packages\badx12\common\click.py", line 2, in <module>
    from collections import Iterable
ImportError: cannot import name 'Iterable' from 'collections' (C:\Python310\lib\collections\__init__.py)

The Iterable abstract class was removed from collections in Python 3.10. See the deprecation note in the 3.9 collections docs. In the section Removed of the 3.10 docs, the item
``
Remove deprecated aliases to Collections Abstract Base Classes from the collections module. (Contributed by Victor Stinner in bpo-37324.)

@jvigilan
Copy link

can change "from collections import Iterable" to "from collections.abc import Iterable" and it will work again...

@cdellafera
Copy link

Why does "pip install -U badx12" still install the version with the deprecated aliases?

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

3 participants