-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Description
Could docker-py be updated to be compatible with python-requests 2.0.1?
I'm getting this error: AttributeError: 'UnixHTTPConnectionPool' object has no attribute 'strip'
traceback:
File "/usr/lib/python2.7/site-packages/docker/client.py", line 314, in info
return self._result(self.get(self._url("/info")), True)
File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 373, in get
return self.request('GET', url, **kwargs)
File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 361, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 464, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python2.7/site-packages/requests/adapters.py", line 296, in send
conn = self.get_connection(request.url, proxies)
File "/usr/lib/python2.7/site-packages/docker/unixconn/unixconn.py", line 65, in get_connection
return UnixHTTPConnectionPool(self.base_url, socket_path)
File "/usr/lib/python2.7/site-packages/docker/unixconn/unixconn.py", line 53, in __init__
super(UnixHTTPConnectionPool, self).__init__(self, 'localhost')
File "/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 144, in __init__
ConnectionPool.__init__(self, host, port)
File "/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 73, in __init__
host = host.strip('[]')
AttributeError: 'UnixHTTPConnectionPool' object has no attribute 'strip'