Error after run command deepstream python binding

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) Jetson Nano
• DeepStream Version 6.0.1
• JetPack Version (valid for Jetson only) 4.6.5
• TensorRT Version 8.2.1
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs)
error when run deepstream_test_1.py
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)
after complete Deepstream 6.0.1 installation
and successful to run demo
deepstream-app -c source8_1080p_dec_infer-resnet_tracker_tiled_display_fp16_nano.txt
then move to Python bindings installation
completed to do:

Dependencies installation

sudo 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 libgirepository1.0-dev libcairo2-dev librdkafka1=0.11.3-1build1
sudo apt install -y libgstrtspserver-1.0-0 gstreamer1.0-rtsp libgirepository1.0-dev gobject-introspection gir1.2-gst-rtsp-server-1.0
sudo apt install python-gi-devexport GST_LIBS=“-lgstreamer-1.0 -lgobject-2.0 -lglib-2.0"export GST_CFLAGS=”-pthread -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include

Gst-python installation installation

git clone GitHub - GStreamer/gst-python: GStreamer Python binding overrides (complementing the bindings provided by python-gi). This module has been merged into the main GStreamer repo for further development.
**./autogen.sh PYTHON=python3./**configure PYTHON=python3
make && sudo make install

Python bindings installation & sample applications download

git clone** GitHub - NVIDIA-AI-IOT/deepstream_python_apps: DeepStream SDK Python bindings and sample applications

Downloads and install

https://github.com/NVIDIA-AI-IOT/deepstream_python_apps/releases/download/v1.1.1/pyds-1.1.1-py3-none-linux_aarch64.whl

so final, i try to run this command
python3** deepstream_test_1.py …/…/…/…/samples/streams/sample_qHD.h264

the error is
“jetson@waveshare:/opt/nvidia/deepstream/deepstream-6.0/sources/deepstream_python_apps/apps/deepstream-test1$ python3 deepstream_test_1.py …/…/…/…/samples/streams/sample_qHD.h264
Traceback (most recent call last):
File “deepstream_test_1.py”, line 26, in
from common.platform_info import PlatformInfo
File “…/common/platform_info.py”, line 21, in
from cuda import cudart
ModuleNotFoundError: No module named ‘cuda’”

Please kindly suggest how to solve this issue.

Thank you in advance

This problem is caused by the python bindings version

Since you are using Jetson Nano, you can only use DS-6.0.1 version. After cloning the code, checkout v1.1.1, and then follow the below link to install it.

Thank you very much,
I clone git wrong version then I choosed the code from v1.1.1 then it is working well already.

1 Like

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