-
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 install explicit requirements fails (but implicit succeeds) #5313
Comments
For reference, this is probably related to #988 ? |
Essentially yes, I believe it is. I don't know why "Suddenly pip2 is broken" happened, but that's in relation to Unix stuff I have limited knowledge of. The other symptoms are basically as expected due to the fact that we don't have a resolver, and collect requirements of a "first come, first served" basis. So if you mention cryptography on the command line, that's what you're asking for and it's installed - the implicit specific version requirement is ignored. But if you don't mention cryptography on the command line, the first mention of it is the implicit |
In the scenario above, Looking at some other servers here that were provisioned some days/weeks ago (then with Hence why I'm suspecting that Also, it sounds great that #988 is getting some traction again. 😊 |
Thanks for filing this @MPV! You'd likely have some success using If you're feeling awesome, please file an issue over at https://github.com/pradyunsg/zazo for this. :) |
This is an interesting case of #988. Closing as a duplicate. |
Wait. Not closing... You should be run Feel free to close this issue if that addresses your concern. |
@MPV, I'll close this since It's been some time since the advice above has been given, but please let us know if you have any other concerns. |
10.0.0
2.7.12
Description:
What I'm trying to get done:
Let Ansible install some pip packages.
What has happened:
cryptography
version1.2.3
as part of its setup.pip
to installPyOpenSSL
andcryptography
.What went wrong:
PyOpenSSL
requirescryptography
version2.2.1
(as per pyca/pyopenssl#559 (comment)) butpip
fails to upgrade it from1.2.3
to2.2.1
when askedWhat I had expected:
One of the following:
pip install
exiting with non-zero return code when it's not able to solve the dependecies.pip install
succeeding in installing bothPyOpenSSL
andcryptography==2.2.1
(in this example).What I've run:
cryptography
installed (as in my case, setup of Ansible has installed):...in this case
PyOpenSSL
andcryptography
— wherePyOpenSSL
requirescryptography==2.2.1
:Note the line:
pyopenssl 17.5.0 has requirement cryptography>=2.1.4, but you'll have cryptography 1.2.3 which is incompatible.
...but the return code isn't zero?
Had I received a non-zero return code, my Ansible script would've stopped and I could've understood that something in my intended setup was broken. Now instead:
pip2
is broken:In comparison...
Now let's compare the above scenario with this:
I just install
PyOpenSSL
(which requirescryptography
) but notcryptography
explicitly:cryptography
:pip
to install onlyPyOpenSSL
this time:Note how this time
pip
succeeds in upgradingcryptography
from1.2.3
to2.2.2
. 🎉pip
isn't broken:Note:
pip
version10.0.0
.pip
version9.0.3
.I might just be using
pip
in the wrong way here.Or could there be a bug in
pip
related to this? 😊The text was updated successfully, but these errors were encountered: