[gst-python] Namespace Gst not available after building from source
Hi folks,
I'm trying to build gst-python
from source and run the hello_world example.
I'm in a system with pyenv installed at /pyenv
. The tag of gst-python
is 1.19.2
These are the steps I'm following:
meson build_dir/ -Dpygi-overrides-dir=/pyenv/versions/3.10.0/lib/python3.10/site-packages/gi/overrides/
ninja -C build_dir/
ninja -C build_dir install
which outputs:
Installing gi/overrides/_gi_gst.cpython-310-x86_64-linux-gnu.so to /pyenv/versions/3.10.0/lib/python3.10/site-packages/gi/overrides
Installing plugin/libgstpython.so to /usr/local/lib/x86_64-linux-gnu/gstreamer-1.0
Installing /tmp/gst-python/gi/overrides/Gst.py to /pyenv/versions/3.10.0/lib/python3.10/site-packages/gi/overrides
Installing /tmp/gst-python/gi/overrides/GstPbutils.py to /pyenv/versions/3.10.0/lib/python3.10/site-packages/gi/overrides
I can confirm I see the files in the folder. The only unexpected path is the gstreamer one, as gstreamer is installed at /usr/lib/x86-64-linux-gnu/gstreamer
.
However, when running the example I'm hitting:
Traceback (most recent call last):
File "/orca/pipeline.py", line 5, in <module>
gi.require_version("Gst", "1.0")
File "/pyenv/versions/3.10.0/lib/python3.10/site-packages/gi/__init__.py", line 126, in require_version
raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Gst not available
I'm attaching the logs just in case: