[Debian-med-packaging] Bug#1090137: python-dicompylercore: FTBFS: ModuleNotFoundError: No module named 'six'

Santiago Vila sanvila at debian.org
Mon Dec 16 13:47:28 GMT 2024


Package: src:python-dicompylercore
Version: 0.5.6-1
Severity: serious
Tags: ftbfs

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
 debian/rules binary
dh binary --with python3 --buildsystem=pybuild
   dh_update_autotools_config -O--buildsystem=pybuild
   dh_autoreconf -O--buildsystem=pybuild
   dh_auto_configure -O--buildsystem=pybuild
I: pybuild base:311: python3.12 setup.py config 
/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'test_suite'
  warnings.warn(msg)
/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'tests_require'
  warnings.warn(msg)
running config
   dh_auto_build -O--buildsystem=pybuild
I: pybuild base:311: /usr/bin/python3 setup.py build 
/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'test_suite'
  warnings.warn(msg)
/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'tests_require'
  warnings.warn(msg)
running build
running build_py
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/dicompylercore
copying dicompylercore/dicomparser.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/dicompylercore
copying dicompylercore/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/dicompylercore
copying dicompylercore/dvhcalc.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/dicompylercore
copying dicompylercore/dose.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/dicompylercore
copying dicompylercore/config.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/dicompylercore
copying dicompylercore/util.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/dicompylercore
copying dicompylercore/dvh.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/dicompylercore
running egg_info
creating dicompyler_core.egg-info
writing dicompyler_core.egg-info/PKG-INFO
writing dependency_links to dicompyler_core.egg-info/dependency_links.txt
writing requirements to dicompyler_core.egg-info/requires.txt
writing top-level names to dicompyler_core.egg-info/top_level.txt
writing manifest file 'dicompyler_core.egg-info/SOURCES.txt'
reading manifest file 'dicompyler_core.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '__pycache__' found under directory '*'
warning: no previously-included files matching '*.py[co]' found under directory '*'
warning: no previously-included files matching '*.DS_Store' found under directory '*'
adding license file 'LICENSE'
adding license file 'AUTHORS.rst'
writing manifest file 'dicompyler_core.egg-info/SOURCES.txt'
   dh_auto_test -O--buildsystem=pybuild
I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build; python3.12 -m unittest discover -v 
tests.test_dicomparser (unittest.loader._FailedTest.tests.test_dicomparser) ... ERROR
tests.test_dose (unittest.loader._FailedTest.tests.test_dose) ... ERROR
tests.test_dvh (unittest.loader._FailedTest.tests.test_dvh) ... ERROR
tests.test_dvhcalc (unittest.loader._FailedTest.tests.test_dvhcalc) ... ERROR

======================================================================
ERROR: tests.test_dicomparser (unittest.loader._FailedTest.tests.test_dicomparser)
----------------------------------------------------------------------
ImportError: Failed to import test module: tests.test_dicomparser
Traceback (most recent call last):
  File "/usr/lib/python3.12/unittest/loader.py", line 396, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/unittest/loader.py", line 339, in _get_module_from_name
    __import__(name)
  File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/tests/test_dicomparser.py", line 10, in <module>
    from dicompylercore import dicomparser
  File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/dicompylercore/dicomparser.py", line 23, in <module>
    from six import PY2, iterkeys, string_types, BytesIO
ModuleNotFoundError: No module named 'six'


======================================================================
ERROR: tests.test_dose (unittest.loader._FailedTest.tests.test_dose)
----------------------------------------------------------------------
ImportError: Failed to import test module: tests.test_dose
Traceback (most recent call last):
  File "/usr/lib/python3.12/unittest/loader.py", line 396, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/unittest/loader.py", line 339, in _get_module_from_name
    __import__(name)
  File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/tests/test_dose.py", line 12, in <module>
    from dicompylercore import dicomparser, dose
  File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/dicompylercore/dicomparser.py", line 23, in <module>
    from six import PY2, iterkeys, string_types, BytesIO
ModuleNotFoundError: No module named 'six'


======================================================================
ERROR: tests.test_dvh (unittest.loader._FailedTest.tests.test_dvh)
----------------------------------------------------------------------
ImportError: Failed to import test module: tests.test_dvh
Traceback (most recent call last):
  File "/usr/lib/python3.12/unittest/loader.py", line 396, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/unittest/loader.py", line 339, in _get_module_from_name
    __import__(name)
  File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/tests/test_dvh.py", line 10, in <module>
    from dicompylercore import dvh, dicomparser
  File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/dicompylercore/dicomparser.py", line 23, in <module>
    from six import PY2, iterkeys, string_types, BytesIO
ModuleNotFoundError: No module named 'six'


======================================================================
ERROR: tests.test_dvhcalc (unittest.loader._FailedTest.tests.test_dvhcalc)
----------------------------------------------------------------------
ImportError: Failed to import test module: tests.test_dvhcalc
Traceback (most recent call last):
  File "/usr/lib/python3.12/unittest/loader.py", line 396, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/unittest/loader.py", line 339, in _get_module_from_name
    __import__(name)
  File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/tests/test_dvhcalc.py", line 11, in <module>
    from dicompylercore import dicomparser, dvhcalc
  File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/dicompylercore/dicomparser.py", line 23, in <module>
    from six import PY2, iterkeys, string_types, BytesIO
ModuleNotFoundError: No module named 'six'


----------------------------------------------------------------------
Ran 4 tests in 0.000s

FAILED (errors=4)
E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build; python3.12 -m unittest discover -v 
dh_auto_test: error: pybuild --test -i python{version} -p 3.12 returned exit code 13
make: *** [debian/rules:6: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202412/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

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 BTS web
page for this package.

Thanks.



More information about the Debian-med-packaging mailing list