-
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
Switch from urllib2 to requests breaks pip on certain setups #1421
Comments
Looks like pypiserver has fix in place: pypiserver/pypiserver#42 |
👍 Ran into the same problem, we have the exact same setup. I know there's a fix in the works for pypiserver, but this seems like something pip might want to be more graceful about as well. |
Can you verify that this fixes the problem for you? #1435 |
Yup, works for me on with #1435 fix applied |
Perfect, thanks. |
Closed with #1435 |
For the benefit of posterity (and easier searching for our fellow developers), this fixes the error "not a gzip file" that I experienced with the following stack trace:
|
Switch introduced by commit ff2854a breaks pip on certain setups.
Sure, this can probably be blamed on those setups too, but it is somewhat bizarre when things all the sudden stop working.
Here's the case:
We run our internal pypi server (with pypi-server fronted by nginx). It serves tar.gz files, but with Content-Type application/x-tar it seems and with Content-Encoding set to 'gzip'.
Looks like when requests encounters this kind of request, it tries to gunzip it, resulting in deflating the actual zipped file.
My guess is that bottle does not handle this correctly in first place, however this breaks pip with pypiserver in version 1.5.
The text was updated successfully, but these errors were encountered: