[Debian-med-packaging] Bug#1136924: python-dicompylercore: FTBFS: ModuleNotFoundError: No module named 'dicom'
Santiago Vila
sanvila at debian.org
Sun May 17 11:48:31 BST 2026
Package: src:python-dicompylercore
Version: 0.5.6-3
Severity: serious
Tags: ftbfs forky sid
Dear maintainer:
During a rebuild of all packages in unstable, this package failed to build.
Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:
https://people.debian.org/~sanvila/build-logs/202605/
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 cannot 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 add an affects on src:python-dicompylercore, so that this is still
visible in the BTS web page for this package.
Thanks.
--------------------------------------------------------------------------------
[...]
debian/rules clean
dh clean --with python3 --buildsystem=pybuild
dh_auto_clean -O--buildsystem=pybuild
I: pybuild base:385: python3.13 setup.py clean
/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:289: UserWarning: Unknown distribution option: 'test_suite'
warnings.warn(msg)
/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:289: UserWarning: Unknown distribution option: 'tests_require'
warnings.warn(msg)
/usr/lib/python3/dist-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!
********************************************************************************
Please consider removing the following classifiers in favor of a SPDX license expression:
License :: OSI Approved :: BSD License
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
self._finalize_license_expression()
running clean
removing '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build' (and everything under it)
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-3.13' does not exist -- can't clean it
dh_autoreconf_clean -O--buildsystem=pybuild
dh_clean -O--buildsystem=pybuild
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:385: python3.13 setup.py config
/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:289: UserWarning: Unknown distribution option: 'test_suite'
warnings.warn(msg)
/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:289: UserWarning: Unknown distribution option: 'tests_require'
warnings.warn(msg)
/usr/lib/python3/dist-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!
********************************************************************************
Please consider removing the following classifiers in favor of a SPDX license expression:
License :: OSI Approved :: BSD License
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
self._finalize_license_expression()
running config
dh_auto_build -O--buildsystem=pybuild
I: pybuild base:385: /usr/bin/python3 setup.py build
/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:289: UserWarning: Unknown distribution option: 'test_suite'
warnings.warn(msg)
/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:289: UserWarning: Unknown distribution option: 'tests_require'
warnings.warn(msg)
/usr/lib/python3/dist-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!
********************************************************************************
Please consider removing the following classifiers in favor of a SPDX license expression:
License :: OSI Approved :: BSD License
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
self._finalize_license_expression()
running build
running build_py
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/dicompylercore
copying dicompylercore/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/dicompylercore
copying dicompylercore/dvh.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/dicompylercore
copying dicompylercore/dvhcalc.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/dicompylercore
copying dicompylercore/util.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/dicompylercore
copying dicompylercore/config.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/dicompylercore
copying dicompylercore/dicomparser.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/dicompylercore
copying dicompylercore/dose.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/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
W: pybuild base:328: No test runner selected, defaulting to unittest, ignoring test discovery problems.
Use --test-unittest to explicitly select the unittest runner.
I: pybuild base:385: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build; python3.13 -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 "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/dicompylercore/dicomparser.py", line 15, in <module>
from pydicom.dicomio import read_file
ImportError: cannot import name 'read_file' from 'pydicom.dicomio' (/usr/lib/python3/dist-packages/pydicom/dicomio.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.13/unittest/loader.py", line 396, in _find_test_path
module = self._get_module_from_name(name)
File "/usr/lib/python3.13/unittest/loader.py", line 339, in _get_module_from_name
__import__(name)
~~~~~~~~~~^^^^^^
File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/tests/test_dicomparser.py", line 10, in <module>
from dicompylercore import dicomparser
File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/dicompylercore/dicomparser.py", line 19, in <module>
from dicom import read_file
ModuleNotFoundError: No module named 'dicom'
======================================================================
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 "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/dicompylercore/dicomparser.py", line 15, in <module>
from pydicom.dicomio import read_file
ImportError: cannot import name 'read_file' from 'pydicom.dicomio' (/usr/lib/python3/dist-packages/pydicom/dicomio.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.13/unittest/loader.py", line 396, in _find_test_path
module = self._get_module_from_name(name)
File "/usr/lib/python3.13/unittest/loader.py", line 339, in _get_module_from_name
__import__(name)
~~~~~~~~~~^^^^^^
File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/tests/test_dose.py", line 12, in <module>
from dicompylercore import dicomparser, dose
File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/dicompylercore/dicomparser.py", line 19, in <module>
from dicom import read_file
ModuleNotFoundError: No module named 'dicom'
======================================================================
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 "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/dicompylercore/dicomparser.py", line 15, in <module>
from pydicom.dicomio import read_file
ImportError: cannot import name 'read_file' from 'pydicom.dicomio' (/usr/lib/python3/dist-packages/pydicom/dicomio.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.13/unittest/loader.py", line 396, in _find_test_path
module = self._get_module_from_name(name)
File "/usr/lib/python3.13/unittest/loader.py", line 339, in _get_module_from_name
__import__(name)
~~~~~~~~~~^^^^^^
File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/tests/test_dvh.py", line 10, in <module>
from dicompylercore import dvh, dicomparser
File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/dicompylercore/dicomparser.py", line 19, in <module>
from dicom import read_file
ModuleNotFoundError: No module named 'dicom'
======================================================================
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 "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/dicompylercore/dicomparser.py", line 15, in <module>
from pydicom.dicomio import read_file
ImportError: cannot import name 'read_file' from 'pydicom.dicomio' (/usr/lib/python3/dist-packages/pydicom/dicomio.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.13/unittest/loader.py", line 396, in _find_test_path
module = self._get_module_from_name(name)
File "/usr/lib/python3.13/unittest/loader.py", line 339, in _get_module_from_name
__import__(name)
~~~~~~~~~~^^^^^^
File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/tests/test_dvhcalc.py", line 11, in <module>
from dicompylercore import dicomparser, dvhcalc
File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/dicompylercore/dicomparser.py", line 19, in <module>
from dicom import read_file
ModuleNotFoundError: No module named 'dicom'
----------------------------------------------------------------------
Ran 4 tests in 0.000s
FAILED (errors=4)
E: pybuild pybuild:485: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build; python3.13 -m unittest discover -v
dh_auto_test: error: pybuild --test -i python{version} -p 3.13 --parallel=2 returned exit code 13
make: *** [debian/rules:6: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------
More information about the Debian-med-packaging
mailing list