#1140252 heudiconv: FTBFS: E ModuleNotFoundError: No module named 'pint'

#1140252#5
Date:
2026-06-17 16:15:04 UTC
From:
To:
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 ===================================

#1140252#10
Date:
2026-06-28 00:05:22 UTC
From:
To:
reassign 1140252 src:dcmstack
affects 1140252 src:heudiconv
found 1140252 0.9+git20260610.ed4d27c-1
close 1140252 0.9+git20260610.ed4d27c-2
thanks

This is actually #1140574 in src:dcmstack, not heudiconv's fault.

(Skipping the merge to avoid making a mess).

Thanks.