[Debian-astro-maintainers] Bug#1058381: casa-formats-io: FTBFS: dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.12 3.11" returned exit code 13

s3v c0llapsed at yahoo.it
Wed Jan 17 19:27:29 GMT 2024


Dear Maintainer,

> ==================================== ERRORS ====================================
> _ ERROR collecting .pybuild/cpython3_3.12_casa-formats-io/build/casa_formats_io/glue_factory.py _
> /usr/lib/python3/dist-packages/_pytest/runner.py:341: in from_call
>     result: Optional[TResult] = func()
> /usr/lib/python3/dist-packages/_pytest/runner.py:372: in <lambda>
>     call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
> /usr/lib/python3/dist-packages/pytest_doctestplus/plugin.py:250: in collect
>     module = import_path(fspath, root=self.config.rootpath)
> /usr/lib/python3/dist-packages/_pytest/pathlib.py:567: in import_path
>     importlib.import_module(module_name)
> /usr/lib/python3.12/importlib/__init__.py:90: in import_module
>     return _bootstrap._gcd_import(name[level:], package, level)
> <frozen importlib._bootstrap>:1387: in _gcd_import
>     ???
> <frozen importlib._bootstrap>:1360: in _find_and_load
>     ???
> <frozen importlib._bootstrap>:1331: in _find_and_load_unlocked
>     ???
> <frozen importlib._bootstrap>:935: in _load_unlocked
>     ???
> <frozen importlib._bootstrap_external>:994: in exec_module
>     ???
> <frozen importlib._bootstrap>:488: in _call_with_frames_removed
>     ???
> casa_formats_io/glue_factory.py:7: in <module>
>     from glue.core import Data
> /usr/lib/python3/dist-packages/glue/__init__.py:22: in <module>
>     from .config import load_configuration
> /usr/lib/python3/dist-packages/glue/config.py:2: in <module>
>     import imp
> E   ModuleNotFoundError: No module named 'imp'
> =========================== short test summary info ============================
> ERROR casa_formats_io/glue_factory.py - ModuleNotFoundError: No module named ...
> !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
> =============================== 1 error in 1.37s ===============================

The issue comes from glue's source code.
'imp' module was removed from Python 3.12 [1]

Kind Regards

[1] https://docs.python.org/3/whatsnew/3.12.html#imp



More information about the Debian-astro-maintainers mailing list