-
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
Timeout connections to unreachable hosts #2389
Comments
What version of pip, and can you post the |
Closing as unclear |
seeing this bug, even with the most recent pip i ran into that issue when running pip install via ansible on a system that does not allow outbound http connections, pip would hang until some tcp timeout, retry n times and it would take up to 20 minutes before the failure would come back from ansible |
Thanks for the clarification :) |
I am having the same exact problem, despite upgrading pip to the latest version (pip 7.1.2) |
Closing this, PyPI no longer allows linking to any external sites, |
I have a project which has, amongst others, a dependency on python-protobuf. This package in turn depends on python-dateutil which is hosted on readthedocs.org. Unfortunately
pip install -r requirements.txt
will try to reach dateutil.readthedocs.org, which is currently not reachable for me and this breaks the build.I'd have expected the
--timeout
and/or--retries
flags of pip to work on this as well, but it seems like they don't.I've also tried
--no-allow-external python-dateutil
, but that didn't seem to work either.Looking at https://github.com/pypa/pip/blob/develop/pip/index.py#L575 it might be that the latter doesn't work because there's a GET request going out before the check for allow_external is made. With some guidance I might help out with a Pull Request here.
The text was updated successfully, but these errors were encountered: