-
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 gives misleading error message if no internet #3642
Comments
@pradyunsg Moving some of the discussion from pypa/packaging-problems#177 to here (assuming this is the canonical issue for this):
When thinking about it, I think one "good start" would be that rather than trying to pass all the state about what was rejected and why to the function that generates "Could not find a version that satsifies...", you could add logging into the code that accepts or rejects the versions found to indicate why it was rejected. Then the error message could change to:
Possibly this would be way too verbose, I'm not sure, but it might be worth looking into as an alternative to trying to explain why a given version was rejected in the error message. |
Could this be resolved by #8133? |
I don’t think so since the main issue here is |
Description:
I would like troubleshooting pip to be easier for the end-user when the cause is no internet connection.
If I run the following with no internet connection:
then pip's stderr output looks like this--
Without the
--retries
argument, you will at least see connection errors prior to this.In either case, it seems like pip's final error message should say something about its inability to connect. This would make diagnosis much easier. With the current message, it's not clear why no distributions were found.
I came across this behavior when encountering a similar issue in
pip-tools
. It's possible thatpip-tools
's issue is caused by pip's behavior in this regard.The text was updated successfully, but these errors were encountered: