Your message dated Wed, 09 Sep 2015 21:21:30 +0000
with message-id <e1zzmo6-000682...@franck.debian.org>
and subject line Bug#796356: fixed in python-urllib3 1.11-2
has caused the Debian Bug report #796356,
regarding python-urllib3: broken when python-future is installed, fix available 
upstream
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
796356: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=796356
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: python-urllib3
Version: 1.11-1
Severity: normal

This version of the package fails to work when python-future is installed.

  $ python
  Python 2.7.10 (default, Jul  1 2015, 10:54:53) 
  [GCC 4.9.2] on linux2
  Type "help", "copyright", "credits" or "license" for more information.
  >>> import requests
  >>> requests.get('http://debian.org/')
  Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    File "/usr/lib/python2.7/dist-packages/requests/api.py", line 69, in get
      return request('get', url, params=params, **kwargs)
    File "/usr/lib/python2.7/dist-packages/requests/api.py", line 50, in request
      response = session.request(method=method, url=url, **kwargs)
    File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 465, in 
request
      resp = self.send(prep, **send_kwargs)
    File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 573, in 
send
      r = adapter.send(request, **kwargs)
    File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 370, in 
send
      timeout=timeout
    File "/usr/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 
557, in urlopen
      body=body, headers=headers)
    File "/usr/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 
388, in _make_request
      assert_header_parsing(httplib_response.msg)
    File "/usr/lib/python2.7/dist-packages/urllib3/util/response.py", line 49, 
in assert_header_parsing
      if not isinstance(headers, httplib.HTTPMessage):
  AttributeError: 'module' object has no attribute 'HTTPMessage'
  >>> 
  $ 
  
The start of urllib3/util/response.py looks like:

  try:
      import http.client as httplib
  except ImportError:
      import httplib

The try is expected to fail on Python 2.7, but it succeeds because
python-future includes /usr/lib/python2.7/dist-packages/http/client.py which
looks like this:

  from __future__ import absolute_import
  import sys

  assert sys.version_info[0] < 3

  from httplib import *

Here is the upstream fix:

https://github.com/shazow/urllib3/commit/f4eb94bc36277d5d584683a03fc9eb3950429a15

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.0.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages python-urllib3 depends on:
ii  python-six  1.9.0-3
pn  python:any  <none>

Versions of packages python-urllib3 recommends:
ii  ca-certificates         20150426
ii  python-ndg-httpsclient  0.4.0-1
ii  python-openssl          0.15.1-2
ii  python-pyasn1           0.1.8-1

Versions of packages python-urllib3 suggests:
pn  python-ntlm  <none>

-- no debconf information

-- 
Edward.

--- End Message ---
--- Begin Message ---
Source: python-urllib3
Source-Version: 1.11-2

We believe that the bug you reported is fixed in the latest version of
python-urllib3, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 796...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Daniele Tricoli <er...@mornie.org> (supplier of updated python-urllib3 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 23 Aug 2015 21:19:59 +0200
Source: python-urllib3
Binary: python-urllib3 python3-urllib3 python-urllib3-whl
Architecture: source all
Version: 1.11-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Modules Team 
<python-modules-team@lists.alioth.debian.org>
Changed-By: Daniele Tricoli <er...@mornie.org>
Description:
 python-urllib3 - HTTP library with thread-safe connection pooling for Python
 python-urllib3-whl - HTTP library with thread-safe connection pooling
 python3-urllib3 - HTTP library with thread-safe connection pooling for Python3
Closes: 796356
Changes:
 python-urllib3 (1.11-2) unstable; urgency=medium
 .
   * debian/patches/06_rely-on-six-to-import-httplib-or-http.client.patch
     - Rely on six to import httplib or http.client. Thanks to Edward Betts
       for the report. (Closes: #796356)
Checksums-Sha1:
 e992f05fd1fadc53a32cf3e8658110aec4c68b02 2416 python-urllib3_1.11-2.dsc
 abe079130a15f179f26dfbe400491d60fcf101e5 8348 
python-urllib3_1.11-2.debian.tar.xz
 260a5a477bf3801686c5ec6d0ddcfe8cd0a1bdcb 64994 
python-urllib3-whl_1.11-2_all.deb
 ac47959cb6b6317924698ff303e156d0caad9a3c 64516 python-urllib3_1.11-2_all.deb
 c62a9179e50c8daafa1d867be196e79040f3407d 64638 python3-urllib3_1.11-2_all.deb
Checksums-Sha256:
 a6bf92ba91aab1c32f0ae8cd285c92085ced4d06692fbc180e74be265eef2b91 2416 
python-urllib3_1.11-2.dsc
 e71a68e29c1d641d99304b6265d1d0c09e1e80f1019763a2b7fd1c81e2da9d87 8348 
python-urllib3_1.11-2.debian.tar.xz
 d51f3251a1f2802a3fc9077c60143cfbf543009c006833c2c3efb9b15a137823 64994 
python-urllib3-whl_1.11-2_all.deb
 b07b4e571c66852cc8d2132057fcd9119d20fb7fb628ccd14320cb2670a2b437 64516 
python-urllib3_1.11-2_all.deb
 04b46a05570fbee20a6384822135501b988ce283c8d5e9f07b7804c448ffc681 64638 
python3-urllib3_1.11-2_all.deb
Files:
 77fa045c11a2c824e3bd3e8b2627a20a 2416 python optional python-urllib3_1.11-2.dsc
 0d27a34fcbffdbb46a09c3dd8a399583 8348 python optional 
python-urllib3_1.11-2.debian.tar.xz
 0a7baa59ae775e54c0a91279d375e2a0 64994 python optional 
python-urllib3-whl_1.11-2_all.deb
 ceda3ea13e0937b76909f663efae067f 64516 python optional 
python-urllib3_1.11-2_all.deb
 ae3623f2e9f8f0e68b66800b3aeb55d2 64638 python optional 
python3-urllib3_1.11-2_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCgAGBQJV8JMxAAoJEK728aKnRXZFJWYQAIL65eWDAHAlzwSUxOEMSUdm
uYv+N6/cx0q06E7XlnlFNmgrHcPGEO2gMhktZEZCSC47onXQPDczsDPBeEKxVtct
O6MjWuhQj8N7zemnje3wmt279FxG7vSbPXV0OpbKEH9IHJ0w1BMHuczNENsmBDDJ
2zTpKrsQilXdHuHPoxHMa2ZU7wuVgAsVJjbTcDqqmXuuc8YNhw6Xca9jz9oIwgiO
ARzaH+APUKc+rnZQRp/E7gcIdo1n4Pk/16Em75ut5FNsNftzBwwjC6ltKX3/NRjM
l0AZ9CxvT85jSQkrwAbD/EMFpWhwBuctJyRtQlOFv1X1EzM0doTMgj4sMl2wYHxH
7Z33rW42SaUAIDtJ0P/c2a/rW0rI2cQkWQUmABYS1aP9511DVoDDZ9yJb03b7yzl
r/Tjao1d81gmfUbNiHC2HQhDlO7gMSrHylEgyxpQqx19j4JKs8V1Qam/JSHKZVFH
5+hkGi9unzR27ornWFJlXrglTFl7u5GNoQJWAbFe73ymoUIjJ4qtGtRrImguDPQt
WTT9SMUS4wU7nD26PTwtS0RLceFDINqShd5XHJgObt2in2+IcJo4xb940p3T+2Oc
uvr4cDrXiyhDASkw2fShrdJL6N8D8b6nQc6Milz2hCaU8kLq+xvCJ7vRGdRT5ZFa
1VNIJ4kilvmoYqa9xmwG
=tDgK
-----END PGP SIGNATURE-----

--- End Message ---
_______________________________________________
Python-modules-team mailing list
Python-modules-team@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team

Reply via email to