[Python-modules-team] Bug#767445: python-docker: throws ValueError exception on attempting any command

Jakub Warmuz jakub at warmuz.org
Sat Nov 1 11:26:24 UTC 2014


FYI this has also been reported upstream:
https://github.com/docker/docker-py/issues/377.

I believe that this is due to python-docker explicitly importing
requests.packages.urllib3:

> /usr/lib/python2.7/dist-packages/docker/unixconn/unixconn.py:    import requests.packages.urllib3.connectionpool as connectionpool
> /usr/lib/python2.7/dist-packages/docker/ssladapter/ssladapter.py:    import requests.packages.urllib3 as urllib3

and the code breaks because:

> In [1]: from requests.packages.urllib3.util.timeout import Timeout as T1
> 
> In [2]: from urllib3.util.timeout import Timeout as T2
> 
> In [3]: T1 is T2
> Out[3]: False

IMO a package patch should be provided to import global urllib3 instead,
following Debian packaging standards (c.f. related Debian bug #753578).

-- 
Yours virtually,
Jakub Warmuz

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20141101/8923bb53/attachment.sig>


More information about the Python-modules-team mailing list