AttributeError: module 'pyds' has no attribute 'NVBUF_MEM_CUDA_UNIFIED' in Deepstream 6.4

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) NVIDIA GeForce RTX 2050
• DeepStream Version 6.4
• NVIDIA GPU Driver Version (valid for GPU only) 535.146.02

I have updated my Deepstream to version 6.4, i have also upgraded the following:

  • Ubuntu 22.04
  • GStreamer 1.20.3
  • NVIDIA driver 535.104.12
  • CUDA 12.2
  • TensorRT 8.6.1.6

i am getting following error after updation:

Traceback (most recent call last):
File “emotion.py”, line 578, in
sys.exit(main(sys.argv))
File “emotion.py”, line 521, in main
mem_type = int(pyds.NVBUF_MEM_CUDA_UNIFIED)
AttributeError: module ‘pyds’ has no attribute ‘NVBUF_MEM_CUDA_UNIFIED’

Following is the code snippet where the error encounters:
if not is_aarch64():
# Use CUDA unified memory in the pipeline so frames
# can be easily accessed on CPU in Python.
mem_type = int(pyds.NVBUF_MEM_CUDA_UNIFIED)
streammux.set_property(“nvbuf-memory-type”, mem_type)
nvvidconv.set_property(“nvbuf-memory-type”, mem_type)
nvvidconv1.set_property(“nvbuf-memory-type”, mem_type)
tiler.set_property(“nvbuf-memory-type”, mem_type)

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

To confirm that pyds has been installed correctly, can you run deepstream_test_1.py correctly?

If it is normal, you can try to delete the .pyc file of the custom module

find . -name "*.pyc" -exec rm -f {} \

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