AttributeError: module 'pyds' has no attribute 'gst_buffer_get_nvds_batch_meta'

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU)
GPU
• DeepStream Version
DeepStream 7.0
• TensorRT Version
8.6.1.6
• NVIDIA GPU Driver Version (valid for GPU only)
535.183.01
• Issue Type( questions, new requirements, bugs)
I’ve followed all what this file said deepstream_python_apps/bindings at v1.1.11 · NVIDIA-AI-IOT/deepstream_python_apps (github.com)
an “AttributeError: module ‘pyds’ has no attribute ‘gst_buffer_get_nvds_batch_meta’” error occurred when I run
shell sudo python3 deepstream_test_1.py /opt/nvidia/deepstream/deepstream/samples/streams/sample_720p.h264

This is an installation problem. You need to check whether the dependencies of pyds are fully installed.

Also, are you using ubuntu-22.04? DS-7.0 requires ubuntu-22.04

Or try using docker

yep, ubuntu 22-0.4, deepstream sdk-7.0, python3.10 in conda virtual environment and pyds1.1.11.
I will try in docker, but i think it is an issue

If the GPU driver and nvidia-container-toolkit is installed properly.There should be no problem to run python sample apps.

xhost + 

docker run --gpus all -it --rm --net=host --privileged -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY -w /opt/nvidia/deepstream/deepstream-7.0 nvcr.io/nvidia/deepstream:7.0-triton-multiarch

/opt/nvidia/deepstream/deepstream/user_deepstream_python_apps_install.sh --build-bindings -r master

cd /opt/nvidia/deepstream/deepstream-7.0/sources/deepstream_python_apps/apps/deepstream-test1

python3 deepstream_test_1.py  /opt/nvidia/deepstream/deepstream/samples/strea
ms/sample_720p.h264

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

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