Deepstream Python samples not working

* Nvidia GeForce RTX 3060
• DeepStream Version 7.1
• Docker
• Driver Version: 575.64.03
• CUDA Version: 12.9
• Bug
• How to reproduce the issue :

xhost +
docker run --gpus all -it --rm --network=host --privileged -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY -w /opt/nvidia/deepstream/deepstream-7.1 nvcr.io/nvidia/deepstream:7.1-gc-triton-devel
./user_deepstream_python_apps_install.sh --version 1.2.0
cd sources/deepstream_python_apps/apps/deepstream-test1
python3 deepstream_test_1.py /opt/nvidia/deepstream/deepstream/samples/streams/sample_720p.h264

Logs :

Traceback (most recent call last):
  File "/opt/nvidia/deepstream/deepstream-7.1/sources/deepstream_python_apps/apps/deepstream-test1/deepstream_test_1.py", line 26, in <module>
    from common.platform_info import PlatformInfo
  File "/opt/nvidia/deepstream/deepstream-7.1/sources/deepstream_python_apps/apps/deepstream-test1/../common/platform_info.py", line 21, in <module>
    from cuda import cudart
ImportError: cannot import name 'cudart' from 'cuda' (unknown location)

This is a bug in user_deepstream_python_apps_install.sh.

pip install cuda-python will install the latest cuda 13.0, but the deepstream-7.1 need cuda 12.6.

So run the command in terminal.

pip install cuda-python==12.6
2 Likes

Thanks,
Is this reported somewhere?
If not, that might be good to add that at least on GitHub - NVIDIA-AI-IOT/deepstream_python_apps: DeepStream SDK Python bindings and sample applications

Thanks,

Simon

we will check it.

1 Like