-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
easy_install quits with "error: None" in setuptools 1.1.6 #89
Comments
Original comment by mgedmin (Bitbucket: mgedmin, GitHub: mgedmin): More details: bootstrap.py works when run with /usr/bin/python2.7 (it downloads setuptools-0.6c11 and then upgrades setuptools to 1.1.6), but fails when run with a virtualenv python that already has setuptools 1.1.6. (It also fails with a virtualenv that doesn't have setuptools upgraded to 1.1.6, but with a different error, which is irrelevant to this particular issue.) |
Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco): Hi Marius. I looked into trying to replicate the issue, but I don't find a vagrant image for Natty on vagrantboxes nor on Rackspace. As a result, it would be quite involved for me to track down the issue. I apologize that the error message isn't more helpful. That error is raised in distutils.core:169, seemingly from an error that renders as the string "None". I've seen this for example when the .pypirc config file has incorrect settings (and causes a urlparse to raise an error whose value is None, which later is wrapped in a DistutilsError). I know there some issues with earlier versions of pip (prior to 1.4) and upgrading setuptools, so that may play a factor as well. You may try upgrading virtualenv/pip before upgrading setuptools. Beyond that, however, the best I can suggest is that you fire up a debugger and trace the code to find out what's triggering the error. I wish I could be of more help, but the obscure environment means you'll have to do the bulk of the work to localize and characterize the issue to suggest a cause and patch. |
Original comment by mgedmin (Bitbucket: mgedmin, GitHub: mgedmin): To put this in a bit of perspective: I don't care that latest easy_install doesn't work in a virtualenv on Ubuntu Natty. I care about the useless error message. I assume the bug where the error message gets lost is still present in the latest setuptools, it's just that this old Natty system happens to provide a way to reproduce it.
ends with this:
and strace -e open ends with
which makes it clearer what the problem is (virtualenv 1.4.9 fails to create the 'local' subdir in the environment). AFAICS the error message gets lost in distutils.util.grok_environment_error, since IOError('a message').strerror is None. So, it's not a bug in setuptools. |
Original comment by mgedmin (Bitbucket: mgedmin, GitHub: mgedmin): Reported distutils bug at http://bugs.python.org/issue19333 |
Original comment by Merwok (Bitbucket: Merwok, GitHub: Merwok): FYI upstream issue (http://bugs.python.org/issue4931 —19333 was a duplicate) will be fixed in 2.7.7, 3.3.6 and 3.4.1. People can test the fix now using the Mercurial versions. |
Originally reported by: mgedmin (Bitbucket: mgedmin, GitHub: mgedmin)
I wouldn't mind too much (env/bin/pip exists after all), but zc.buildout uses easy_install to bootstrap itself, so this error means I cannot bootstrap any buildouts on this box.
Other interesting commands that fail:
Meanwhile
easy_install --help
works.The OS here is Ubuntu 11.10 "Natty", which is no longer supported by Canonical and should be upgraded ASAP. I cannot reproduce this bug on Ubuntu 12.04 LTS or Ubuntu 10.04 LTS servers.
The text was updated successfully, but these errors were encountered: