[PKG-Openstack-devel] Bug#834888: tempest: FTBFS in testing (ImportError: No module named pep8)

Santiago Vila sanvila at debian.org
Sat Aug 20 10:44:19 UTC 2016


Package: src:tempest
Version: 6-1
Severity: serious

Dear maintainer:

I tried to build this package with "dpkg-buildpackage -A"
(which is what the "Arch: all" autobuilder would do to build it)
but it failed:

--------------------------------------------------------------------------------
[...]
 debian/rules build-indep
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
dh build-indep --buildsystem=python_distutils --with python2,sphinxdoc
   dh_testdir -i -O--buildsystem=python_distutils
   dh_update_autotools_config -i -O--buildsystem=python_distutils
   dh_auto_configure -i -O--buildsystem=python_distutils
   dh_auto_build -i -O--buildsystem=python_distutils
pyversions: missing X(S)-Python-Version in control file, fall back to debian/pyversions
pyversions: missing debian/pyversions file, fall back to supported versions
	python setup.py build --force
running build

[... snipped ...]

warning: no previously-included files found matching '.gitignore'
warning: no previously-included files found matching '.gitreview'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
writing manifest file 'tempest.egg-info/SOURCES.txt'
   debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
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
rm -rf .testrepository
testr init
set -e && \
	TEMP_REZ=`mktemp -t` && \
	export OS_TEST_PATH=./tempest/tests && \
	PYTHONPATH=/<<PKGBUILDDIR>> testr run --parallel --subunit 'tests\.(?!.*test_pretty_tox.*)' | tee $TEMP_REZ | subunit2pyunit || true ; \
	cat $TEMP_REZ | subunit-filter -s --no-passthrough | subunit-stats || true ; \
	rm -f $TEMP_REZ ;
2016-08-20 03:35:29.160 22218 INFO tempest [-] Using tempest config file /etc/tempest/tempest.conf
running=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-500} \
OS_TEST_LOCK_PATH=${OS_TEST_LOCK_PATH:-${TMPDIR:-'/tmp'}} \
${PYTHON:-python} -m subunit.run discover -t ${OS_TOP_LEVEL:-./} ${OS_TEST_PATH:-./tempest/test_discover} --list 
--- importNon-zero exit code (2) from test listing.
 errors ---
Failed to import test module: tempest.tests.test_hacking
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 "tempest/tests/test_hacking.py", line 15, in <module>
    from tempest.hacking import checks
  File "tempest/hacking/checks.py", line 18, in <module>
    import pep8
ImportError: No module named pep8

----------------------------------------------------------------------
Ran 0 tests in 0.904s

OK
Total tests:       0
Passed tests:      0
Failed tests:      0
Skipped tests:     0
Seen tags: 
testr slowest
debian/rules:57: recipe for target 'override_dh_auto_test' failed
make[1]: *** [override_dh_auto_test] Error 3
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:12: recipe for target 'build-indep' failed
make: *** [build-indep] Error 2
dpkg-buildpackage: error: debian/rules build-indep gave error exit status 2
--------------------------------------------------------------------------------

Because this source package only generates "Arch: all" packages, this
is the same as a FTBFS bug in the usual sense, and the fact that I was
doing "dpkg-buildpackage -A" does not mean anything special.

Thanks.



More information about the Openstack-devel mailing list