gstlal drop_test_o2a failing with gst-python-1.22.1 due to 'AudioInfo.from_caps was removed' error
Attempting to test gstLAL builds in an environment with gst-python 1.22.1 results in the following error:
=== Running Test drop_test_02a ===
/home/duncan/opt/mambaforge/conda-bld/gstlal_1680614712528/work/tests/test_common.py:120: PyGIDeprecationWarning: GObject.MainLoop is deprecated; use GLib.MainLoop instead
mainloop = GObject.MainLoop()
Traceback (most recent call last):
File "/home/duncan/opt/mambaforge/conda-bld/gstlal_1680614712528/work/tests/test_common.py", line 165, in appsink_get_array
output_arrays.append(pipeio.array_from_audio_sample(elem.emit("pull-sample")))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/duncan/opt/mambaforge/conda-bld/gstlal_1680614712528/_h_env/lib/python3.11/site-packages/gstlal/pipeio.py", line 173, in array_from_audio_sample
a = numpy.frombuffer(mapinfo.data, dtype = numpy_dtype_from_caps(caps))
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/duncan/opt/mambaforge/conda-bld/gstlal_1680614712528/_h_env/lib/python3.11/site-packages/gstlal/pipeio.py", line 135, in numpy_dtype_from_caps
info.from_caps(caps)
File "/home/duncan/opt/mambaforge/conda-bld/gstlal_1680614712528/_h_env/lib/python3.11/site-packages/gi/overrides/GstAudio.py", line 13, in __audio_info_from_caps
raise NotImplementedError('AudioInfo.from_caps was removed, use AudioInfo.new_from_caps instead')
NotImplementedError: AudioInfo.from_caps was removed, use AudioInfo.new_from_caps instead
See https://gitlab.freedesktop.org/gstreamer/gstreamer/-/commit/830d1595b94ee855b664b2101f0832fbd0181b9c.