On 12 November 2014 15:15, Daniele Tricoli wrote:
> All done, including unblocking by RT (you rock! :). Many thanks to all!
I reverted the python-docker -1.1 patch (and I've pushed that up so
it's easier to test against), and now it works perfectly in python2
using the new requests 2.4.3-3, but python3 fails with the following:
| $ python3 basic-test.py
| Traceback (most recent call last):
| File "basic-test.py", line 1, in
|import docker, os
| File "/usr/lib/python3/dist-packages/docker/__init__.py", line 20,
in
|from .client import Client # flake8: noqa
| File "/usr/lib/python3/dist-packages/docker/client.py", line 28, in
|from .unixconn import unixconn
| File "/usr/lib/python3/dist-packages/docker/unixconn/__init__.py",
line 1, in
|from .unixconn import UnixAdapter # flake8: noqa
| File "/usr/lib/python3/dist-packages/docker/unixconn/unixconn.py",
line 24, in
|import requests.packages.urllib3.connectionpool as connectionpool
| AttributeError: 'module' object has no attribute 'packages'
Where the contents of my basic-test.py are:
| import docker, os
| c = docker.Client(base_url=os.getenv('DOCKER_HOST'))
| print(c.version())
| print(c.images())
Any ideas? Do we need to include some kind of further patch in
python-docker, or was the patch to requests possibly not complete?
♥,
- Tianon
4096R / B42F 6819 007F 00F8 8E36 4FD4 036A 9C25 BF35 7DD4
--
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive:
https://lists.debian.org/CAHnKnK2PXUhaC7DCO2Quze7ZEbA=xjw3umsznocgdxzndfg...@mail.gmail.com