[PKG-Openstack-devel] Bug#902514: python-cliff: FTBFS in buster/sid (ImportError: No module named enum)

Santiago Vila sanvila at debian.org
Wed Jun 27 13:50:28 BST 2018


Package: src:python-cliff
Version: 2.11.0-1
Severity: serious
Tags: ftbfs

Dear maintainer:

I tried to build this package in buster with "dpkg-buildpackage -A"
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 --with python2,python3,sphinxdoc --buildsystem=python_distutils
   dh_update_autotools_config -i -O--buildsystem=python_distutils
   dh_auto_configure -i -O--buildsystem=python_distutils
dh_auto_configure: Please use the third-party "pybuild" build system instead of python-distutils
dh_auto_configure: This feature will be removed in compat 12.
   dh_auto_build -i -O--buildsystem=python_distutils
dh_auto_build: Please use the third-party "pybuild" build system instead of python-distutils
dh_auto_build: This feature will be removed in compat 12.
pyversions: missing X(S)-Python-Version in control file, fall back to debian/pyversions

[... snipped ...]

======================================================================
FAIL: cliff.tests.test_app.TestInteractiveMode.test_interactive_mode_cmdloop
cliff.tests.test_app.TestInteractiveMode.test_interactive_mode_cmdloop
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "cliff/tests/test_app.py", line 77, in test_interactive_mode_cmdloop
    app.run([])
  File "cliff/app.py", line 277, in run
    result = self.interact()
  File "cliff/app.py", line 316, in interact
    from .interactive import InteractiveApp
  File "cliff/interactive.py", line 20, in <module>
    import cmd2
  File "/usr/lib/python2.7/dist-packages/cmd2.py", line 51, in <module>
    from enum import Enum
ImportError: No module named enum


======================================================================
FAIL: unittest2.loader._FailedTest.cliff.tests.test_interactive
unittest2.loader._FailedTest.cliff.tests.test_interactive
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
ImportError: Failed to import test module: cliff.tests.test_interactive
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 "cliff/tests/test_interactive.py", line 15, in <module>
    import cmd2
  File "/usr/lib/python2.7/dist-packages/cmd2.py", line 51, in <module>
    from enum import Enum
ImportError: No module named enum


----------------------------------------------------------------------
Ran 174 tests in 0.898s

FAILED (failures=2, skipped=1)
debian/rules:40: 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 subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is how the build ends in my autobuilder and it's not
necessarily the relevant part.

The failure is not, however, related to using dpkg-buildpackage -A,
as it also fails in reproducible builds:

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/python-cliff.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