Error on "import pyds": ImportError: libnvbufsurface.so.1.0.0: cannot open shared object file: No such file or directory

GPU RTX 3080; Ubuntu 20.04

Previously I completed the course “Building Video AI Applications at the Edge on Jetson Nano” on a Jetson device and nothing went wrong. Now I’m using RTX 3080 but I got a issue on “import pyds”, details as follows:

1. I followed the instructions
echo "sudo docker run --runtime nvidia -it --rm --network host
-v /tmp/.X11-unix/:/tmp/.X11-unix
-v /tmp/argus_socket:/tmp/argus_socket
-v ~/my_apps:/dli/task/my_apps
–device /dev/video0
nvcr.io/nvidia/dli/dli-nano-deepstream:v2.0.0-DS6.0.1 " > ds_docker_run.sh

chmod +x ds_docker_run.sh

./ds_docker_run.sh"

and logged in to the jupyterLab server.

2. In 01-ObjDetect.ipynb, I run the cell
“# Check usage of the test1 app with the help option
!cd $PYTHON_APPS/deepstream-test1-rtsp-out
&& python3 deepstream_test1_rtsp_out.py --help”

and got the following error message:
"Traceback (most recent call last):
File “deepstream_test1_rtsp_out.py”, line 31, in
import pyds
ImportError: libnvbufsurface.so.1.0.0: cannot open shared object file: No such file or directory
"

I found some similar issues on the forums but none of them worked for my case.
Solutions I tried:

  1. https://forums.developer.nvidia.com/t/no-module-named-pyds/123722
    After changing “import pyds” to “from bindings.x86_64 import pyds”, I got error “cannot find bindings”
  2. https://github.com/NVIDIA-AI-IOT/deepstream_python_apps/blob/master/bindings/README.md
    I followed the instructions but still not working.
  3. I can find pyds.so under “~/.local/lib/python3.8/site-packages”. (I installed it using https://github.com/NVIDIA-AI-IOT/deepstream_python_apps/releases/tag/v1.1.2)

I got no problem on my Nano device (Ubuntu 18.04), but it cannot go through on RTX. I saw the course uses Deepstream 6.0.1. Is it because Deepstream 6.0.1 doesn’t work on Ubuntu 20.04? I’m really confused…

Can you get the output of file ~/.local/lib/python3.8/dist-packages/pyds.so and ldd ~/.local/lib/python3.8/dist-packages/pyds.so

“file pyds.so” output:
pyds.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=1691ddbaa205a53eb0c0d2bc891317baedf65bc2, not stripped

“ldd pyds.so” output:
linux-vdso.so.1 (0x00007fffbe9cc000)|
libpython3.8.so.1.0 => /lib/x86_64-linux-gnu/libpython3.8.so.1.0 (0x00007fd31db31000)|
libgstreamer-1.0.so.0 => /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0 (0x00007fd31d9ea000)|
libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007fd31d8c1000)|
/opt/nvidia/deepstream/deepstream-6.1/lib/libnvds_meta.so (0x00007fd31d8b6000)|
/opt/nvidia/deepstream/deepstream-6.1/lib/libnvdsgst_meta.so (0x00007fd31d8af000)|
/opt/nvidia/deepstream/deepstream-6.1/lib/libnvbufsurface.so (0x00007fd31d8a6000)|
libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fd31d6c2000)|
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fd31d6a7000)|
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fd31d4b5000)|
libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007fd31d487000)|
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fd31d46b000)|
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fd31d448000)|
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fd31d440000)|
libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007fd31d43b000)|
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fd31d2ec000)|
libgobject-2.0.so.0 => /lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0x00007fd31d28c000)|
libgmodule-2.0.so.0 => /lib/x86_64-linux-gnu/libgmodule-2.0.so.0 (0x00007fd31d286000)|
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007fd31d213000)|
libcudart.so.11.0 => /usr/local/cuda-11.6/lib64/libcudart.so.11.0 (0x00007fd31cf6d000)|
libnvbuf_fdmap.so => ///opt/nvidia/deepstream/deepstream-6.1/lib/libnvbuf_fdmap.so (0x00007fd31cf67000)|
/lib64/ld-linux-x86-64.so.2 (0x00007fd31e225000)|
libffi.so.7 => /lib/x86_64-linux-gnu/libffi.so.7 (0x00007fd31cf5b000)|
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fd31cf51000)|
Capture

Oh, this course is for Jetson devices, not for dGPU. I do not think you can use it for dGPU.

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.