Skip to content
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

Closed
crw opened this issue Oct 19, 2016 · 6 comments
Closed

pip freeze includes "pkg-resources==0.0.0" (Ubuntu Server 16.04 LTS) #4022

crw opened this issue Oct 19, 2016 · 6 comments
Labels
auto-locked Outdated issues that have been locked by automation

Comments

@crw
Copy link

crw commented Oct 19, 2016

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:

$ pip freeze
ago==0.0.6
bcrypt==2.0.0
beautifulsoup4==4.3.2
blinker==1.3
cffi==1.5.2
ecdsa==0.11
email==6.0.0a1
Flask==0.10.1
flatland==0.8
funcsigs==1.0.2
gunicorn==19.1.0
itsdangerous==0.24
Jinja2==2.8
MarkupSafe==0.23
mock==2.0.0
newrelic==2.4.0.4
nose2==0.6.5
pbr==1.10.0
pika==0.10.0
pkg-resources==0.0.0
pycparser==2.14
PyMySQL==0.7.9
python-dateutil==2.1
pytz==2014.4
redis==2.10.5
requests==2.11.1
six==1.10.0
SQLAlchemy==1.1.2
textile==2.3.3
Werkzeug==0.11.8
@RonnyPfannschmidt
Copy link
Contributor

this is a bug caused by ubuntu - they should fix it, they lied about metadata

@crw
Copy link
Author

crw commented Oct 21, 2016

Thanks, I opened an issue with Ubuntu: https://bugs.launchpad.net/ubuntu/+source/python-pip/+bug/1635463

@crw crw closed this as completed Oct 21, 2016
@das-g
Copy link

das-g commented Oct 28, 2016

this is a bug caused by ubuntu - they should fix it, they lied about metadata

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?)

@RonnyPfannschmidt
Copy link
Contributor

@das-g they created a package metadata item with a bad version that shouldn't exist

cmuell89 added a commit to cmuell89/Bolt that referenced this issue Nov 21, 2016
mhl added a commit to everypolitician/everypolitician-popolo-python that referenced this issue Dec 22, 2016
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
ShalbafZadeh added a commit to ShalbafZadeh/bestoon that referenced this issue Dec 28, 2016
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
ShalbafZadeh added a commit to ShalbafZadeh/TwitterFriends that referenced this issue Feb 1, 2017
Remove troublemaking pkg-resources
see pypa/pip#4022
npch added a commit to softwaresaved/software-assessment-framework that referenced this issue Feb 10, 2017
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
ausbin added a commit to global-humanitarians-unite/ghu that referenced this issue Mar 15, 2017
ric9176 added a commit to Blue-Shift-Coding/blueshiftapp that referenced this issue May 4, 2017
pip install -r requirements.txt to fail in some circumstances) and was
only included because of an Ubuntu bug according to: pypa/pip#4022
bletourmy added a commit to HEG-Arc/MiCorr that referenced this issue Aug 8, 2017
…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
nsg added a commit to stacken/w3 that referenced this issue Aug 23, 2017
frontmaker pushed a commit to frontmaker/Telegram-bot-game that referenced this issue Sep 14, 2017
carpntr added a commit to carpntr/cda that referenced this issue Nov 5, 2017
Create make target 'requirements' to deal with pkg-resources bug caused
by ubuntu passing incorrect metadata to pip (see link).

pypa/pip#4022
joekottke added a commit to joekottke/python-grpc-ssl that referenced this issue Jun 14, 2018
dolhuis added a commit to Amsterdam/GOB-Import that referenced this issue Jul 30, 2018
Removed an entry from requirements.txt that breaks pip:

pypa/pip#4022

It's a bug in Ubuntu :-)
colorblast pushed a commit to colorblast/banh that referenced this issue Sep 9, 2018
@moha-abdul
Copy link

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
git add .
git commit -m "remove pkg-resource"
git push heroku master

JoseALermaIII referenced this issue in JoseALermaIII/python-tutorials Oct 19, 2018
removed pkg-resources
Supermanu added a commit to Supermanu/repanier that referenced this issue Oct 30, 2018
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).
Supermanu added a commit to Supermanu/repanier that referenced this issue Oct 30, 2018
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).
lentinj added a commit to mahlberg-lab/clic that referenced this issue Nov 16, 2018
"pkg-resources==0.0.0" is nonsense, generated by pip freezing on an Ubunu distro

pypa/pip#4022
bencromwell added a commit to bencromwell/pi-led-api that referenced this issue Jan 5, 2019
jdpleiness added a commit to statgen/encore that referenced this issue Jan 16, 2019
quanticle added a commit to quanticle/accordius that referenced this issue Feb 19, 2019
pmwiki-tables isn't a package in PyPI, so I updated the reference to
point to its Github repository. I removed the pkg-resources line,
because that's the result of a bug in Ubuntu [1] [2]

[1]: pypa/pip#4022
[2]: https://bugs.launchpad.net/ubuntu/+source/python-pip/+bug/1635463
nsht added a commit to nsht/triton_notify that referenced this issue Mar 22, 2019
Ubuntu has a bug which provides incorrect metadata to pip pypa/pip#4022
ShahimEssaid added a commit to monarch-initiative/mondo that referenced this issue May 28, 2019
@lock
Copy link

lock bot commented Jun 1, 2019

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.

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 1, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation
Projects
None yet
Development

No branches or pull requests

4 participants