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

2014-10-23 Thread Daniele Tricoli
Hello Yannick,
requests' maintainer here.

On Tuesday 21 October 2014 22:14:49 Yannick Roehlly wrote:
 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).

I fixed this inside requests (both for Python 2 and Python 3). 
See

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=766419#23

for details

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

I did not run tests, but I tried pip{,3} both inside virtualenvs and passing 
--user option: it works in both cases.

Please try requests 2.4.3-2. Thanks!

Kind regards,

-- 
 Daniele Tricoli 'Eriol'
 http://mornie.org


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



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

2014-10-21 Thread Yannick Roehlly
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 unstableftp.fr.debian.org 
  500 unstableftp.de.debian.org 
  500 unstabledeb-multimedia.org 
1 experimentalftp.fr.debian.org 
1 experimentalftp.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


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org