Bug#1056459: python-bumps autopkg tests fail with Python 3.12
Matthias Klose
doko at debian.org
Wed Nov 22 13:28:07 GMT 2023
Package: src:python-bumps
Version: 0.9.1-1
Severity: important
Tags: sid trixie
User: debian-python at lists.debian.org
Usertags: python3.12
python-bumps autopkg tests fail with Python 3.12:
[...]
304s autopkgtest [18:57:40]: test python3-bumps: [-----------------------
305s ============================= test session starts
==============================
305s platform linux -- Python 3.12.0+, pytest-7.4.3, pluggy-1.3.0 --
/usr/bin/python3.12
305s rootdir: /tmp/autopkgtest.9D4Y3T/autopkgtest_tmp
305s configfile: pytest.ini
305s plugins: cov-4.1.0
313s collecting ...
/usr/lib/python3/dist-packages/bumps/numdifftools/core.py:1211:
SyntaxWarning: invalid escape sequence '\q'
313s """, extra_note="""
313s collected 33 items / 2 errors
313s
313s ==================================== ERRORS
====================================
313s ________________________ ERROR collecting openmp_ext.py
________________________
313s /usr/lib/python3/dist-packages/_pytest/runner.py:341: in from_call
313s result: Optional[TResult] = func()
313s /usr/lib/python3/dist-packages/_pytest/runner.py:372: in <lambda>
313s call = CallInfo.from_call(lambda: list(collector.collect()),
"collect")
313s /usr/lib/python3/dist-packages/_pytest/doctest.py:567: in collect
313s module = import_path(
313s /usr/lib/python3/dist-packages/_pytest/pathlib.py:567: in import_path
313s importlib.import_module(module_name)
313s /usr/lib/python3.12/importlib/__init__.py:90: in import_module
313s return _bootstrap._gcd_import(name[level:], package, level)
313s <frozen importlib._bootstrap>:1381: in _gcd_import
313s ???
313s <frozen importlib._bootstrap>:1354: in _find_and_load
313s ???
313s <frozen importlib._bootstrap>:1325: in _find_and_load_unlocked
313s ???
313s <frozen importlib._bootstrap>:929: in _load_unlocked
313s ???
313s /usr/lib/python3/dist-packages/_pytest/assertion/rewrite.py:186: in
exec_module
313s exec(co, module.__dict__)
313s /usr/lib/python3/dist-packages/bumps/openmp_ext.py:9: in <module>
313s from distutils.command.build_ext import build_ext
313s E ModuleNotFoundError: No module named 'distutils'
313s ________________________ ERROR collecting openmp_ext.py
________________________
313s ImportError while importing test module
'/usr/lib/python3/dist-packages/bumps/openmp_ext.py'.
313s Hint: make sure your test modules/packages have valid Python names.
313s Traceback:
313s /usr/lib/python3.12/importlib/__init__.py:90: in import_module
313s return _bootstrap._gcd_import(name[level:], package, level)
313s /usr/lib/python3/dist-packages/bumps/openmp_ext.py:9: in <module>
313s from distutils.command.build_ext import build_ext
313s E ModuleNotFoundError: No module named 'distutils'
More information about the debian-science-maintainers
mailing list