-
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 trying to reach pypi.org eventhough index-url overriden #7597
Comments
I don’t see pip accessing pypi.org in the output you provided. The |
Also, wasn't the conclusion in #6799 that the issue was related to Debian's debundling of pip? So if this is the same as that issue, the solution would be the same as well - it needs to be taken up with Debian, or you'll need to reproduce the issue with a vanilla copy of pip. |
@uranusjr Well, I can't tell. Since the error messages doesn't mention towards which host the requests failed. I just know it's the @pfmoore I did install pip from a wheel package I retrieved by |
It looks like |
I'm serving |
@Spriithy You might want to try launching your |
Oh nice ! This fixes the issue so I'm closing it. Thanks for your help ! |
Environment
The machine is setup in a secure / isolated network with no internet connection. I have two machines supplying a PyPi server (namely hereafter
index0
andindex1
).My
/etc/pip.conf
looks like this :Description
When installing a package present on
index0
's PyPi server, everything works fine. But when installing a package that isn't present onindex0
but is onindex1
, pip tries to contacthttps://pypi.org/simple/<package_name>
. This results in pip retrying 5 times to request this URL in vain eventhough I have mypip.conf
overriding the index URLs and where to search for packages. This is extremely similar to #6799 but is not fixed by upgrading pip or python or system whatsoever.Expected behavior
Pip would skip index0 upon failure and directly request index1.
How to Reproduce
/
Output
I am not able to copy / paste the output of the commands directly since it happens on a network-isolated machine. However, output is extremely similar to that of #6799 and contains :
And then a bunch of pointless retries on this request before successfully contacting index1 and installing the package as expected.
This is pretty annoying I must admit. It would be less of a pain would I be able to override the default retry count in the pip configuration but I haven't been able to find such parameter anywhere.
Thanks in advance for the quick reply
The text was updated successfully, but these errors were encountered: