[PKG-Openstack-devel] Bug#877840: python-magnumclient: FTBFS ImportError: No module named oslo_log, openstackclient.tests.unit

Andreas Beckmann anbe at debian.org
Fri Oct 6 03:37:09 UTC 2017


Source: python-magnumclient
Version: 2.7.0-1
Severity: serious
Justification: fails to build from source

Hi,

python-magnumclient/experimental FTBFS due to undeclared build
dependencies:

===> Testing with python (python2)
+ rm -rf .testrepository
+ testr-python2 init
+ mktemp -t
+ TEMP_REZ=/tmp/tmp.HyG3Fo4P04
+ tee /tmp/tmp.HyG3Fo4P04
+ subunit2pyunit
+ pwd
+ PYTHONPATH=/build/python-magnumclient-2.7.0 PYTHON=python2.7 testr-python2 run --subunit magnumclient\.tests\.(?!.*test_utils\.CliUtilsTest\.test_keys_and_vals_to_strs.*)
ruNon-zero exit code (2) from test listing.
nning=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \
${PYTHON:-python} -m subunit.run discover -t ./ . --list 
--- import errors ---
Failed to import test module: magnumclient.tests.osc.unit.v1.test_cluster_templates
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/unittest2/loader.py", line 456, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib/python2.7/dist-packages/unittest2/loader.py", line 395, in _get_module_from_name
    __import__(name)
  File "magnumclient/tests/osc/unit/v1/test_cluster_templates.py", line 20, in <module>
    from magnumclient.osc.v1 import cluster_templates as osc_ct
  File "magnumclient/osc/v1/cluster_templates.py", line 20, in <module>
    from oslo_log import log as logging
ImportError: No module named oslo_log

Failed to import test module: magnumclient.tests.osc.unit.v1.test_clusters
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/unittest2/loader.py", line 456, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib/python2.7/dist-packages/unittest2/loader.py", line 395, in _get_module_from_name
    __import__(name)
  File "magnumclient/tests/osc/unit/v1/test_clusters.py", line 21, in <module>
    from magnumclient.tests.osc.unit.v1 import fakes as magnum_fakes
  File "magnumclient/tests/osc/unit/v1/fakes.py", line 20, in <module>
    from magnumclient.tests.osc.unit import osc_utils
  File "magnumclient/tests/osc/unit/osc_utils.py", line 21, in <module>
    from openstackclient.tests.unit import fakes
ImportError: No module named openstackclient.tests.unit

----------------------------------------------------------------------
Ran 0 tests in 0.510s


Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: python-magnumclient_2.7.0-1.log.gz
Type: application/gzip
Size: 19460 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/openstack-devel/attachments/20171006/7fa0e45c/attachment-0001.bin>


More information about the Openstack-devel mailing list