gstlal 1.13.0, Ubuntu 24.04 (Python 3.12): No module named 'imp'
https://hypatia.aei.mpg.de/lsc-amd64-noble/gstlal_1.13.0-1.01+ubuntu24.04.0_amd64.--pbuilderlog
The imp
module has been removed by Python 3.12 - the official suggestion is to use importlib
instead (but I have no real idea how).
Two files seem to be affected: python/bottle.py
(L38) and gnuscripts/py-compile
(L119, L140)
- the former uses
imp.new_module()
, for which https://docs.python.domainunion.de/3.11/library/imp.html suggests to "[u]se importlib.util.module_from_spec() instead" - the latter
imp.cache_from_source()
, to be replaced with "importlib.util.cache_from_source() instead", according to the same page.
Patches are welcome.
Edited by Steffen Grunewald