snax 0.5.2 incompatible with gobject-introspection 1.80
Attempting to run any of the snax_*
scripts from version 0.5.2 raises an ImportError
alongside gobject-introspection-1.80.1
:
$ conda create -n snax python=3.11 snax
$ conda activate snax
$ snax_combine --help
Traceback (most recent call last):
File "/home/duncan/opt/mambaforge/envs/snax/bin/snax_combine", line 36, in <module>
from snax.extract import DataType
File "/home/duncan/opt/mambaforge/envs/snax/lib/python3.11/site-packages/snax/extract.py", line 30, in <module>
from gi.repository import GObject, Gst
File "/home/duncan/opt/mambaforge/envs/snax/lib/python3.11/site-packages/gi/importer.py", line 133, in create_module
raise ImportError('cannot import name %s, '
ImportError: cannot import name GObject, 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 (example) in the snax conda feedstock, but it won't hold forever.