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
Error when upgrading to 10.0.1 via pip #320
Comments
Original comment by tawm04 (Bitbucket: tawm04, GitHub: Unknown): I'm having the same issues. Ubuntu 12.04. I forced it to version 9.1 and it worked.
|
Original comment by kevinastone (Bitbucket: kevinastone, GitHub: kevinastone): Affected us too on 12.04. Only workaround I could find was to go back to easy_install
|
Original comment by cognifloyd (Bitbucket: cognifloyd, GitHub: cognifloyd): This broke my vagrant boxes which I was destroying/rebuilding. If I try to install pyyaml (amongst other packages) with setuptools-10.0.1, I get the same error as others here. |
Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco): @cognifloyd Are you saying you get an ImportError about _default_revctrl when attempting to install pyyaml? With pip or setuptools? That error sounds different than what the OP has filed, which is about upgrading setuptools. Can you clarify that the issue appears the same or maybe file a separate ticket describing your experience in more detail? |
Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco): My initial reaction is this issue is probably a pip issue, but I'm happy to field it here. Setuptools could simply provide that method to satisfy the conditions under upgrade. However, I believe it's prudent to understand the cause of the issue to avoid it happening in the future (and to allow for adding new metadata to setuptools as is planned as well). |
Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco): Reports in IRC indicate that the issue occurs when upgrading from 9.1 to 10.0.1, but I'm unable to replicate:
|
Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco): I was able to replicate the issue by using apt to install python-pip and then trying to upgrade setuptools (which upgrades distribute, which installs setuptools>0.7, grabbing 10.0.1). I was also able to trigger the failure thus:
In that environment, I've downloaded 10.0.1, and indeed I can see that the file finders from the other environment are being discovered:
|
Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco): Investigating further, I find that the reason that file finder is being discovered is not due to the installation of setuptools 9.1, but is due to the installation of distribute-0.6.24dev_r0, a remnant of the installation of system package python-pip. Removing the system-managed packages corrects the issue:
Now the entry point isn't present:
And upgrade from 9.1 to 10.0.1 works without fail. I believe the issue here is an Ubuntu one and that the solution is to stick with the old system-managed packages or remove them and use the tool-managed packages. |
Original comment by reinout (Bitbucket: reinout, GitHub: reinout): I'm having a similar issue when bootstrapping buildout on an ubuntu 12.04 LTS box. The same "_default_revctrl" error. Having setuptools (or rather distribute) installed as a system package isn't uncommon. And 12.04 LTS is quite widely used. So is it really an option to tell all of them to modify their system? Isn't a backwards compatibility function/atribute/whatever (that doesn't do anything) better? I don't quite look forward to mailing my colleagues "you need to update your 12.04 systems' setuptools to the latest version to work around a change in that very same latest version. Oh, and also do that on all the 12.04 servers"... :-) |
Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco): @reinout You're right. I came to the same conclusion after thinking about it a bit more. I also realized that the issue isn't as broad as I had originally thought. It should only affect entry points and not metadata in general. However, I do find it troubling that Debian will leave installed a package that imposes constraints on another user-installed package. I recognize that's difficult to manage with inversion-of-control as entry points exposes. Thankfully, the issue seems not to affect Trusty. |
Original comment by kevinastone (Bitbucket: kevinastone, GitHub: kevinastone): Same, thanks! |
Originally reported by: spulec (Bitbucket: spulec, GitHub: spulec)
I'm having trouble upgrading to the newest version.
Ubuntu 12.04
pip 1.4
The text was updated successfully, but these errors were encountered: