pip breaks after upgrading python package "requests"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-pip (Debian) |
Fix Released
|
Unknown
|
|||
python-pip (Ubuntu) |
Fix Released
|
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
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 |
Status changed to 'Confirmed' because the bug affects multiple users.