gstlal-ugly incompatible with gobject-introspection 1.80
Attempting to import gstlal.aggregator
(1.14) with gobject-introspection 1.80 results in an ImportError
:
conda create -n test gstlal-ugly=1.14 gobject-introspection=1.80
conda activate test
python
>>> import gstlal.aggregator
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/duncan/opt/mambaforge/envs/test/lib/python3.11/site-packages/gstlal/aggregator.py", line 28, in <module>
from gi.repository import GLib
File "/home/duncan/opt/mambaforge/envs/test/lib/python3.11/site-packages/gi/importer.py", line 133, in create_module
raise ImportError('cannot import name %s, '
ImportError: cannot import name GLib, introspection typelib not found
This is fundamentally because gobject-introspection now doesn't ship the typelib files for GLib
(GNOME/gobject-introspection!433, GNOME/gobject-introspection!437), but the upstream library doesn't seem to either.
I'm not sure whether this is a bug or a feature in the latest versions of glib/gobject-introspection, but I don't have the understanding of GNOME libraries to work out what is going on. This can be worked around with a version pin in the gstlal-ugly conda feedstock, but it won't hold forever.
Edited by Duncan Macleod