Bug#1056250: joblib's autopkg tests fail with Python 3.12

Matthias Klose doko at debian.org
Sun Nov 19 12:21:10 GMT 2023


Package: src:joblib
Version: 1.2.0-4
Severity: important
Tags: sid trixie
User: debian-python at lists.debian.org
Usertags: python3.12

joblib's autopkg tests fail with Python 3.12 (distutils module is 
removed in 3.12):

[...]
396s Testing with python3.12:
396s ============================= test session starts 
==============================
396s platform linux -- Python 3.12.0+, pytest-7.4.3, pluggy-1.3.0 -- 
/usr/bin/python3.12
396s cachedir: .pytest_cache
396s rootdir: /tmp/autopkgtest.hUalp6/autopkgtest_tmp
397s collecting ... collected 0 items / 23 errors
397s
397s ==================================== ERRORS 
====================================
397s ___________________ ERROR collecting test/test_backports.py 
____________________
397s ImportError while importing test module 
'/usr/lib/python3/dist-packages/joblib/test/test_backports.py'.
397s Hint: make sure your test modules/packages have valid Python names.
397s Traceback:
397s /usr/lib/python3.12/importlib/__init__.py:90: in import_module
397s     return _bootstrap._gcd_import(name[level:], package, level)
397s /usr/lib/python3/dist-packages/joblib/__init__.py:113: in <module>
397s     from .memory import Memory, MemorizedResult, register_store_backend
397s /usr/lib/python3/dist-packages/joblib/memory.py:32: in <module>
397s     from ._store_backends import StoreBackendBase, 
FileSystemStoreBackend
397s /usr/lib/python3/dist-packages/joblib/_store_backends.py:15: in 
<module>
397s     from .backports import concurrency_safe_rename
397s /usr/lib/python3/dist-packages/joblib/backports.py:22: in <module>
397s     import distutils  # noqa
397s E   ModuleNotFoundError: No module named 'distutils'



More information about the debian-science-maintainers mailing list