[Python-modules-team] Bug#744145: [python-pip] The problem comes from de-vendorize.patch

Yannick Roehlly yannick at iaora.eu
Tue Oct 21 20:14:49 UTC 2014


Package: python-pip
Version: 1.5.6-2

--- Please enter the report below this line. ---

The problem comes from de-vendorize.patch:

--- a/pip/download.py
+++ b/pip/download.py
@@ -19,13 +19,13 @@
[...]
-from pip._vendor.requests.compat import IncompleteRead
[...]
+from requests.compat import IncompleteRead

Previous versions of requests raised IncompleteRead (from httplib) but now it 
raises ChunkedEncodingError. In download.py, the IncompleteRead is re-raised 
as ChunkedEncodingError.

A quick fix would be to use "from httplib import IncompleteRead" in the 
de-vendorize.patch (even if the IncompleteRead will not be raised by requests 
any more).

Note that there may be other problems with pip using the upgraded requests.

Regards,

Yannick

--- System information. ---
Architecture: amd64
Kernel:       Linux 3.17.1

Debian Release: jessie/sid
  500 unstable        ftp.fr.debian.org 
  500 unstable        ftp.de.debian.org 
  500 unstable        deb-multimedia.org 
    1 experimental    ftp.fr.debian.org 
    1 experimental    ftp.de.debian.org 

--- Package information. ---
Depends                      (Version) | Installed
======================================-+-==============
ca-certificates                        | 20141019
python-colorama                        | 0.3.2-1
python-distlib                         | 0.1.9-1
python-html5lib                        | 0.999-3
python-pkg-resources                   | 5.5.1-1
python-requests                        | 2.4.3-1
python-setuptools           (>= 0.6c1) | 5.5.1-1
python-six                             | 1.8.0-1
python:any               (>= 2.7.5-5~) | 
python                                 | 2.7.8-1
python:any                    (<< 2.8) | 


Recommends           (Version) | Installed
==============================-+-===========
build-essential                | 11.7
python-dev-all        (>= 2.6) | 
python-wheel                   | 0.24.0-1


Package's Suggests field is empty.



-- 
As flies to wanton boys are we to the gods; they kill us for their sport.
		-- Shakespeare, "King Lear"



More information about the Python-modules-team mailing list