Skip to content

Instantly share code, notes, and snippets.

@danehans
Last active September 24, 2015 21:21
Show Gist options
  • Save danehans/2b3c8d2cce2a4087d0ac to your computer and use it in GitHub Desktop.
Save danehans/2b3c8d2cce2a4087d0ac to your computer and use it in GitHub Desktop.
magnum testr fail
Failed to import test module: magnum.tests.unit.test_opts
Traceback (most recent call last):
File "/opt/stack/magnum/.tox/py27/local/lib/python2.7/site-packages/unittest2/loader.py", line 456, in _find_test_path
module = self._get_module_from_name(name)
File "/opt/stack/magnum/.tox/py27/local/lib/python2.7/site-packages/unittest2/loader.py", line 395, in _get_module_from_name
__import__(name)
File "magnum/tests/unit/test_opts.py", line 18, in <module>
from magnum import opts
File "magnum/opts.py", line 28, in <module>
import magnum.conductor.handlers.bay_conductor
File "magnum/conductor/handlers/bay_conductor.py", line 25, in <module>
from magnum.conductor import scale_manager
File "magnum/conductor/scale_manager.py", line 18, in <module>
from magnum.conductor import k8s_api as k8s
File "magnum/conductor/k8s_api.py", line 18, in <module>
from magnum.common.pythonk8sclient.swagger_client import api_client
File "magnum/common/pythonk8sclient/swagger_client/__init__.py", line 114, in <module>
from .apis.apiv_api import ApivApi
File "magnum/common/pythonk8sclient/swagger_client/apis/__init__.py", line 4, in <module>
from .apiv_api import ApivApi
File "magnum/common/pythonk8sclient/swagger_client/apis/apiv_api.py", line 28, in <module>
from ..configuration import Configuration
File "magnum/common/pythonk8sclient/swagger_client/configuration.py", line 21, in <module>
import urllib3
ImportError: No module named urllib3
Non-zero exit code (2) from test listing.
error: testr failed (3)
$ pip show urllib3
---
Metadata-Version: 2.0
Name: urllib3
Version: 1.12
Summary: HTTP library with thread-safe connection pooling, file post, and more.
Home-page: http://urllib3.readthedocs.org/
Author: Andrey Petrov
Author-email: [email protected]
License: MIT
Location: /usr/local/lib/python2.7/dist-packages
Requires:
$ grep -ri urllib3 ../magnum/
...
../magnum/requirements.txt:urllib3>=1.8.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment