[PKG-Openstack-devel] Bug#877253: python-oslo.config: FTBFS tests fail: ImportError: No module named oslotest

Andreas Beckmann anbe at debian.org
Fri Sep 29 20:16:42 UTC 2017


Source: python-oslo.config
Version: 1:4.11.0-1
Severity: serious
Justification: fails to build from source

Hi,

python-oslo.config/experimental FTBFS in a current sid+experimental
environment:

   debian/rules override_dh_auto_test
make[1]: Entering directory '/build/python-oslo.config-4.11.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 'oslo_config\.tests\.(?!.*test_generator\.IgnoreDoublesTestCase\.test_list_ignores_doubles.*)'
+ pyversions -vr
+ PYTHONS=2.7
+ py3versions -vr
+ PYTHON3S=3.6 3.5
+ cut -d. -f1
+ echo 2.7
+ PYMAJOR=2
+ echo ===> Testing with python (python2)
===> Testing with python (python2)
+ rm -rf .testrepository
+ testr-python2 init
+ mktemp -t
+ TEMP_REZ=/tmp/tmp.k9nsT4s2dI
+ subunit2pyunit
+ tee /tmp/tmp.k9nsT4s2dI
+ pwd
+ PYTHONPATH=/build/python-oslo.config-4.11.0 PYTHON=python2.7 testr-python2 run --subunit oslo_config\.tests\.(?!.*test_generator\.IgnoreDoublesTestCase\.test_list_ignores_doubles.*)
running=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_TEST_TIMEOUT=60 ${PYTHON:-python} -m subunit.run discover -t ./ ./oslo_config --list 
-Non-zero exit code (2) from test listing.
-- import errors ---
Failed to import test module: oslo_config.tests.test_cfg
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 "oslo_config/tests/test_cfg.py", line 26, in <module>
    from oslotest import base
ImportError: No module named oslotest

Failed to import test module: oslo_config.tests.test_cfgfilter
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 "oslo_config/tests/test_cfgfilter.py", line 15, in <module>
    from oslotest import base as test_base
ImportError: No module named oslotest

Failed to import test module: oslo_config.tests.test_fixture
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 "oslo_config/tests/test_fixture.py", line 18, in <module>
    from oslotest import base
ImportError: No module named oslotest

Failed to import test module: oslo_config.tests.test_generator
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 "oslo_config/tests/test_generator.py", line 19, in <module>
    from oslotest import base
ImportError: No module named oslotest

Failed to import test module: oslo_config.tests.test_sphinxconfiggen
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 "oslo_config/tests/test_sphinxconfiggen.py", line 15, in <module>
    from oslotest import base
ImportError: No module named oslotest

Failed to import test module: oslo_config.tests.test_sphinxext
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 "oslo_config/tests/test_sphinxext.py", line 16, in <module>
    from oslotest import base
ImportError: No module named oslotest

----------------------------------------------------------------------
Ran 0 tests in 0.522s

OK
+ subunit-stats
+ subunit-filter -s --no-passthrough
+ cat /tmp/tmp.k9nsT4s2dI
Total tests:       0
Passed tests:      0
Failed tests:      0
Skipped tests:     0
Seen tags: 
+ rm -f /tmp/tmp.k9nsT4s2dI
+ testr-python2 slowest
debian/rules:21: recipe for target 'override_dh_auto_test' failed
make[1]: *** [override_dh_auto_test] Error 3
make[1]: Leaving directory '/build/python-oslo.config-4.11.0'


Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: python-oslo.config_1%4.11.0-1.log.gz
Type: application/gzip
Size: 12766 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/openstack-devel/attachments/20170929/438ba9bb/attachment.bin>


More information about the Openstack-devel mailing list