AttributeError: module 'pyds' has no attribute 'gst_buffer_get_nvds_batch_meta


When I execute the deepstream sample programs (python versions) provided in github, it displays the following error message.
Traceback (most recent call last):
File “”, line 62, 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’

Thanks in advance for any clues to resolve this issue.

A clear and concise description of the bug or issue.


TensorRT Version:
GPU Type: NVidia
Nvidia Driver Version:
CUDA Version: 11.3
CUDNN Version:
Operating System + Version: Ubuntu 20.04.2 LTS
Python Version (if applicable): 3.8.5
TensorFlow Version (if applicable):
PyTorch Version (if applicable):
Baremetal or Container (if container which image + tag):

Relevant Files

Please attach or include links to any models, data, files, or scripts necessary to reproduce your issue. (Github repo, Google Drive, Dropbox, etc.)

Steps To Reproduce

Please include:

  • Exact steps/commands to build your repro
  • Exact steps/commands to run your repro
  • Full traceback of errors encountered

Hi @Wolfgang.Bartelt,

We recommend you to post your concern on Deepstream forum to get better help.

Thank you.