Libnvdla_compiler.so: cannot open shared object file: No such file or directory

Hello everyone,
I’m facing some issues while trying to build my image through a Dockerfile, but my build fails with the following error:
“libnvdla_compiler.so: cannot open shared object file: No such file or directory”

I’m using an Jetson AGX (32GB) as host machine.
The starting image (FROM tag on my dockerfile) is “nvcr.io/nvidia/l4t-pytorch:r35.1.0-pth1.12-py3”, and I want to use also the torch2trt module, following the instructions here.
But when I try to execute the line

python3 setup.py install --plugins

I got the error:

Traceback (most recent call last):
  File "setup.py", line 2, in <module>
    import tensorrt
  File "/usr/lib/python3.8/dist-packages/tensorrt/__init__.py", line 68, in <module>
    from .tensorrt import *
ImportError: libnvdla_compiler.so: cannot open shared object file: No such file or directoryre

By any chance could you please support me?

1 Like

Hi,

We are moving this post to the Jetson AGX forum to get better help.

Thank you.

Hi @Kevin_P, can you set your default docker runtime to ‘nvidia’ before building your dockerfile? Like shown here: https://github.com/dusty-nv/jetson-containers#docker-default-runtime

Also, can you confirm that you have these drivers/libraries on your device? (outside of container)

ls -ll /usr/lib/aarch64-linux-gnu/tegra/libnvdla*
-rw-r--r-- 1 root root 5954264 May 17  2022 /usr/lib/aarch64-linux-gnu/tegra/libnvdla_compiler.so
-rw-r--r-- 1 root root  392488 May 17  2022 /usr/lib/aarch64-linux-gnu/tegra/libnvdla_runtime.so
2 Likes
  1. Try adding a file /etc/ld.so.conf.d/nvidia-tegra.conf with the following content

/usr/lib/aarch64-linux-gnu/tegra

  1. run “sudo ldconfig”

Now try again your command

1 Like

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