-
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
Missing setuptools.egg-info crashes pip #2438
Comments
After further investigation we've managed to consistently recreate this on a clean ubuntu #!/bin/sh
# Installs 0.6rc11 via 0.6.24-1ubuntu1
apt-get install -y python-setuptools
# Here we have some easy_install usage before our deploy logic
# decides if we need to execute the rest of the code below.
wget -O- https://bootstrap.pypa.io/get-pip.py | python
pip install --upgrade setuptools
pip install --upgrade virtualenv |
I've started seeing this issue on our servers about 2 weeks ago. doing pip upgrade setuptools leaves behind the symlink it cleans up the realpath destination, but not the symlink itself. |
I can confirm having this issue as well running under docker 12.04 container as root. Removing the symlink appears to fix it for me as well. |
I can also confirm I'm seeing this issue as well on many of my production Ubuntu 12.04 servers running on AWS EC2. |
Also having the same issue. |
I am also having the same problem. |
+1 |
+1 removing the broken symlink was all I needed. |
It would be nice to have this fixed as removing the broken symlink not a great option for automated setups via chef. |
this was caused by #2347 (released in pip 6.0.8), although I think that change was correct. the problem, is that #2437 exposed another bug, that is, that pip follows symlinks when uninstalling. but that's fixed in #2552 (which is currently unreleased, set to be released in v6.1.0)) I tested the latest pip develp branch (which has #2552) on ubuntu 12.04 and don't get the bug anymore. for those affected, an extra confirmation that develop branch works would be great before closing this. (cc @xavfernandez @takluyver) |
@qwcode can you cut the release v6.1.0 to fix this please? |
@dstufft does them. I think he was intending releasing 6.1.0 soon. |
closing based on #2438 (comment) if anyone wants to double confirm the develop branch fixes this (or doesn't), please do, and post results. |
This has crashed deploys on at least 9 of our production servers in the last week.
I've been struggling to create a reproducable use case but can't, sometimes it's fine, other times it really isn't.Reproducable test case provided here. Any insight would be hugely appreciated!Also worth noting that we've seen the same issue when running
pip install --upgrade virtualenv
so probably not package related?The text was updated successfully, but these errors were encountered: