• Hardware Platform: Jetson AGX Orin
• DeepStream Version: 6.2
• JetPack Version: 5.1
• Issue Type: Question
Hello, I have a question about the building of python bindings for Deepstream. I have been following the readme here: deepstream_python_apps/bindings at v1.1.6 · NVIDIA-AI-IOT/deepstream_python_apps · GitHub. I am curious about the following step which installs gst-python (using the submodule, currently pointing to the tag 1.14.5
):
cd 3rdparty/gst-python/
./autogen.sh
make
sudo make install
This step however depends on the where does python
point. If pointing to python2.7
, the gst-python
libraries are going to be installed in:
/usr/local/lib/python2.7/dist-packages/gi/overrides/
Using python3
as the default python
will install the files in
/usr/local/lib/python3.8/site-packages/gi/overrides
This is something I had stumbled upon since I am using python2
as the default interpreter but the following code (and Deepstream applications) worked ok for me (even though the bindings did not compile for python3
at all).
import gi
gi.require_version('Gst', '1.0') # This is fine
from gi.repository import Gst
This is fine, since the necessary packages are already installed with the following command (copied from the same guide).
apt install python3-gi python3-dev python3-gst-1.0 python-gi-dev git python-dev \
python3 python3-pip python3.8-dev cmake g++ build-essential libglib2.0-dev \
libglib2.0-dev-bin libgstreamer1.0-dev libtool m4 autoconf automake libgirepository1.0-dev libcairo2-dev
The question is:
Given that using gstreamer in Python is already enabled by installing gir1.2-gstreamer-1.0, gir1.2-gst-plugins-base-1.0
packages (already installed in the apt script above), is it not necessary to compile gst-python from source?
Is this correct, or am I missing something.