pip breaks after upgrading python package "requests"
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | python-pip (Debian) |
Fix Released
|
Unknown
|
||
| | python-pip (Ubuntu) |
Undecided
|
Barry Warsaw | ||
Bug Description
On Ubuntu 14.04, python-pip 1.5.4-1
After upgrading "requests" to 2.4, due to this commit:
https:/
"IncompleteRead" is removed from "requests.compat" and any pip invokation results in:
user@server:
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
load_
File "/usr/local/
return get_distributio
File "/usr/local/
return ep.load()
File "/usr/local/
['__name__'])
File "/usr/lib/
from pip.vcs import git, mercurial, subversion, bazaar # noqa
File "/usr/lib/
from pip.download import path_to_url
File "/usr/lib/
from requests.compat import IncompleteRead
ImportError: cannot import name IncompleteRead
Woraround: Downgrade to requests=2.3.0 using easy_install:
sudo easy_install requests==2.3.0
Does not happen in Debian Wheezy (seems not to rely on "requests" at all in their version)
Related branches
| Simon Davy (bloodearnest) wrote : | #2 |
Looks like a fix is in progress upstream: https:/
| Barry Warsaw (barry) wrote : | #3 |
I think this is a different bug than the Debian one referenced in comment #2. It's actually
It's reproducible with:
$ pip install --upgrade --user requests
$ pip install --upgrade --user mistune
(any package after upgrading requests will trigger it)
I think the problem is that the wheels are only used inside a venv, but should probably be used everywhere. They are in /usr/share/
| Barry Warsaw (barry) wrote : | #4 |
Oops! "It's actually..." https:/
| Changed in python-pip (Ubuntu): | |
| assignee: | nobody → Barry Warsaw (barry) |
| status: | Confirmed → In Progress |
| Changed in python-pip (Debian): | |
| status: | Unknown → Fix Committed |
| Changed in python-pip (Debian): | |
| status: | Fix Committed → Fix Released |
| Launchpad Janitor (janitor) wrote : | #5 |
This bug was fixed in the package python-pip - 1.5.6-5ubuntu1
---------------
python-pip (1.5.6-5ubuntu1) vivid; urgency=medium
* Merge with Debian. Remaining changes:
- debian/
virtualenv.
* Merge closes LP: #1363642
python-pip (1.5.6-5) unstable; urgency=medium
* Team upload.
* Use the .whl files for de-vendorized dependencies both inside and
outside the virtual environments. (Closes: #744145)
* d/control: Bump Standards-Version with no other changes necessary.
* d/patches/
-- Barry Warsaw <email address hidden> Sun, 01 Mar 2015 10:33:01 -0500
| Changed in python-pip (Ubuntu): | |
| status: | In Progress → Fix Released |


Status changed to 'Confirmed' because the bug affects multiple users.