-
Notifications
You must be signed in to change notification settings - Fork 3k
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
pip freeze includes "pkg-resources==0.0.0" (Ubuntu Server 16.04 LTS) #4022
Comments
this is a bug caused by ubuntu - they should fix it, they lied about metadata |
Thanks, I opened an issue with Ubuntu: https://bugs.launchpad.net/ubuntu/+source/python-pip/+bug/1635463 |
Can you go into more detail (best in a comment on the bug report on launchpad, I guess) about what is different and/or wrong in Ubuntu, causing this behavior? (E.g. what metadata is affected and how?) |
@das-g they created a package metadata item with a bad version that shouldn't exist |
This shouldn't be present in the requirements.txt file (it'll cause "pip install -r requirements.txt" to fail in some circumstances) and was only included because of an Ubuntu bug according to: pypa/pip#4022 So this commit just removes that line. Fixes #11
pkg-resources shall not be present in requirements file it does exist due to a bug in ubuntu pypa/pip#4022 this commit fixes jadijadi#1
Remove troublemaking pkg-resources see pypa/pip#4022
Fixes error reported as "Could not find a version that satisfies the requirement pkg-resources==0.0.0" Which appears to be related to this bug: pypa/pip#4022
See pypa/pip#4022. (Thanks Ubuntu!)
pip install -r requirements.txt to fail in some circumstances) and was only included because of an Ubuntu bug according to: pypa/pip#4022
…velopment 10m removes invalid pkg-resources=0.0.0 spec. breaking pip install. see pypa/pip#4022 todo filter out pkg-resources when updating pip freeze
Create make target 'requirements' to deal with pkg-resources bug caused by ubuntu passing incorrect metadata to pip (see link). pypa/pip#4022
Removed an entry from requirements.txt that breaks pip: pypa/pip#4022 It's a bug in Ubuntu :-)
I you still have the error even after removing the pkg-resources=0.0.0, run the basic git add and git commit commands then push to heroku |
removed pkg-resources
The presence of the package pkg-resources is the result of a bug from debian based OS: pypa/pip#4022 It can cause installation failure on other OS (Archlinux for instance).
The presence of the package pkg-resources is the result of a bug from debian based OS: pypa/pip#4022 It can cause installation failure on other OS (Archlinux for instance).
"pkg-resources==0.0.0" is nonsense, generated by pip freezing on an Ubunu distro pypa/pip#4022
Ubuntu has a bug which provides incorrect metadata to pip pypa/pip#4022
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
8.1.2
Python 2.7.12
Linux ubuntu 4.4.0-43-generic Pip installs package from cache in spite of version specified #63-Ubuntu SMP Wed Oct 12 13:48:03 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Description:
pip freeze, run from a freshly created virtualenv, always includes
pkg-resources==0.0.0
When not extracted from the output when written to requirements.txt, it causes build failures on deployment when creating virtualenvs from that requirements file.
What I've run:
The text was updated successfully, but these errors were encountered: