Python bindings on deepstream sdk?

Do I need to install python bindings to create a custom python application on deepstream sdk?? I have JetPack 4.6.1 installed.

Hello,

I am going to move your topic over to the Deepstream category for better visibility.

Hi @contactnikhilrb

You need to install the deepstream python bindings from here:

The GObject and Gst bindings are also needed but they should already be installed in JP 4.6.1. You can test this with:

import gi
import importlib.util

gi.require_version('Gst', '1.0')
gi.require_version('GLib', '2.0')

from gi.repository import Gst, GObject, GLib

I’m using Ubuntu 18.04 and DeepStream SDK 6.0.1with JetPack 4.6.1. Based on this this seems to be the right link to install python bindings: Release DeepStream_Python_Apps_Bindings_v1.1.1 · NVIDIA-AI-IOT/deepstream_python_apps · GitHub The link has 2 .whl files and .zip source file, How do I go about installing python bindings from the link above ? There isn’t a readme file on this link. Also, for jetpack 4.6.1 which .whl file do i need to install?

The DeepStream python bindings are called “pyds”. There is already instructions for how to build “pyds” and how to install the “pyds”. https://github.com/NVIDIA-AI-IOT/deepstream_python_apps/tree/v1.1.1/bindings#4---using-the-generated-pip-wheel

I tried following the instructions on the link you shared, got an error during one of the cmake steps, so was wondering as an alternative if I could just install the .whl file or source code file from the link-Release DeepStream_Python_Apps_Bindings_v1.1.1 · NVIDIA-AI-IOT/deepstream_python_apps · GitHub

If you have already installed JetPack 4.6.1 and DeepStream 6.0.1 correctly, you can install the pre-built whl.

The dependencies are needed too. https://github.com/NVIDIA-AI-IOT/deepstream_python_apps/tree/v1.1.1/bindings#21-base-dependencies

quote=“Fiona.Chen, post:8, topic:269978”]
If you have already installed JetPack 4.6.1 and DeepStream 6.0.1 correctly, you can install the pre-built whl.

The dependencies are needed too. https://github.com/NVIDIA-AI-IOT/deepstream_python_apps/tree/v1.1.1/bindings#21-base-dependencies
[/quote]

@Fiona.Chen So to begin with, i install the bindings with the command:
sudo -H pip3 install pyds-1.1.1-py3-none-linux_aarch64.whl

Then install the dependencies from: https://github.com/NVIDIA-AI-IOT/deepstream_python_apps/tree/v1.1.1/bindings#21-base-dependencies with the command apt install -y git python-dev python3 python3-pip python3.6-dev python3.8-dev cmake g++ build-essential
libglib2.0-dev libglib2.0-dev-bin python-gi-dev libtool m4 autoconf automake

Is this correct? Do i need to do anything else after? Or am I missing anything?

@Fiona.Chen Please help.

There is no update from you for a period, assuming this is not an issue anymore. Hence we are closing this topic. If need further support, please open a new one. Thanks

Yes. You can follow the steps

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.