[Debian-med-packaging] Bug#1149373: heudiconv: FTBFS against python 3.15rc2 (pydicom imports deprecated collections.abc.ByteString)
Margarita Manterola
marga at debian.org
Tue Sep 29 18:47:22 BST 2026
Package: src:heudiconv
Version: 1.4.0-2
User: debian-python at lists.debian.org
Usertags: python3.15
Tags: ftbfs, forky, sid
Severity: important
Hi!
While rebuilding the python related packages against the Python 3.15rc2
version we found that heudiconv fails to build from source:
https://debusine.debian.net/debian/r-python-python3.15/artifact/4856233/
The log includes errors like this one, over and over:
__ ERROR collecting
.pybuild/cpython3_3.15_heudiconv/build/heudiconv/bids.py ___
heudiconv/bids.py:21: in <module>
import pydicom as dcm
/usr/lib/python3/dist-packages/pydicom/__init__.py:31: in <module>
from pydicom.dataelem import DataElement
/usr/lib/python3/dist-packages/pydicom/dataelem.py:17: in <module>
from pydicom import config # don't import datetime_conversion
directly
^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/pydicom/config.py:407: in <module>
import pydicom.pixel_data_handlers.numpy_handler as np_handler #
noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/pydicom/pixel_data_handlers/__init__.py:6:
in <module>
from pydicom.pixels.processing import (
/usr/lib/python3/dist-packages/pydicom/pixels/__init__.py:3: in <module>
from pydicom.pixels.decoders.base import get_decoder
/usr/lib/python3/dist-packages/pydicom/pixels/decoders/__init__.py:3: in
<module>
from pydicom.pixels.decoders.base import (
/usr/lib/python3/dist-packages/pydicom/pixels/decoders/base.py:21: in
<module>
from pydicom.pixels.common import (
/usr/lib/python3/dist-packages/pydicom/pixels/common.py:9: in <module>
from pydicom.pixels.utils import as_pixel_options
/usr/lib/python3/dist-packages/pydicom/pixels/utils.py:4: in <module>
from collections.abc import Iterable, Iterator, ByteString
<frozen _collections_abc>:1180: in __getattr__
???
/usr/lib/python3.15/_py_warnings.py:892: in _deprecated
_wm.warn(msg, DeprecationWarning, stacklevel=3)
E DeprecationWarning: 'collections.abc.ByteString' is deprecated and
slated for removal in Python 3.17
This is caused by pydicom trying to import the deprecated module, and
heudicom setting to fail on warnings.
Setting the severity to important for now. Once Python 3.15 is released
and later added to python3-defaults, this bug will become release
critical.
--
Regards,
Marga
More information about the Debian-med-packaging
mailing list