Sublist3r icon indicating copy to clipboard operation
Sublist3r copied to clipboard

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

Open francodevel opened this issue 7 months ago • 0 comments

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.

francodevel avatar Jul 24 '24 23:07 francodevel