Your message dated Tue, 04 Nov 2014 07:19:31 +0000
with message-id <e1xlyop-0002pi...@franck.debian.org>
and subject line Bug#767445: fixed in python-docker 0.5.3-1.1
has caused the Debian Bug report #767445,
regarding python-docker: throws ValueError exception on attempting any command
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.)


-- 
767445: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=767445
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: python-docker
Version: 0.5.3-1
Severity: grave
Justification: renders package unusable

I'm finding it impossible to do anything with the API. The ipython
backtrace is pasted below.

My python fu is relatively limited, but the problem looks like for some
reason the requests module is changing the timeout from a number to a
Timeout object, and urllib barfs. I couldn't reproduce the issue using
plain requests (ie, creating a session, adding the HttpAdapter and
sending a request), so I'm filing the bug here. If the bug is elsewhere,
please reassign as appropriate.


In [1]: from docker import Client

In [2]: c = Client()

In [3]: c.version()
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-3-33a9b5269bcf> in <module>()
----> 1 c.version()

/usr/lib/python2.7/dist-packages/docker/client.pyc in version(self)
    932 
    933     def version(self):
--> 934         return self._result(self._get(self._url("/version")), True)
    935 
    936     def wait(self, container):

/usr/lib/python2.7/dist-packages/docker/client.pyc in _get(self, url, **kwargs)
     74 
     75     def _get(self, url, **kwargs):
---> 76         return self.get(url, **self._set_request_timeout(kwargs))
     77 
     78     def _delete(self, url, **kwargs):

/usr/lib/python2.7/dist-packages/requests/sessions.pyc in get(self, url, 
**kwargs)
    467 
    468         kwargs.setdefault('allow_redirects', True)
--> 469         return self.request('GET', url, **kwargs)
    470 
    471     def options(self, url, **kwargs):

/usr/lib/python2.7/dist-packages/requests/sessions.pyc in request(self, method, 
url, params, data, headers, cookies, files, auth, timeout, allow_redirects, 
proxies, hooks, stream, verify, cert, json)                                     
                                                                      
    455         }
    456         send_kwargs.update(settings)
--> 457         resp = self.send(prep, **send_kwargs)
    458 
    459         return resp

/usr/lib/python2.7/dist-packages/requests/sessions.pyc in send(self, request, 
**kwargs)
    567 
    568         # Send the request
--> 569         r = adapter.send(request, **kwargs)
    570 
    571         # Total elapsed time of the request (approximately)

/usr/lib/python2.7/dist-packages/requests/adapters.py in send(self, request, 
stream, timeout, verify, cert, proxies)
    360                     decode_content=False,
    361                     retries=Retry(self.max_retries, read=False),
--> 362                     timeout=timeout
    363                 )
    364 

/usr/lib/python2.7/dist-packages/requests/packages/urllib3/connectionpool.pyc 
in urlopen(self, method, url, body, headers, retries, redirect, 
assert_same_host, timeout, pool_timeout, release_conn, **response_kw)
    514             httplib_response = self._make_request(conn, method, url,
    515                                                   timeout=timeout,
--> 516                                                   body=body, 
headers=headers)
    517 
    518             # If we're going to release the connection in ``finally:``, 
then

/usr/lib/python2.7/dist-packages/requests/packages/urllib3/connectionpool.pyc 
in _make_request(self, conn, method, url, timeout, **httplib_request_kw)
    297         self.num_requests += 1
    298 
--> 299         timeout_obj = self._get_timeout(timeout)
    300         timeout_obj.start_connect()
    301         conn.timeout = timeout_obj.connect_timeout

/usr/lib/python2.7/dist-packages/requests/packages/urllib3/connectionpool.pyc 
in _get_timeout(self, timeout)
    277             # User passed us an int/float. This is for backwards 
compatibility,
    278             # can be removed later
--> 279             return Timeout.from_float(timeout)
    280 
    281     def _make_request(self, conn, method, url, timeout=_Default,

/usr/lib/python2.7/dist-packages/requests/packages/urllib3/util/timeout.pyc in 
from_float(cls, timeout)
    150         :rtype: :class:`Timeout`
    151         """
--> 152         return Timeout(read=timeout, connect=timeout)
    153 
    154     def clone(self):

/usr/lib/python2.7/dist-packages/requests/packages/urllib3/util/timeout.pyc in 
__init__(self, total, connect, read)
     93 
     94     def __init__(self, total=None, connect=_Default, read=_Default):
---> 95         self._connect = self._validate_timeout(connect, 'connect')
     96         self._read = self._validate_timeout(read, 'read')
     97         self.total = self._validate_timeout(total, 'total')

/usr/lib/python2.7/dist-packages/requests/packages/urllib3/util/timeout.pyc in 
_validate_timeout(cls, value, name)
    123         except (TypeError, ValueError):
    124             raise ValueError("Timeout value %s was %s, but it must be 
an "
--> 125                              "int or float." % (name, value))
    126 
    127         try:

ValueError: Timeout value connect was Timeout(connect=60, read=60, total=None), 
but it must be an int or float.



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

Kernel: Linux 3.16-3-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

Versions of packages python-docker depends on:
ii  python            2.7.8-2
ii  python-requests   2.4.3-2
ii  python-six        1.8.0-1
ii  python-websocket  0.18.0-1

python-docker recommends no packages.

python-docker suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: python-docker
Source-Version: 0.5.3-1.1

We believe that the bug you reported is fixed in the latest version of
python-docker, 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 767...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jakub Warmuz <ja...@warmuz.org> (supplier of updated python-docker 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: SHA256

Format: 1.8
Date: Sat, 01 Nov 2014 18:19:57 +0100
Source: python-docker
Binary: python-docker python3-docker
Architecture: source all
Version: 0.5.3-1.1
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Modules Team 
<python-modules-t...@lists.alioth.debian.org>
Changed-By: Jakub Warmuz <ja...@warmuz.org>
Description:
 python-docker - Python wrapper to access docker.io's control socket
 python3-docker - Python 3 wrapper to access docker.io's control socket
Closes: 767445
Changes:
 python-docker (0.5.3-1.1) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * Added debian/patches/02_use-system-urllib3.patch (Closes: #767445).
   * Renamed debian/patches/requirements.patch to
     debian/patches/01_requirements.patch following convention from other
     Python packages.
Checksums-Sha1:
 7ae0f9fa558b8dc630b4d0661d3ff5f15a591a07 2332 python-docker_0.5.3-1.1.dsc
 e54f91b5a4903fb7f39d9ca696e5b51916c417d2 3072 
python-docker_0.5.3-1.1.debian.tar.xz
 d0c9e82d9a6a345001cf0183e3905b17fa876837 16132 python-docker_0.5.3-1.1_all.deb
 be8f44600396597bd69a7b63d28c96f0932bc5c5 16014 python3-docker_0.5.3-1.1_all.deb
Checksums-Sha256:
 ed6022459240287017dd81de385cc1dca6a95f06c4811681fafe7f6b8b54ec01 2332 
python-docker_0.5.3-1.1.dsc
 6df405c331c9b37a153b8c3d3383df09264754968affcd388adc7eac409fcdcb 3072 
python-docker_0.5.3-1.1.debian.tar.xz
 0e2cb007816ee467ea5d5993bdb6dae18f8c52c07f691b1aa1a42b8c9def14ce 16132 
python-docker_0.5.3-1.1_all.deb
 4f864f8ac2cbdf25eee0df2731e8016cee4337daa3e66d9c7557097dbbd21d9b 16014 
python3-docker_0.5.3-1.1_all.deb
Files:
 c89efa88afb8cc243580ef4715700f82 2332 python optional 
python-docker_0.5.3-1.1.dsc
 ae571d549b85ed41f84cb286863f6fde 3072 python optional 
python-docker_0.5.3-1.1.debian.tar.xz
 c81913ce97ef3a19646c39060dfd2e67 16132 python optional 
python-docker_0.5.3-1.1_all.deb
 0c4226e2797f3d000c1e798aa7a9d516 16014 python optional 
python3-docker_0.5.3-1.1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJUWHmcAAoJEI7tzBuqHzL/56EP/RLWI+2O8XcIN0eEjKcvWQj3
iUhhPL2OhAwagJg/KASCXihCS8grYJ6+Hh/hIWftW2RzmvPF3GLU3v2AMPNr2X4I
zdECL+vZNksOdNM3ItrjqFrtn7uvT6oiV2992M758pHxm9jyoaNSgMZVAwFFwSqQ
4QPNKBd6fG1MifG7rB8hfftO7jy2SRCc6c72o7v9D92TbkOGgw1aZBjrMwn+rN1Z
FOCCcLwD+B11WMwa+VzwnOVW5wAhofbj7xAUBWozKdKzuulJ2PE5zg03hFhQny9i
NR30ge6wfqIb/ibQELMi1wHsDqIpFfG/iXgonecwCTtpG0wz20pedEGHPqQzFZZD
SKUiO4boGE0/myfecK/Tkm1OAZWVlyWaD6W6NhqXwrykHSvHGefeIsVK/ZGxki9U
4G34+oyDT7RhrzgNT7thW9Kl3vlzWrFD+3PhARypCNB0/gd1ZnWs08eW/lvsMXRB
MDaE+zozVmHnRlk+dHv6DssATNnGiPeqgzEkFQz5HcwhUAC3buJbNlianrwn3041
KB2SIziRTo6wJpi9MI6+QsiVt2bdHqp5Rl+eercg3hyT1TrVdHAsb4ujU1KjQpde
Stn6WJ7DHGb/ITP+hvFa/VY3naQDgsf9iaHwgXwCbt18H2mOdzFGTxni80CNbAaA
azIAKYBCXx7WF1dydcyo
=iPvZ
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to