-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Pip no longer works with http version of --index-url #1036
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
Comments
Does "My network have issues with https traffic" mean your network has something like a bluecoat or brocade device which intercepts TLS traffic and replaces the SSL cert with own of it's own creation? |
Can you explain more about why https is impossible on your network? If you've got an SSL intercept device that prevents HTTPS, you can pass an alternate trusted certificate to pip so that it trusts that device. If SSL is blocked at the firewall for some reason, can you use your exit proxy as a socks proxy with a socks tunneling wrapper? |
@dstufft @PaulMcMillan ... thanks for your replies. I don't think my environment really has issues with https, perhaps I shouldn't have said it like that. What is weird is that I am totally able to get the https version of the page with curl.
... yet this is what happens when I use pip...
perhaps this is related to issue #1017 |
It looks like your proxy does not have an SSL certificate at all? Does it respond to port 443 with a SSL certificate? You might need to use https_proxy as the envvar. |
@dstufft I didn't realize https_proxy was a separate thing. I set https_proxy to the same thing but with 443 instead of 80 and it now works for me. THANKS!!! I don't know why curl was able to get it fine with only http_proxy but pip needs https_proxy. Perhaps both curl and Firefox do some logic where if http_proxy is set it uses the same proxy for https? Should pip do the same? |
Going to close this since the issue is solved. I don't think pip should do the same logic but if you feel strongly about it I encourage you to open a ticket for that issue itself. |
I agree with closing this and thanks for your help @dstufft . I'm not sure how I feel about pip and curl/firefox having the same logic with regard to http_proxy vs. https_proxy. Does freedesktop.org have any opinions about how software should behave? |
i have the same issue . It is not working even if i set https_proxy . If I do a tcpdump I see the 301 redirect and after that I see that there is no fetch for the https url |
What version of pip? |
pip 1.0 from /usr/lib/python2.7/dist-packages (python 2.7) On Mon, Sep 30, 2013 at 4:49 PM, Donald Stufft notifications@gh.loli.gardenwrote:
|
This is how I was previously able to install packages.
http_proxy="some.internal.proxy.net:80" pip install --index-url=http://pypi.python.org/simple/ some_package
This stopped working recently.
My network has issues with https traffic and the above command was my way around it.
It looks like the server is returning 301 and redirecting to the https version of the page. This will not work for me. Any suggestions?
$ curl -i -xsome.internal.proxy.net:80 http://pypi.python.org/simple/
HTTP/1.1 301 Moved Permanently
Retry-After: 0
Location: https://pypi.python.org/simple/
Content-Length: 0
Accept-Ranges: bytes
Date: Tue, 09 Jul 2013 18:37:20 GMT
Proxy-Connection: Close
The text was updated successfully, but these errors were encountered: