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

make fails on Python 3.10 #707

Open
nan-af opened this issue Mar 5, 2022 · 0 comments · May be fixed by #708
Open

make fails on Python 3.10 #707

nan-af opened this issue Mar 5, 2022 · 0 comments · May be fixed by #708

Comments

@nan-af
Copy link

nan-af commented Mar 5, 2022

make fails with the following error on Python 3.10:

> make
./loxigen.py --install-dir=loxi_output --lang=c --version-list=1.0,1.1,1.2,1.3,1.4
Traceback (most recent call last):
  File "/tmp/loxigen/./loxigen.py", line 81, in <module>
    import cmdline
  File "/tmp/loxigen/cmdline.py", line 30, in <module>
    from loxi_globals import OFVersions
  File "/tmp/loxigen/loxi_globals.py", line 28, in <module>
    from loxi_ir import *
  File "/tmp/loxigen/loxi_ir/__init__.py", line 29, in <module>
    from .ir import *
  File "/tmp/loxigen/loxi_ir/ir.py", line 34, in <module>
    from generic_utils import find, memoize, OrderedSet
  File "/tmp/loxigen/generic_utils.py", line 82, in <module>
    class OrderedSet(collections.MutableSet):
AttributeError: module 'collections' has no attribute 'MutableSet'
make: *** [Makefile:55: .loxi_ts.c] Error 1

generic_utils.py is attempting to use MutableSet from collections instead of collections.abc.

Importing and using ABCs from collections stopped working in Python 3.10 (bpo-37324). This had been deprecated since Python 3.3.

@nan-af nan-af linked a pull request Mar 5, 2022 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