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

pyscss not usable in Python 3.10 #422

Open
zzzeek opened this issue Nov 7, 2021 · 3 comments
Open

pyscss not usable in Python 3.10 #422

zzzeek opened this issue Nov 7, 2021 · 3 comments

Comments

@zzzeek
Copy link

zzzeek commented Nov 7, 2021

this line is not compatible with 3.10:

from collections import Iterable

File "/home/classic/.venv3100/lib/python3.10/site-packages/scss/types.py", line 6, in
from collections import Iterable
ImportError: cannot import name 'Iterable' from 'collections' (/opt/python-3.10.0/lib/python3.10/collections/init.py)

@zzzeek
Copy link
Author

zzzeek commented Nov 7, 2021

here's the warning in 3.9:

>>> from collections import Iterable
<stdin>:1: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
>>> 

athos-ribeiro added a commit to athos-ribeiro/pyScss that referenced this issue Nov 9, 2021
Python 3.10 removed the aliases to collections.abc from the collections
module. See [1] for reference.

* Closes Kronuz#422

[1] https://docs.python.org/3/whatsnew/3.10.html#removed

Signed-off-by: Athos Ribeiro <athos.ribeiro@canonical.com>
@athos-ribeiro
Copy link

A fix is available at #411

@bfontaine
Copy link

This should be closed per #411 (comment)

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.

3 participants