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 name 'Iterable' from 'collections' #34

Open
deep2p4ce opened this issue Apr 20, 2022 · 0 comments · May be fixed by #37
Open

cannot import name 'Iterable' from 'collections' #34

deep2p4ce opened this issue Apr 20, 2022 · 0 comments · May be fixed by #37

Comments

@deep2p4ce
Copy link

I got following error: cannot import name 'Iterable' from 'collections'
It occurs when trying to import smithplot whilst using python 3.10.4 on the arch based linux distro 'Garuda Linux'.

The cause of this error:
Apparently the 'collections' module once contained the 'collections.abc' module that provides abstract base classes such as 'Iterable'. This was the case prior to python version 3.3. See https://docs.python.org/3/library/collections.abc.html

To fix this you need to replace
line 39 ('from collections import Iterable') in smithaxes.py with 'from collections.abc import Iterable' AND
line 4 ('from collections import Iterable') in smithhelper.py with 'from collections.abc import Iterable'

@schlatterbeck schlatterbeck linked a pull request Jul 28, 2023 that will close this issue
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.

1 participant