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

ImportError: cannot import name 'MutableMapping' from 'collections' #379

Open
francodevel opened this issue Jul 24, 2024 · 0 comments
Open

Comments

@francodevel
Copy link

francodevel commented Jul 24, 2024

Traceback (most recent call last):
  File "/home/lorien/.local/bin/sublist3r", line 5, in <module>
    from sublist3r import interactive
  File "/home/lorien/.local/lib/python3.11/site-packages/sublist3r.py", line 23, in <module>
    import requests
  File "/usr/local/lib/python3.11/dist-packages/requests/__init__.py", line 58, in <module>
    from . import utils
  File "/usr/local/lib/python3.11/dist-packages/requests/utils.py", line 25, in <module>
    from .compat import parse_http_list as _parse_list_header
  File "/usr/local/lib/python3.11/dist-packages/requests/compat.py", line 7, in <module>
    from .packages import chardet
  File "/usr/local/lib/python3.11/dist-packages/requests/packages/__init__.py", line 3, in <module>
    from . import urllib3
  File "/usr/local/lib/python3.11/dist-packages/requests/packages/urllib3/__init__.py", line 24, in <module>
    from .poolmanager import PoolManager, ProxyManager, proxy_from_url
  File "/usr/local/lib/python3.11/dist-packages/requests/packages/urllib3/poolmanager.py", line 14, in <module>
    from ._collections import RecentlyUsedContainer
  File "/usr/local/lib/python3.11/dist-packages/requests/packages/urllib3/_collections.py", line 7, in <module>
    from collections import MutableMapping
ImportError: cannot import name 'MutableMapping' from 'collections' (/usr/lib/python3.11/collections/__init__.py)

Some random places say that I need to change the import to collections.abc instead of collections alone. I don't know exactly how to do it, so this post is kinda my last resort. And websites say that collections alone is deprecated and that collections comes with python3.9 as the last time seen. Then it's gone. Could I install python3.9 somehow in kali? That could solve the problem. Just to test it. I would appreciate much help.

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