[Python-apps-team] Bug#769685: awscli: FTBFS: ImportError: Failed to import test module: awscli.testutils
Tom Marble
tmarble at info9.net
Mon Nov 17 17:59:38 UTC 2014
Supposedly #769496 fixed this bug, but I continued to
have troubles with 'aws' (from package 'awscli').
I suspect the 'monkey patch' fix is very sensitive to import order (?)
I partial fix was to make this change in
/usr/lib/python3/dist-packages/botocore/awsrequest.py
#from requests.packages.urllib3.connection import HTTPConnection
#from requests.packages.urllib3.connectionpool import HTTPConnectionPool
#from requests.packages.urllib3.connectionpool import HTTPSConnectionPool
from urllib3.connection import HTTPConnection
from urllib3.connectionpool import HTTPConnectionPool
from urllib3.connectionpool import HTTPSConnectionPool
HOWEVER aws is still having some other troubles (which may
or may not be related to this bug).
Regards,
--Tom
$ aws --debug --region us-east-1c ec2 describe-instances
[...]
2014-11-17 11:45:03,723 - MainThread - botocore.endpoint - DEBUG - Exception received when sending HTTP request.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 516, in urlopen
body=body, headers=headers)
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 304, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 724, in _validate_conn
conn.connect()
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 203, in connect
conn = self._new_conn()
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 133, in _new_conn
(self.host, self.port), self.timeout, **extra_kw)
File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 64, in create_connection
for res in socket.getaddrinfo(host, port, 0, socket.SOCK_STREAM):
File "/usr/lib/python3.4/socket.py", line 534, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known
More information about the Python-apps-team
mailing list