[PKG-Openstack-devel] Bug#841515: networking-arista: FTBFS (ImportError: No module named testresources)
Santiago Vila
sanvila at debian.org
Fri Oct 21 09:59:56 UTC 2016
Package: src:networking-arista
Version: 2016.1.0-1
Severity: serious
Dear maintainer:
I tried to build this package in stretch 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
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 ...]
======================================================================
FAIL: unittest2.loader._FailedTest.networking_arista.tests.unit.ml2.test_arista_mechanism_driver
unittest2.loader._FailedTest.networking_arista.tests.unit.ml2.test_arista_mechanism_driver
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
ImportError: Failed to import test module: networking_arista.tests.unit.ml2.test_arista_mechanism_driver
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 "networking_arista/tests/unit/ml2/test_arista_mechanism_driver.py", line 24, in <module>
from neutron.tests.unit import testlib_api
File "/usr/lib/python2.7/dist-packages/neutron/tests/unit/testlib_api.py", line 18, in <module>
import testresources
ImportError: No module named testresources
======================================================================
FAIL: unittest2.loader._FailedTest.networking_arista.tests.unit.ml2.test_mechanism_arista
unittest2.loader._FailedTest.networking_arista.tests.unit.ml2.test_mechanism_arista
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
ImportError: Failed to import test module: networking_arista.tests.unit.ml2.test_mechanism_arista
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 "networking_arista/tests/unit/ml2/test_mechanism_arista.py", line 20, in <module>
from neutron.tests.unit import testlib_api
File "/usr/lib/python2.7/dist-packages/neutron/tests/unit/testlib_api.py", line 18, in <module>
import testresources
ImportError: No module named testresources
----------------------------------------------------------------------
Ran 4 tests in 1.095s
FAILED (failures=3)
debian/rules:16: recipe for target 'override_dh_auto_test' failed
make[1]: *** [override_dh_auto_test] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:8: recipe for target 'build-indep' failed
make: *** [build-indep] Error 2
dpkg-buildpackage: error: debian/rules build-indep gave error exit status 2
--------------------------------------------------------------------------------
The relevant part of the build log is included above.
For a full build log, please see:
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/networking-arista.html
where it also fails.
If this is really a bug in one of the build-depends, please use reassign and affects,
so that this is still visible in the page for this package.
Thanks.
More information about the Openstack-devel
mailing list