[PKG-Openstack-devel] Bug#877840: python-magnumclient: FTBFS ImportError: No module named oslo_log, openstackclient.tests.unit
Andreas Beckmann
anbe at debian.org
Mon Oct 30 12:28:16 UTC 2017
Followup-For: Bug #877840
Control: found -1 2.7.0-2
openstackclient.tests.unit is still missing:
debian/rules override_dh_auto_test
make[1]: Entering directory '/build/python-magnumclient-2.7.0'
pyversions: missing X(S)-Python-Version in control file, fall back to debian/pyversions
pyversions: missing debian/pyversions file, fall back to supported versions
py3versions: no X-Python3-Version in control file, using supported versions
pkgos-dh_auto_test 'magnumclient\.tests\.(?!.*test_utils\.CliUtilsTest\.test_keys_and_vals_to_strs.*)'
+ pyversions -vr
+ PYTHONS=2.7
+ py3versions -vr
+ PYTHON3S=3.6
+ echo 2.7
+ cut -d. -f1
+ PYMAJOR=2
+ echo ===> Testing with python (python2)
===> Testing with python (python2)
+ rm -rf .testrepository
+ testr-python2 init
+ mktemp -t
+ TEMP_REZ=/tmp/tmp.TWvsqxvrmJ
+ subunit2pyunit
+ tee /tmp/tmp.TWvsqxvrmJ
+ 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.*)
running=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 eNon-zero exit code (2) from test listing.
rrors ---
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 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
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.958s
OK
+ cat /tmp/tmp.TWvsqxvrmJ
+ subunit-stats
+ subunit-filter -s --no-passthrough
Total tests: 0
Passed tests: 0
Failed tests: 0
Skipped tests: 0
Seen tags:
+ rm -f /tmp/tmp.TWvsqxvrmJ
+ testr-python2 slowest
debian/rules:16: recipe for target 'override_dh_auto_test' failed
Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: python-magnumclient_2.7.0-2.log.gz
Type: application/gzip
Size: 20474 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/openstack-devel/attachments/20171030/3d062523/attachment-0001.bin>
More information about the Openstack-devel
mailing list