[Debian-med-packaging] Bug#1063588: nibabel fails to run with Python 3.12 as the default

Matthias Klose doko at debian.org
Fri Feb 9 18:39:29 GMT 2024


Package: src:nibabel
Version: 5.2.0-2
Severity: important
Tags: sid trixie ftbfs
User: debian-python at lists.debian.org
Usertags: python3.12

[...]
359s autopkgtest [08:34:15]: test run-unit-test: [-----------------------
362s ============================= test session starts 
==============================
362s platform linux -- Python 3.12.2, pytest-7.4.4, pluggy-1.4.0 -- 
/usr/bin/python3.12
362s cachedir: .pytest_cache
362s rootdir: /tmp/autopkgtest.opYRhs/build.LA4/src
362s plugins: pytest_httpserver-1.0.8
373s collecting ... collected 5649 items / 1 error
373s
373s ==================================== ERRORS 
====================================
373s _________________ ERROR collecting nisext/tests/test_sexts.py 
__________________
373s ImportError while importing test module 
'/tmp/autopkgtest.opYRhs/build.LA4/src/nisext/tests/test_sexts.py'.
373s Hint: make sure your test modules/packages have valid Python names.
373s Traceback:
373s /usr/lib/python3.12/importlib/__init__.py:90: in import_module
373s     return _bootstrap._gcd_import(name[level:], package, level)
373s nisext/tests/test_sexts.py:9: in <module>
373s     from ..sexts import package_check
373s nisext/sexts.py:5: in <module>
373s     from distutils import log
373s E   ModuleNotFoundError: No module named 'distutils'
373s =============================== warnings summary 
===============================
373s nibabel/testing/__init__.py:29
373s 
/tmp/autopkgtest.opYRhs/build.LA4/src/nibabel/testing/__init__.py:29: 
DeprecationWarning: 'importlib.abc.Traversable' is deprecated and slated 
for removal in Python 3.14
373s     from importlib.abc import Traversable
373s
373s nisext/__init__.py:10
373s   /tmp/autopkgtest.opYRhs/build.LA4/src/nisext/__init__.py:10: 
UserWarning: The nisext package is deprecated as of NiBabel 5.0 and will 
be fully
373s   removed in NiBabel 6.0
373s     warnings.warn(
373s
373s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
373s =========================== short test summary info 
============================
373s ERROR nisext/tests/test_sexts.py
373s !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection 
!!!!!!!!!!!!!!!!!!!!
373s ======================== 2 warnings, 1 error in 11.27s 
=========================



More information about the Debian-med-packaging mailing list