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

broken on python 3.10 ? #46

Open
fenugrec opened this issue May 10, 2022 · 2 comments
Open

broken on python 3.10 ? #46

fenugrec opened this issue May 10, 2022 · 2 comments

Comments

@fenugrec
Copy link

Traceback (most recent call last):
  File "/usr/bin/pycrc", line 26, in <module>
    from pycrc.main import main
  File "/usr/lib/python3.10/site-packages/pycrc/main.py", line 46, in <module>
    import pycrc.codegen as cg
  File "/usr/lib/python3.10/site-packages/pycrc/codegen.py", line 37, in <module>
    import pycrc.symtable
  File "/usr/lib/python3.10/site-packages/pycrc/symtable.py", line 49, in <module>
    class SymbolTable(collections.MutableMapping):
AttributeError: module 'collections' has no attribute 'MutableMapping'

Looks like collections.MutableMapping was deprecated at some point ?

@fenugrec
Copy link
Author

Possible fix (I don't actually know what I'm doing) : two lines to change,

from collections.abc import MutableMapping
.....
class SymbolTable(MutableMapping):

ufbycd pushed a commit to ufbycd/pycrc that referenced this issue Oct 19, 2022
@tpircher
Copy link

tpircher commented Nov 4, 2022

Sorry for the late answer; I have been locked out from github, and had to create a new account. The fix should be in https://github.com/tpircher/pycrc

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

2 participants