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
AttributeError: module 'collections' has no attribute 'MutableMapping' #5469
Comments
Do not install pipenv from apt, it's way too old. Install from pypi. |
@matteius Thanks. |
This seems solved. |
Downgrading the requests package to 2.13.0 and trying to import requests with python3.10 will produce the above error. Another package presumptuously downgraded your
|
@sentientmachine Especially applicable seeing as how your comment has nothing to do with this issue--the Ubuntu maintainers haven't bothered updating the apt repository in years, and we do not recommend user install from apt. That is where the source of this error originated from. If you could provide specific examples of how the contract is changing that you are unhappy with I would be happy to address. As far as some recent regressions, yeah there were a number of features from Hacktoberfets/October that caused some edge cases, many of which are already addressed. The ones that aren't are a priority for our two maintainers, myself and Oz. We both took on this project 1-year ago today and have made major strides towards its maintainability. There have been bumps along the way, that we are very proactive to responding to. |
I am confused now. @sentientmachine are you saying that requests is broken in pipenv? What version of pipenv is having the issue? I am unaware of a change that affects python 3.10 minor versions ... the original poster had this issue because they installed a version of pipenv from 2018. We have had many releases of pipenv this year, many are quite good. |
The problem is outside of pipenv, I get it with:
Downgrading to python3.8 fixes the problem:
The requests package does not seem to tolerate Python3.10 for some reason. |
@mirodil1 I use requests with python 3.10 daily -- I think something else is at play. Can you verify what version of requests you have. Perhaps |
@sentientmachine that version is from 2017 -- you should be on requests==2.28.1 |
@matteius A different python package downgraded my requests package without asking. I should keep a closer eye on that sort of thing next time. |
Well with pipenv, you could specify the version of requests that you require, the version of the other packages, and the resolver will determine if that is even possible and it installs the resolved dependencies in an isolated way so that another package won't downgrade a different package specified in the lock file. |
@matteius I am using |
i,m using chatterbot, and im coding my bot and this erro appeared: |
why is pipenv even in apt if it's out of date? |
None of the active maintainers (myself and @oz123 ) have access to the apt repository or knowledge of it. |
Got it. Thank you 🙏 |
I have a problem when using pipenv in ubuntu os.
Cannot use command
pipenv
, even for checking versionSearched 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).
The text was updated successfully, but these errors were encountered: