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

Python 3.10 > AttributeError: module 'collections' has no attribute 'MutableMapping' #146

Open
michael-nischt opened this issue Sep 16, 2022 · 0 comments

Comments

@michael-nischt
Copy link

It seems the MutableMapping was removed in recent python, rendering cldoc unusable:

Traceback (most recent call last):
  File "/home/micha/.local/bin/cldoc", line 33, in <module>
    sys.exit(load_entry_point('cldoc==1.11.2', 'console_scripts', 'cldoc')())
  File "/home/micha/.local/lib/python3.10/site-packages/cldoc/__init__.py", line 57, in run
    run_generate(rest)
  File "/home/micha/.local/lib/python3.10/site-packages/cldoc/__init__.py", line 27, in run_generate
    cmdgenerate.run(args)
  File "/home/micha/.local/lib/python3.10/site-packages/cldoc/cmdgenerate.py", line 103, in run
    from . import tree
  File "/home/micha/.local/lib/python3.10/site-packages/cldoc/tree.py", line 21, in <module>
    from . import comment
  File "/home/micha/.local/lib/python3.10/site-packages/cldoc/comment.py", line 470, in <module>
    from pyparsing import *
  File "/home/micha/.local/lib/python3.10/site-packages/pyparsing.py", line 943, in <module>
    collections.MutableMapping.register(ParseResults)
AttributeError: module 'collections' has no attribute 'MutableMapping'

After installing cldoc on Fedora Linux with Python 3.10.6 via: pip install --user cldoc

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

1 participant