[PKG-Openstack-devel] Bug#841080: networking-l2gw: FTBFS (ImportError: No module named i18n)

Santiago Vila sanvila at debian.org
Mon Oct 17 14:12:10 UTC 2016


Package: src:networking-l2gw
Version: 1:1.0.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 ...]

  File "/usr/lib/python2.7/dist-packages/unittest2/loader.py", line 395, in _get_module_from_name
    __import__(name)
  File "networking_l2gw/tests/unit/services/l2gateway/ovsdb/test_data.py", line 27, in <module>
    from networking_l2gw.services.l2gateway.ovsdb import data
  File "networking_l2gw/services/l2gateway/ovsdb/data.py", line 17, in <module>
    from neutron.i18n import _LE
ImportError: No module named i18n

Failed to import test module: networking_l2gw.tests.unit.services.l2gateway.test_agent_scheduler
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_l2gw/tests/unit/services/l2gateway/test_agent_scheduler.py", line 33, in <module>
    from networking_l2gw.services.l2gateway import agent_scheduler
  File "networking_l2gw/services/l2gateway/agent_scheduler.py", line 24, in <module>
    from neutron.i18n import _LE
ImportError: No module named i18n

Failed to import test module: networking_l2gw.tests.unit.services.l2gateway.test_plugin
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_l2gw/tests/unit/services/l2gateway/test_plugin.py", line 30, in <module>
    from networking_l2gw.services.l2gateway.ovsdb import data
  File "networking_l2gw/services/l2gateway/ovsdb/data.py", line 17, in <module>
    from neutron.i18n import _LE
ImportError: No module named i18n

----------------------------------------------------------------------
Ran 0 tests in 0.917s

OK
+ subunit-stats
+ subunit-filter -s --no-passthrough
+ cat /tmp/tmp.WW35SUhnkj
Total tests:       0
Passed tests:      0
Failed tests:      0
Skipped tests:     0
Seen tags: 
+ rm -f /tmp/tmp.WW35SUhnkj
+ testr-python2 slowest
debian/rules:12: recipe for target 'override_dh_auto_test' failed
make[1]: *** [override_dh_auto_test] Error 3
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.

There are also build logs like this for both testing and unstable here:

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/networking-l2gw.html

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