Alejandro Pereira created LIBCLOUD-744:
------------------------------------------
Summary: backports.ssl_match_hostname dependency error when
running tests with docker container
Key: LIBCLOUD-744
URL: https://issues.apache.org/jira/browse/LIBCLOUD-744
Project: Libcloud
Issue Type: Bug
Environment: ubuntu 15.04
Reporter: Alejandro Pereira
I've got the following error when running tests with docker container:
Sending build context to Docker daemon 18.44 MB
Step 0 : FROM ubuntu:14.04
---> 91e54dfb1179
Step 1 : RUN set -e && apt-get update && apt-get install -y
software-properties-common wget ssh && add-apt-repository
ppa:fkrull/deadsnakes && apt-get update && apt-get -y install python2.6
python2.7 python3.2 python3.3 python3.4 python-dev
python2.6-dev python2.7-dev python3.2-dev python3.3-dev
python3.4-dev python-pip
---> Using cache
---> e599035892a1
Step 2 : RUN set -e && wget
https://bitbucket.org/pypy/pypy/downloads/pypy-2.5.0-linux64.tar.bz2 && tar
xf ./pypy-2.5.0-linux64.tar.bz2 -C /opt && ln -s
/opt/pypy-2.5.0-linux64/bin/pypy /usr/local/bin/pypy
---> Using cache
---> b42d70da0cfd
Step 3 : RUN set -e && pip install tox mock lockfile coverage
---> Using cache
---> 26d01563b586
Step 4 : COPY . /libcloud
---> Using cache
---> c2252b7c7490
Step 5 : WORKDIR /libcloud
---> Using cache
---> 5d0c6045bea7
Step 6 : CMD tox -e py26,py27,pypy,py32,py33,py34,lint
---> Using cache
---> 12e5ac0553de
Successfully built 12e5ac0553de
GLOB sdist-make: /libcloud/setup.py
ERROR: invocation failed (exit code 1), logfile: /libcloud/.tox/log/tox-0.log
ERROR: actionid: tox
msg: packaging
cmdargs: ['/usr/bin/python', local('/libcloud/setup.py'), 'sdist',
'--formats=zip', '--dist-dir', local('/libcloud/.tox/dist')]
env: None
Traceback (most recent call last):
File "setup.py", line 31, in <module>
import libcloud.utils
File "/libcloud/libcloud/__init__.py", line 76, in <module>
_init_once()
File "/libcloud/libcloud/__init__.py", line 58, in _init_once
from libcloud.utils.py3 import PY3
File "/libcloud/libcloud/utils/py3.py", line 65, in <module>
from backports.ssl_match_hostname import match_hostname, CertificateError
# NOQA
ImportError: No module named backports.ssl_match_hostname
ERROR: FAIL could not package project - v = InvocationError('/usr/bin/python
/libcloud/setup.py sdist --formats=zip --dist-dir /libcloud/.tox/dist (see
/libcloud/.tox/log/tox-0.log)', 1)
After seeing this i've got into the container in a bash terminal with:
$ sudo docker run -it --rm --name libcloud_runtest_instance
libcloud_runtest_img /bin/bash
and installed backports.ssl_match_hostname with pip. Running tox after this
i've got the following output:
ERROR: py25: could not install deps [-r/libcloud/requirements-tests.txt,
backports.ssl_match_hostname, unittest2, lockfile, ssl, simplejson, paramiko];
v = InvocationError('/libcloud/.tox/py25/bin/pip install
-r/libcloud/requirements-tests.txt backports.ssl_match_hostname unittest2
lockfile ssl simplejson paramiko (see /libcloud/.tox/py25/log/py25-1.log)', 1)
py26: commands succeeded
py27: commands succeeded
pypy: commands succeeded
py32: commands succeeded
py33: commands succeeded
py34: commands succeeded
lint: commands succeeded
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)