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) NVIDIA RTX A3000
• DeepStream Version 6.2

I am trying to run Python binding app with this command
python3 deepstream_test_1.py /opt/nvidia/deepstream/deepstream-6.2/samples/streams/sample_720p.h264
Initially I got “No module pyds” then I did “pip install pyds”.
But after running above script I am getting below error.
batch_meta = pyds.gst_buffer_get_nvds_batch_meta(hash(gst_buffer))
AttributeError: module ‘pyds’ has no attribute ‘gst_buffer_get_nvds_batch_meta’

You need install python binding for deepstream, the binding can be downloaded from Release DeepStream_Python_Apps_Bindings_v1.1.6 · NVIDIA-AI-IOT/deepstream_python_apps · GitHub

Where can I install this? Inside Virtual environment?

It can be used in docker or native Linux.
If you are working in docker, you can use this convenient script to install python binding, refer here: DeepStream 6.2 is now available for download! - #3 by yingliu

Okay Thanks.
I did pip install pyds-1.1.6-py3-none-linux_x86_64.whl on my anaconda virtual environment.
It is working now.

1 Like

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