question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AttributeError: module 'collections' has no attribute 'MutableMapping'

See original GitHub issue

I 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:closed
  • Created 10 months ago
  • Comments:12

github_iconTop GitHub Comments

3reactions
matteiuscommented, Nov 14, 2022

Do not install pipenv from apt, it’s way too old. Install from pypi.

1reaction
matteiuscommented, Dec 2, 2022

@sentientmachine that version is from 2017 – you should be on requests==2.28.1

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found