[Debian-med-packaging] Bug#1123168: pydicom: FTBFS: dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.14 3.13" returned exit code 13

Santiago Vila sanvila at debian.org
Tue Dec 16 19:44:29 GMT 2025


Package: src:pydicom
Version: 2.4.3-2
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/202512/

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:pydicom, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --buildsystem=pybuild --with python3,sphinxdoc
   dh_auto_clean -O--buildsystem=pybuild
	pybuild --clean -i python{version} -p "3.14 3.13"
I: pybuild base:317: python3.14 setup.py clean 
/usr/lib/python3/dist-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated
!!

        ********************************************************************************
        Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0).

        By 2026-Feb-18, you need to update your project and remove deprecated calls
        or your builds will no longer be supported.

        See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.

[... snipped ...]

/usr/lib/python3/dist-packages/_pytest/runner.py:353: in from_call
    result: TResult | None = func()
                             ^^^^^^
/usr/lib/python3/dist-packages/_pytest/runner.py:398: in collect
    return list(collector.collect())
                ^^^^^^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/_pytest/python.py:563: in collect
    self._register_setup_module_fixture()
/usr/lib/python3/dist-packages/_pytest/python.py:576: in _register_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
    ^^^^^^^^
/usr/lib/python3/dist-packages/_pytest/python.py:289: in obj
    self._obj = obj = self._getobj()
                      ^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/_pytest/python.py:560: in _getobj
    return importtestmodule(self.path, self.config)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/_pytest/python.py:507: in importtestmodule
    mod = import_path(
/usr/lib/python3/dist-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
/usr/lib/python3.14/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<frozen importlib._bootstrap>:1398: in _gcd_import
    ???
<frozen importlib._bootstrap>:1371: in _find_and_load
    ???
<frozen importlib._bootstrap>:1342: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:938: in _load_unlocked
    ???
/usr/lib/python3/dist-packages/_pytest/assertion/rewrite.py:197: in exec_module
    exec(co, module.__dict__)
pydicom/tests/test_data_manager.py:28: in <module>
    @pytest.mark.skip("When building a Debian package we can not download anything")
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/_pytest/mark/structures.py:401: in __call__
    store_mark(unwrapped_func, self.mark, stacklevel=3)
/usr/lib/python3/dist-packages/_pytest/mark/structures.py:466: in store_mark
    warnings.warn(MARKED_FIXTURE, stacklevel=stacklevel)
E   pytest.PytestRemovedIn9Warning: Marks applied to fixtures have no effect
E   See docs: https://docs.pytest.org/en/stable/deprecations.html#applying-a-mark-to-a-fixture-function
=============================== warnings summary ===============================
pydicom/cli/main.py:11
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_pydicom/build/pydicom/cli/main.py:11: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
    import pkg_resources

pydicom/data/data_manager.py:365
pydicom/data/data_manager.py:365
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_pydicom/build/pydicom/data/data_manager.py:365: UserWarning: A download failure occurred while attempting to retrieve emri_small_jpeg_2k_lossless.dcm
    warnings.warn(

pydicom/data/data_manager.py:365
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_pydicom/build/pydicom/data/data_manager.py:365: UserWarning: A download failure occurred while attempting to retrieve color-pl.dcm
    warnings.warn(

pydicom/data/data_manager.py:365
pydicom/data/data_manager.py:365
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_pydicom/build/pydicom/data/data_manager.py:365: UserWarning: A download failure occurred while attempting to retrieve SC_rgb.dcm
    warnings.warn(

pydicom/data/data_manager.py:365
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_pydicom/build/pydicom/data/data_manager.py:365: UserWarning: A download failure occurred while attempting to retrieve liver.dcm
    warnings.warn(

pydicom/data/data_manager.py:365
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_pydicom/build/pydicom/data/data_manager.py:365: UserWarning: A download failure occurred while attempting to retrieve OBXXXX1A.dcm
    warnings.warn(

pydicom/data/data_manager.py:365
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_pydicom/build/pydicom/data/data_manager.py:365: UserWarning: A download failure occurred while attempting to retrieve OBXXXX1A_rle.dcm
    warnings.warn(

pydicom/data/data_manager.py:365
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_pydicom/build/pydicom/data/data_manager.py:365: UserWarning: A download failure occurred while attempting to retrieve OBXXXX1A_2frame.dcm
    warnings.warn(

pydicom/data/data_manager.py:365
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_pydicom/build/pydicom/data/data_manager.py:365: UserWarning: A download failure occurred while attempting to retrieve OBXXXX1A_rle_2frame.dcm
    warnings.warn(

pydicom/data/data_manager.py:365
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_pydicom/build/pydicom/data/data_manager.py:365: UserWarning: A download failure occurred while attempting to retrieve SC_rgb_2frame.dcm
    warnings.warn(

pydicom/data/data_manager.py:365
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_pydicom/build/pydicom/data/data_manager.py:365: UserWarning: A download failure occurred while attempting to retrieve emri_small.dcm
    warnings.warn(

pydicom/data/data_manager.py:365
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_pydicom/build/pydicom/data/data_manager.py:365: UserWarning: A download failure occurred while attempting to retrieve emri_small_RLE.dcm
    warnings.warn(

pydicom/data/data_manager.py:365
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_pydicom/build/pydicom/data/data_manager.py:365: UserWarning: A download failure occurred while attempting to retrieve SC_rgb_16bit.dcm
    warnings.warn(

pydicom/data/data_manager.py:365
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_pydicom/build/pydicom/data/data_manager.py:365: UserWarning: A download failure occurred while attempting to retrieve SC_rgb_16bit_2frame.dcm
    warnings.warn(

pydicom/data/data_manager.py:365
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_pydicom/build/pydicom/data/data_manager.py:365: UserWarning: A download failure occurred while attempting to retrieve SC_rgb_32bit.dcm
    warnings.warn(

pydicom/data/data_manager.py:365
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_pydicom/build/pydicom/data/data_manager.py:365: UserWarning: A download failure occurred while attempting to retrieve SC_rgb_32bit_2frame.dcm
    warnings.warn(

pydicom/data/data_manager.py:365
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_pydicom/build/pydicom/data/data_manager.py:365: UserWarning: A download failure occurred while attempting to retrieve SC_rgb_expb_2frame.dcm
    warnings.warn(

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
ERROR pydicom/tests/test_data_manager.py - pytest.PytestRemovedIn9Warning: Ma...
ERROR pydicom/tests/test_gdcm_pixel_data.py - pytest.PytestRemovedIn9Warning:...
!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!
======================== 19 warnings, 2 errors in 2.78s ========================
E: pybuild pybuild:389: test: plugin distutils failed with: exit code=2: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_pydicom/build; python3.14 -m pytest 
I: pybuild pybuild:308: cp -r /<<PKGBUILDDIR>>/pydicom/tests /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_pydicom/build/pydicom
I: pybuild base:317: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_pydicom/build; python3.13 -m pytest 
============================= test session starts ==============================
platform linux -- Python 3.13.11, pytest-9.0.2, pluggy-1.6.0
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_pydicom/build
configfile: pyproject.toml
plugins: typeguard-4.4.4
collected 2592 items / 2 errors

==================================== ERRORS ====================================
_____________ ERROR collecting pydicom/tests/test_data_manager.py ______________
pydicom/tests/test_data_manager.py:28: in <module>
    @pytest.mark.skip("When building a Debian package we can not download anything")
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/_pytest/mark/structures.py:401: in __call__
    store_mark(unwrapped_func, self.mark, stacklevel=3)
/usr/lib/python3/dist-packages/_pytest/mark/structures.py:466: in store_mark
    warnings.warn(MARKED_FIXTURE, stacklevel=stacklevel)
E   pytest.PytestRemovedIn9Warning: Marks applied to fixtures have no effect
E   See docs: https://docs.pytest.org/en/stable/deprecations.html#applying-a-mark-to-a-fixture-function
____________ ERROR collecting pydicom/tests/test_gdcm_pixel_data.py ____________
pydicom/tests/test_gdcm_pixel_data.py:218: in <module>
    class TestsWithGDCM:
pydicom/tests/test_gdcm_pixel_data.py:279: in TestsWithGDCM
    @pytest.mark.skip("When building a Debian package we can not download anything")
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/_pytest/mark/structures.py:401: in __call__
    store_mark(unwrapped_func, self.mark, stacklevel=3)
/usr/lib/python3/dist-packages/_pytest/mark/structures.py:466: in store_mark
    warnings.warn(MARKED_FIXTURE, stacklevel=stacklevel)
/usr/lib/python3/dist-packages/_pytest/runner.py:353: in from_call
    result: TResult | None = func()
                             ^^^^^^
/usr/lib/python3/dist-packages/_pytest/runner.py:398: in collect
    return list(collector.collect())
                ^^^^^^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/_pytest/python.py:563: in collect
    self._register_setup_module_fixture()
/usr/lib/python3/dist-packages/_pytest/python.py:576: in _register_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
    ^^^^^^^^
/usr/lib/python3/dist-packages/_pytest/python.py:289: in obj
    self._obj = obj = self._getobj()
                      ^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/_pytest/python.py:560: in _getobj
    return importtestmodule(self.path, self.config)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/_pytest/python.py:507: in importtestmodule
    mod = import_path(
/usr/lib/python3/dist-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
/usr/lib/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<frozen importlib._bootstrap>:1387: in _gcd_import
    ???
<frozen importlib._bootstrap>:1360: in _find_and_load
    ???
<frozen importlib._bootstrap>:1331: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:935: in _load_unlocked
    ???
/usr/lib/python3/dist-packages/_pytest/assertion/rewrite.py:197: in exec_module
    exec(co, module.__dict__)
pydicom/tests/test_data_manager.py:28: in <module>
    @pytest.mark.skip("When building a Debian package we can not download anything")
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/_pytest/mark/structures.py:401: in __call__
    store_mark(unwrapped_func, self.mark, stacklevel=3)
/usr/lib/python3/dist-packages/_pytest/mark/structures.py:466: in store_mark
    warnings.warn(MARKED_FIXTURE, stacklevel=stacklevel)
E   pytest.PytestRemovedIn9Warning: Marks applied to fixtures have no effect
E   See docs: https://docs.pytest.org/en/stable/deprecations.html#applying-a-mark-to-a-fixture-function
=============================== warnings summary ===============================
pydicom/cli/main.py:11
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_pydicom/build/pydicom/cli/main.py:11: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
    import pkg_resources

pydicom/data/data_manager.py:365
pydicom/data/data_manager.py:365
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_pydicom/build/pydicom/data/data_manager.py:365: UserWarning: A download failure occurred while attempting to retrieve emri_small_jpeg_2k_lossless.dcm
    warnings.warn(

pydicom/data/data_manager.py:365
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_pydicom/build/pydicom/data/data_manager.py:365: UserWarning: A download failure occurred while attempting to retrieve color-pl.dcm
    warnings.warn(

pydicom/data/data_manager.py:365
pydicom/data/data_manager.py:365
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_pydicom/build/pydicom/data/data_manager.py:365: UserWarning: A download failure occurred while attempting to retrieve SC_rgb.dcm
    warnings.warn(

pydicom/data/data_manager.py:365
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_pydicom/build/pydicom/data/data_manager.py:365: UserWarning: A download failure occurred while attempting to retrieve liver.dcm
    warnings.warn(

pydicom/data/data_manager.py:365
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_pydicom/build/pydicom/data/data_manager.py:365: UserWarning: A download failure occurred while attempting to retrieve OBXXXX1A.dcm
    warnings.warn(

pydicom/data/data_manager.py:365
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_pydicom/build/pydicom/data/data_manager.py:365: UserWarning: A download failure occurred while attempting to retrieve OBXXXX1A_rle.dcm
    warnings.warn(

pydicom/data/data_manager.py:365
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_pydicom/build/pydicom/data/data_manager.py:365: UserWarning: A download failure occurred while attempting to retrieve OBXXXX1A_2frame.dcm
    warnings.warn(

pydicom/data/data_manager.py:365
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_pydicom/build/pydicom/data/data_manager.py:365: UserWarning: A download failure occurred while attempting to retrieve OBXXXX1A_rle_2frame.dcm
    warnings.warn(

pydicom/data/data_manager.py:365
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_pydicom/build/pydicom/data/data_manager.py:365: UserWarning: A download failure occurred while attempting to retrieve SC_rgb_2frame.dcm
    warnings.warn(

pydicom/data/data_manager.py:365
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_pydicom/build/pydicom/data/data_manager.py:365: UserWarning: A download failure occurred while attempting to retrieve emri_small.dcm
    warnings.warn(

pydicom/data/data_manager.py:365
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_pydicom/build/pydicom/data/data_manager.py:365: UserWarning: A download failure occurred while attempting to retrieve emri_small_RLE.dcm
    warnings.warn(

pydicom/data/data_manager.py:365
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_pydicom/build/pydicom/data/data_manager.py:365: UserWarning: A download failure occurred while attempting to retrieve SC_rgb_16bit.dcm
    warnings.warn(

pydicom/data/data_manager.py:365
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_pydicom/build/pydicom/data/data_manager.py:365: UserWarning: A download failure occurred while attempting to retrieve SC_rgb_16bit_2frame.dcm
    warnings.warn(

pydicom/data/data_manager.py:365
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_pydicom/build/pydicom/data/data_manager.py:365: UserWarning: A download failure occurred while attempting to retrieve SC_rgb_32bit.dcm
    warnings.warn(

pydicom/data/data_manager.py:365
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_pydicom/build/pydicom/data/data_manager.py:365: UserWarning: A download failure occurred while attempting to retrieve SC_rgb_32bit_2frame.dcm
    warnings.warn(

pydicom/data/data_manager.py:365
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_pydicom/build/pydicom/data/data_manager.py:365: UserWarning: A download failure occurred while attempting to retrieve SC_rgb_expb_2frame.dcm
    warnings.warn(

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
ERROR pydicom/tests/test_data_manager.py - pytest.PytestRemovedIn9Warning: Ma...
ERROR pydicom/tests/test_gdcm_pixel_data.py - pytest.PytestRemovedIn9Warning:...
!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!
======================== 19 warnings, 2 errors in 2.96s ========================
E: pybuild pybuild:389: test: plugin distutils failed with: exit code=2: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_pydicom/build; python3.13 -m pytest 
	rm -fr -- /tmp/dh-xdg-rundir-B0JYj0uA
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.14 3.13" returned exit code 13
make[1]: *** [debian/rules:28: override_dh_auto_install] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:17: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------



More information about the Debian-med-packaging mailing list