gst-python can't find gi.repository.Gst
root@system:/# gst-inspect-1.0 /usr/local/lib/gstreamer-1.0/libgstpython.so
** (gst-inspect-1.0:342): CRITICAL **: 16:54:27.652: can't find gi.repository.Gst
Could not load plugin file: File "/usr/local/lib/gstreamer-1.0/libgstpython.so" appears to be a GStreamer plugin, but it failed to initialize
I am building the stack on Ubuntu20.04 container using following:
RUN cd /opt/build/gstreamer-1.20.3 && \
meson build --libdir=/usr/local/lib --libexecdir=/usr/local/lib \
--prefix=/usr/local --buildtype=plain -Dexamples=disabled -Dtests=disabled -Ddoc=disabled -Dintrospection=enabled -Dgtk_doc=disabled \
-Dpython=enabled \
-Dcustom_subprojects="gst-libav,gst-plugins-base,gst-plugins-good,gst-plugins-bad,gst-plugins-ugly,gst-python" \
-Dlibsoup:sysprof=disabled -Dgpl=enabled && \
cd build && \
ninja install && \
DESTDIR=/opt/dist ninja install
Installed possibly required packages too: apt install python3-gi python3-gi-cairo gir1.2-gtk-3.0
Even then, it can not load gst-python successfully. Thanks in advance.