Getting error in Ds 4.0.1 ds-testapp-2 python

Attribute error : No module name Pyds.
and after installation of pyds using pip3 then getting error like.

Traceback (most recent call last):
  File "deepstream_test_2.py", line 61, in osd_sink_pad_buffer_probe
    batch_meta = pyds.gst_buffer_get_nvds_batch_meta(hash(gst_buffer))
AttributeError: module 'pyds' has no attribute 'gst_buffer_get_nvds_batch_meta'

please help me where I am wrong.

thanks.

you need to download DeepStream Python Apps and Bindings package - “ds_pybind_x.tbz2” from https://developer.nvidia.com/deepstream-download, and untar it as mentioned in HOW-TO -deepstream_python_apps/HOWTO.md at master · NVIDIA-AI-IOT/deepstream_python_apps · GitHub.

for your reference - https://devtalk.nvidia.com/default/topic/1066912/deepstream-sdk/deepstream-now-supports-python-/

Thanks mchi for response but I am not able to get ds_pybind_x.tbz2 , the link showing page not found.

It’s “DeepStream Python Apps and Bindings (Early Access Alpha)” as below

Traceback (most recent call last):
  File "deepstream_test_3.py", line 69, in tiler_src_pad_buffer_probe
batch_meta = pyds.gst_buffer_get_nvds_batch_meta(hash(gst_buffer))
AttributeError: module 'pyds' has no attribute 'gst_buffer_get_nvds_batch_meta'

I also have the same error and I did download DeepStream Python Apps from https://developer.nvidia.com/deepstream-download.

Hi vorapolbig,

Please help to open a new topic for your issue.

Thanks

HI , I get the same error , i resolved , just copy pyds.so under deepstream/deepstream-4.0/sources/python/bindings/jetson (or x86_64) to your working directory (next main.py)

4 Likes

I love you.

I am the same error with Deepstream 5.0 and don’t see binding directory

1 Like

/opt/nvidia/deepstream/deepstream/lib/pyds.so :)

1 Like

This resolved the issue for me, @Rabeb . Thank you!! :)