# Error after run command deepstream python binding

**URL:** <https://forums.developer.nvidia.com/t/error-after-run-command-deepstream-python-binding/311866>\
**Category:** DeepStream SDK\
**Tags:** deepstream, jetson, cuda\
**Created:** [November 1, 2024, 2:08am UTC](https://forums.developer.nvidia.com/t/error-after-run-command-deepstream-python-binding/311866 "2024-11-01T02:08:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![panitanantl](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/panitanantl/32/362531_2.png) [@panitanantl](https://forums.developer.nvidia.com/u/panitanantl)\
**Post date:** [November 1, 2024, 2:08am UTC](https://forums.developer.nvidia.com/t/error-after-run-command-deepstream-python-binding/311866/1 "2024-11-01T02:08:46Z")

</div>

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-dev **export** 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.](https://github.com/GStreamer/gst-python.git)  
\*\*./ **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](https://github.com/NVIDIA-AI-IOT/deepstream_python_apps)

## 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](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

---

<div class="post-metadata">

**Author:** ![junshengy](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/junshengy/32/251332_2.png) [@junshengy](https://forums.developer.nvidia.com/u/junshengy)\
**Post date:** [November 1, 2024, 4:41am UTC](https://forums.developer.nvidia.com/t/error-after-run-command-deepstream-python-binding/311866/3 "2024-11-01T04:41:54Z")

</div>

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.

> **[deepstream\_python\_apps/bindings at v1.1.1 · NVIDIA-AI-IOT/deepstream\_python\_apps](https://github.com/NVIDIA-AI-IOT/deepstream_python_apps/tree/v1.1.1/bindings)**
>
> DeepStream SDK Python bindings and sample applications - NVIDIA-AI-IOT/deepstream\_python\_apps

---

<div class="post-metadata">

**Author:** ![panitanantl](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/panitanantl/32/362531_2.png) [@panitanantl](https://forums.developer.nvidia.com/u/panitanantl)\
**Post date:** [November 1, 2024, 5:31am UTC](https://forums.developer.nvidia.com/t/error-after-run-command-deepstream-python-binding/311866/4 "2024-11-01T05:31:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [November 15, 2024, 5:32am UTC](https://forums.developer.nvidia.com/t/error-after-run-command-deepstream-python-binding/311866/5 "2024-11-15T05:32:15Z")

</div>

Closed on November 15, 2024, 5:32am UTC

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