AttributeError: module 'collections' has no attribute 'MutableMapping'
See original GitHub issueI have a problem when using pipenv in ubuntu os.
Cannot use command pipenv
, even for checking version
Searched for similar questions but not satisfied.
Ubuntu
Distributor ID: Ubuntu Description: Ubuntu 22.04.1 LTS Release: 22.04 Codename: jammy
Python
Python 3.10.6
Pipenv
pipenv version (11.9.0-1.1).
Traceback (most recent call last):
File "/usr/bin/pipenv", line 33, in <module>
sys.exit(load_entry_point('pipenv==11.9.0', 'console_scripts', 'pipenv')())
File "/usr/lib/python3/dist-packages/pipenv/vendor/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/pipenv/vendor/click/core.py", line 696, in main
with self.make_context(prog_name, args, **extra) as ctx:
File "/usr/lib/python3/dist-packages/pipenv/vendor/click/core.py", line 621, in make_context
self.parse_args(ctx, args)
File "/usr/lib/python3/dist-packages/pipenv/vendor/click/core.py", line 1018, in parse_args
rest = Command.parse_args(self, ctx, args)
File "/usr/lib/python3/dist-packages/pipenv/vendor/click/core.py", line 875, in parse_args
parser = self.make_parser(ctx)
File "/usr/lib/python3/dist-packages/pipenv/vendor/click/core.py", line 821, in make_parser
for param in self.get_params(ctx):
File "/usr/lib/python3/dist-packages/pipenv/vendor/click/core.py", line 774, in get_params
help_option = self.get_help_option(ctx)
File "/usr/lib/python3/dist-packages/pipenv/cli.py", line 26, in get_help_option
from .import core
File "/usr/lib/python3/dist-packages/pipenv/core.py", line 21, in <module>
import requests
File "/usr/lib/python3/dist-packages/pipenv/vendor/requests/__init__.py", line 65, in <module>
from . import utils
File "/usr/lib/python3/dist-packages/pipenv/vendor/requests/utils.py", line 27, in <module>
from .cookies import RequestsCookieJar, cookiejar_from_dict
File "/usr/lib/python3/dist-packages/pipenv/vendor/requests/cookies.py", line 172, in <module>
class RequestsCookieJar(cookielib.CookieJar, collections.MutableMapping):
AttributeError: module 'collections' has no attribute 'MutableMapping'
Issue Analytics
- State:
- Created 10 months ago
- Comments:12
Top Results From Across the Web
module 'collections' has no attribute 'MutableMapping' - Stack ...
In my case, upgrading the following packages worked on Windows 11: pip install --upgrade pip pip install --upgrade wheel pip install ...
Read more >module collections has no attribute mutablemapping
Attributeerror: module collections has no attribute mutablemapping error is because of internal code changes in the 3.10 version.
Read more >Module collections has no attribute 'MutableMapping'
To solve the AttributeError: module collections has no attribute MutableMapping error import the `MutableMapping` class from ...
Read more >How to Fix AttributeError: module 'collections' has no attribute ...
The AttributeError: module 'collections' has no attribute 'mutablemapping' error occurs in Python when you are trying to access an attribute ...
Read more >[SOLVED] - AttributeError: module 'collections' has no attribute ...
abc import MutableMapping , making the package compatible with Python 3.10 . Since dronekit has active community support, this issue was already ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Do not install pipenv from apt, it’s way too old. Install from pypi.
@sentientmachine that version is from 2017 – you should be on requests==2.28.1