Skip to content
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

Closed
stchris opened this issue Feb 2, 2015 · 6 comments
Closed

Timeout connections to unreachable hosts #2389

stchris opened this issue Feb 2, 2015 · 6 comments
Labels
auto-locked Outdated issues that have been locked by automation

Comments

@stchris
Copy link

stchris commented Feb 2, 2015

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.

@dstufft
Copy link
Member

dstufft commented Mar 5, 2015

What version of pip, and can you post the requirements.txt file?

@xavfernandez
Copy link
Member

Closing as unclear

@RonnyPfannschmidt
Copy link
Contributor

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

@xavfernandez
Copy link
Member

Thanks for the clarification :)

@xavfernandez xavfernandez reopened this Nov 30, 2015
@saifrahmed
Copy link

I am having the same exact problem, despite upgrading pip to the latest version (pip 7.1.2)

@dstufft
Copy link
Member

dstufft commented Mar 24, 2017

Closing this, PyPI no longer allows linking to any external sites, --no-allow-external is gone, and the only way you'd contact RTD is by manually specifying it.

@dstufft dstufft closed this as completed Mar 24, 2017
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 3, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation
Projects
None yet
Development

No branches or pull requests

5 participants