[Debian-med-packaging] Bug#1140252: heudiconv: FTBFS: E ModuleNotFoundError: No module named 'pint'

Santiago Vila sanvila at debian.org
Wed Jun 17 17:15:04 BST 2026


Package: src:heudiconv
Version: 1.4.0-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/202606/

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

Thanks.

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
	pybuild --clean -i python{version} -p "3.14 3.13" --parallel=2
	rm -rf .pybuild/
	find . -name \*.pyc -exec rm {} \;
   dh_autoreconf_clean -O--buildsystem=pybuild
   dh_clean -O--buildsystem=pybuild
	rm -f debian/debhelper-build-stamp
	rm -rf debian/.debhelper/
	rm -f -- debian/heudiconv.substvars debian/files
	rm -fr -- debian/heudiconv/ debian/tmp/
	find .  \( \( \
		\( -path .\*/.git -o -path .\*/.svn -o -path .\*/.bzr -o -path .\*/.hg -o -path .\*/CVS -o -path .\*/.pc -o -path .\*/_darcs \) -prune -o -type f -a \
	        \( -name '#*#' -o -name '.*~' -o -name '*~' -o -name DEADJOE \

[... snipped ...]

heudiconv/cli/run.py:30: in main
    workflow(**kwargs)
heudiconv/main.py:480: in workflow
    prep_conversion(
heudiconv/convert.py:215: in prep_conversion
    seqinfo = group_dicoms_into_seqinfos(
heudiconv/dicoms.py:338: in group_dicoms_into_seqinfos
    mwinfo = validate_dicom(filename, dcmfilter)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
heudiconv/dicoms.py:175: in validate_dicom
    parse_private_csa_header(mw.dcm_data, "ProtocolName", "tProtocolName")
heudiconv/dicoms.py:806: in parse_private_csa_header
    import dcmstack.extract as dsextract
/usr/lib/python3/dist-packages/dcmstack/__init__.py:7: in <module>
    from .dcmstack import *
/usr/lib/python3/dist-packages/dcmstack/dcmstack.py:30: in <module>
    from . import snd
/usr/lib/python3/dist-packages/dcmstack/snd.py:7: in <module>
    import pint
E   ModuleNotFoundError: No module named 'pint'
------------------------------ Captured log call -------------------------------
WARNING  heudiconv.main:main.py:362 Could not check for version updates: Connection to server could not be made
=========================== short test summary info ============================
FAILED tests/test_dicoms.py::test_private_csa_header - ModuleNotFoundError: N...
FAILED tests/test_dicoms.py::test_embed_dicom_and_nifti_metadata - ModuleNotF...
FAILED tests/test_heuristics.py::test_scans_keys_reproin[invocation0] - Modul...
FAILED tests/test_heuristics.py::test_ls - ModuleNotFoundError: No module nam...
FAILED tests/test_heuristics.py::test_scout_conversion - ModuleNotFoundError:...
FAILED tests/test_heuristics.py::test_notop[bidsoptions0] - ModuleNotFoundErr...
FAILED tests/test_heuristics.py::test_notop[bidsoptions1] - ModuleNotFoundErr...
FAILED tests/test_main.py::test_cache - ModuleNotFoundError: No module named ...
FAILED tests/test_regression.py::test_grouping[merged] - ModuleNotFoundError:...
=========== 9 failed, 185 passed, 10 skipped, 5 deselected in 9.76s ============
E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_heudiconv/build; python3.14 -m pytest -k 'not test_bvals_are_zero and not test_reproin_largely_smoke'
I: pybuild pybuild:390: rm -rf /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_heudiconv/build/heudiconv/tests ; cp -a heudiconv/tests /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_heudiconv/build/
I: pybuild base:385: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_heudiconv/build; python3.13 -m pytest -k 'not test_bvals_are_zero and not test_reproin_largely_smoke'
============================= test session starts ==============================
platform linux -- Python 3.13.14, pytest-9.0.3, pluggy-1.6.0
rootdir: /<<PKGBUILDDIR>>
configfile: tox.ini
plugins: typeguard-4.4.4
collected 209 items / 5 deselected / 204 selected

heudiconv/external/tests/test_dlad.py ..                                 [  0%]
heudiconv/heuristics/test_reproin.py ..................                  [  9%]
heudiconv/queue.py .                                                     [ 10%]
tests/test_archives.py ..........                                        [ 15%]
tests/test_bids.py ........................................s.            [ 35%]
tests/test_convert.py ..........                                         [ 40%]
tests/test_dicoms.py FF........................ss                        [ 54%]
tests/test_heuristics.py .FFF.FF.                                        [ 58%]
tests/test_main.py ..........F...                                        [ 65%]
tests/test_monitor.py ssss                                               [ 67%]
tests/test_queue.py ...                                                  [ 68%]
tests/test_regression.py sssF                                            [ 70%]
tests/test_tarballs.py .                                                 [ 71%]
tests/test_utils.py .................................................... [ 96%]
.......                                                                  [100%]

=================================== FAILURES ===================================
___________________________ test_private_csa_header ____________________________
tests/test_dicoms.py:38: in test_private_csa_header
    assert parse_private_csa_header(dcm_data, pub, priv) != ""
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
heudiconv/dicoms.py:806: in parse_private_csa_header
    import dcmstack.extract as dsextract
/usr/lib/python3/dist-packages/dcmstack/__init__.py:7: in <module>
    from .dcmstack import *
/usr/lib/python3/dist-packages/dcmstack/dcmstack.py:30: in <module>
    from . import snd
/usr/lib/python3/dist-packages/dcmstack/snd.py:7: in <module>
    import pint
E   ModuleNotFoundError: No module named 'pint'
_____________________ test_embed_dicom_and_nifti_metadata ______________________
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_heudiconv/build/tests/test_dicoms.py:57: in test_embed_dicom_and_nifti_metadata
    embed_dicom_and_nifti_metadata(dcmfiles, out_prefix + ".nii.gz", infofile, None)
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_heudiconv/build/heudiconv/dicoms.py:661: in embed_dicom_and_nifti_metadata
    import dcmstack as ds
/usr/lib/python3/dist-packages/dcmstack/__init__.py:7: in <module>
    from .dcmstack import *
/usr/lib/python3/dist-packages/dcmstack/dcmstack.py:30: in <module>
    from . import snd
/usr/lib/python3/dist-packages/dcmstack/snd.py:7: in <module>
    import pint
E   ModuleNotFoundError: No module named 'pint'
_____________________ test_scans_keys_reproin[invocation0] _____________________
tests/test_heuristics.py:137: in test_scans_keys_reproin
    runner(args)
heudiconv/cli/run.py:30: in main
    workflow(**kwargs)
heudiconv/main.py:410: in workflow
    study_sessions = get_study_sessions(
heudiconv/parser.py:240: in get_study_sessions
    seqinfo_dict = group_dicoms_into_seqinfos(
heudiconv/dicoms.py:338: in group_dicoms_into_seqinfos
    mwinfo = validate_dicom(filename, dcmfilter)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
heudiconv/dicoms.py:175: in validate_dicom
    parse_private_csa_header(mw.dcm_data, "ProtocolName", "tProtocolName")
heudiconv/dicoms.py:806: in parse_private_csa_header
    import dcmstack.extract as dsextract
/usr/lib/python3/dist-packages/dcmstack/__init__.py:7: in <module>
    from .dcmstack import *
/usr/lib/python3/dist-packages/dcmstack/dcmstack.py:30: in <module>
    from . import snd
/usr/lib/python3/dist-packages/dcmstack/snd.py:7: in <module>
    import pint
E   ModuleNotFoundError: No module named 'pint'
------------------------------ Captured log call -------------------------------
WARNING  heudiconv.main:main.py:362 Could not check for version updates: Connection to server could not be made
___________________________________ test_ls ____________________________________
tests/test_heuristics.py:157: in test_ls
    runner(args)
heudiconv/cli/run.py:30: in main
    workflow(**kwargs)
heudiconv/main.py:379: in workflow
    process_extra_commands(
heudiconv/main.py:104: in process_extra_commands
    study_sessions = get_study_sessions(
heudiconv/parser.py:240: in get_study_sessions
    seqinfo_dict = group_dicoms_into_seqinfos(
heudiconv/dicoms.py:338: in group_dicoms_into_seqinfos
    mwinfo = validate_dicom(filename, dcmfilter)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
heudiconv/dicoms.py:175: in validate_dicom
    parse_private_csa_header(mw.dcm_data, "ProtocolName", "tProtocolName")
heudiconv/dicoms.py:806: in parse_private_csa_header
    import dcmstack.extract as dsextract
/usr/lib/python3/dist-packages/dcmstack/__init__.py:7: in <module>
    from .dcmstack import *
/usr/lib/python3/dist-packages/dcmstack/dcmstack.py:30: in <module>
    from . import snd
/usr/lib/python3/dist-packages/dcmstack/snd.py:7: in <module>
    import pint
E   ModuleNotFoundError: No module named 'pint'
------------------------------ Captured log call -------------------------------
WARNING  heudiconv.main:main.py:362 Could not check for version updates: Connection to server could not be made
____________________________ test_scout_conversion _____________________________
tests/test_heuristics.py:165: in test_scout_conversion
    runner(args)
heudiconv/cli/run.py:30: in main
    workflow(**kwargs)
heudiconv/main.py:410: in workflow
    study_sessions = get_study_sessions(
heudiconv/parser.py:240: in get_study_sessions
    seqinfo_dict = group_dicoms_into_seqinfos(
heudiconv/dicoms.py:338: in group_dicoms_into_seqinfos
    mwinfo = validate_dicom(filename, dcmfilter)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
heudiconv/dicoms.py:175: in validate_dicom
    parse_private_csa_header(mw.dcm_data, "ProtocolName", "tProtocolName")
heudiconv/dicoms.py:806: in parse_private_csa_header
    import dcmstack.extract as dsextract
/usr/lib/python3/dist-packages/dcmstack/__init__.py:7: in <module>
    from .dcmstack import *
/usr/lib/python3/dist-packages/dcmstack/dcmstack.py:30: in <module>
    from . import snd
/usr/lib/python3/dist-packages/dcmstack/snd.py:7: in <module>
    import pint
E   ModuleNotFoundError: No module named 'pint'
------------------------------ Captured log call -------------------------------
WARNING  heudiconv.main:main.py:362 Could not check for version updates: Connection to server could not be made
___________________________ test_notop[bidsoptions0] ___________________________
tests/test_heuristics.py:222: in test_notop
    runner(args)
heudiconv/cli/run.py:30: in main
    workflow(**kwargs)
heudiconv/main.py:410: in workflow
    study_sessions = get_study_sessions(
heudiconv/parser.py:240: in get_study_sessions
    seqinfo_dict = group_dicoms_into_seqinfos(
heudiconv/dicoms.py:338: in group_dicoms_into_seqinfos
    mwinfo = validate_dicom(filename, dcmfilter)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
heudiconv/dicoms.py:175: in validate_dicom
    parse_private_csa_header(mw.dcm_data, "ProtocolName", "tProtocolName")
heudiconv/dicoms.py:806: in parse_private_csa_header
    import dcmstack.extract as dsextract
/usr/lib/python3/dist-packages/dcmstack/__init__.py:7: in <module>
    from .dcmstack import *
/usr/lib/python3/dist-packages/dcmstack/dcmstack.py:30: in <module>
    from . import snd
/usr/lib/python3/dist-packages/dcmstack/snd.py:7: in <module>
    import pint
E   ModuleNotFoundError: No module named 'pint'
------------------------------ Captured log call -------------------------------
WARNING  heudiconv.main:main.py:362 Could not check for version updates: Connection to server could not be made
___________________________ test_notop[bidsoptions1] ___________________________
tests/test_heuristics.py:222: in test_notop
    runner(args)
heudiconv/cli/run.py:30: in main
    workflow(**kwargs)
heudiconv/main.py:410: in workflow
    study_sessions = get_study_sessions(
heudiconv/parser.py:240: in get_study_sessions
    seqinfo_dict = group_dicoms_into_seqinfos(
heudiconv/dicoms.py:338: in group_dicoms_into_seqinfos
    mwinfo = validate_dicom(filename, dcmfilter)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
heudiconv/dicoms.py:175: in validate_dicom
    parse_private_csa_header(mw.dcm_data, "ProtocolName", "tProtocolName")
heudiconv/dicoms.py:806: in parse_private_csa_header
    import dcmstack.extract as dsextract
/usr/lib/python3/dist-packages/dcmstack/__init__.py:7: in <module>
    from .dcmstack import *
/usr/lib/python3/dist-packages/dcmstack/dcmstack.py:30: in <module>
    from . import snd
/usr/lib/python3/dist-packages/dcmstack/snd.py:7: in <module>
    import pint
E   ModuleNotFoundError: No module named 'pint'
------------------------------ Captured log call -------------------------------
WARNING  heudiconv.main:main.py:362 Could not check for version updates: Connection to server could not be made
__________________________________ test_cache __________________________________
tests/test_main.py:325: in test_cache
    runner(args)
heudiconv/cli/run.py:30: in main
    workflow(**kwargs)
heudiconv/main.py:410: in workflow
    study_sessions = get_study_sessions(
heudiconv/parser.py:240: in get_study_sessions
    seqinfo_dict = group_dicoms_into_seqinfos(
heudiconv/dicoms.py:338: in group_dicoms_into_seqinfos
    mwinfo = validate_dicom(filename, dcmfilter)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
heudiconv/dicoms.py:175: in validate_dicom
    parse_private_csa_header(mw.dcm_data, "ProtocolName", "tProtocolName")
heudiconv/dicoms.py:806: in parse_private_csa_header
    import dcmstack.extract as dsextract
/usr/lib/python3/dist-packages/dcmstack/__init__.py:7: in <module>
    from .dcmstack import *
/usr/lib/python3/dist-packages/dcmstack/dcmstack.py:30: in <module>
    from . import snd
/usr/lib/python3/dist-packages/dcmstack/snd.py:7: in <module>
    import pint
E   ModuleNotFoundError: No module named 'pint'
------------------------------ Captured log call -------------------------------
WARNING  heudiconv.main:main.py:362 Could not check for version updates: Connection to server could not be made
____________________________ test_grouping[merged] _____________________________
tests/test_regression.py:172: in test_grouping
    runner(hargs)
heudiconv/cli/run.py:30: in main
    workflow(**kwargs)
heudiconv/main.py:480: in workflow
    prep_conversion(
heudiconv/convert.py:215: in prep_conversion
    seqinfo = group_dicoms_into_seqinfos(
heudiconv/dicoms.py:338: in group_dicoms_into_seqinfos
    mwinfo = validate_dicom(filename, dcmfilter)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
heudiconv/dicoms.py:175: in validate_dicom
    parse_private_csa_header(mw.dcm_data, "ProtocolName", "tProtocolName")
heudiconv/dicoms.py:806: in parse_private_csa_header
    import dcmstack.extract as dsextract
/usr/lib/python3/dist-packages/dcmstack/__init__.py:7: in <module>
    from .dcmstack import *
/usr/lib/python3/dist-packages/dcmstack/dcmstack.py:30: in <module>
    from . import snd
/usr/lib/python3/dist-packages/dcmstack/snd.py:7: in <module>
    import pint
E   ModuleNotFoundError: No module named 'pint'
------------------------------ Captured log call -------------------------------
WARNING  heudiconv.main:main.py:362 Could not check for version updates: Connection to server could not be made
=========================== short test summary info ============================
FAILED tests/test_dicoms.py::test_private_csa_header - ModuleNotFoundError: N...
FAILED tests/test_dicoms.py::test_embed_dicom_and_nifti_metadata - ModuleNotF...
FAILED tests/test_heuristics.py::test_scans_keys_reproin[invocation0] - Modul...
FAILED tests/test_heuristics.py::test_ls - ModuleNotFoundError: No module nam...
FAILED tests/test_heuristics.py::test_scout_conversion - ModuleNotFoundError:...
FAILED tests/test_heuristics.py::test_notop[bidsoptions0] - ModuleNotFoundErr...
FAILED tests/test_heuristics.py::test_notop[bidsoptions1] - ModuleNotFoundErr...
FAILED tests/test_main.py::test_cache - ModuleNotFoundError: No module named ...
FAILED tests/test_regression.py::test_grouping[merged] - ModuleNotFoundError:...
=========== 9 failed, 185 passed, 10 skipped, 5 deselected in 9.52s ============
E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_heudiconv/build; python3.13 -m pytest -k 'not test_bvals_are_zero and not test_reproin_largely_smoke'
	rm -fr -- /tmp/dh-xdg-rundir-zAXBS81O
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.14 3.13" --parallel=2 returned exit code 13
make: *** [debian/rules:25: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------



More information about the Debian-med-packaging mailing list