[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: About requests.packages.urllib3 in Debian



On 12 November 2014 15:15, Daniele Tricoli <eriol@mornie.org> 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 <module>
|    import docker, os
|  File "/usr/lib/python3/dist-packages/docker/__init__.py", line 20,
in <module>
|    from .client import Client # flake8: noqa
|  File "/usr/lib/python3/dist-packages/docker/client.py", line 28, in <module>
|    from .unixconn import unixconn
|  File "/usr/lib/python3/dist-packages/docker/unixconn/__init__.py",
line 1, in <module>
|    from .unixconn import UnixAdapter  # flake8: noqa
|  File "/usr/lib/python3/dist-packages/docker/unixconn/unixconn.py",
line 24, in <module>
|    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


Reply to: