L4T Jetpack Container Can not Import VPI

Hi,

I run a jetpack container on Jetson AGX Xavier as link bellow.

When I import vpi in python 3.8 console I get the following error:
ImportError: libnvsocsys.so: cannot open shared object file: No such file or directory

What should I do to make vpi work in python?

Thank you in advance…

Hello,

This topic may be better served in the Jetson AGX Xavier forum. I have moved it over for you.

1 Like

Hi,

Did you set up your environment with JetPack 5.0.2?
Since VPI 2.1 cannot work on the r34 BSP (DP).

Thanks.

Hi @AastaLLL ,

I set up envıronment wıth JetPack 5.0.2 and tried r34, r35 versions. I’m still getting the same error.

Thanks.

Hi,

We don’t meet the same error on l4t-jetpack:r35.1.0 container.
Could you check it again?

$ apt show nvidia-jetpack
Package: nvidia-jetpack
Version: 5.0.2-b231
Priority: standard
Section: metapackages
Maintainer: NVIDIA Corporation
Installed-Size: 199 kB
Depends: nvidia-jetpack-runtime (= 5.0.2-b231), nvidia-jetpack-dev (= 5.0.2-b231)
Homepage: http://developer.nvidia.com/jetson
Download-Size: 29.3 kB
APT-Sources: https://repo.download.nvidia.com/jetson/common r35.1/main arm64 Packages
Description: NVIDIA Jetpack Meta Package
$ sudo docker run -it --rm --net=host --runtime nvidia -e DISPLAY=$DISPLAY -v /tmp/.X11-unix/:/tmp/.X11
...
root@tegra-ubuntu:/# python3 
Python 3.8.10 (default, Jun 22 2022, 20:18:18) 
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import vpi
>>> vpi.__version__
'2.1.6'

Thanks.

Hi,

This is output when I run “apt show nvidia-jetpack”

Package: nvidia-jetpack
Version: 4.6.3-b17
Priority: standard
Section: metapackages
Maintainer: NVIDIA Corporation
Installed-Size: 199 kB
Depends: nvidia-l4t-jetson-multimedia-api (>> 32.7-0), nvidia-l4t-jetson-multimedia-api (<< 32.8-0), nvidia-cuda (= 4.6.3-b17), nvidia-tensorrt (= 4.6.3-b17), nvidia-nsight-sys (= 4.6.3-b17), nvidia-cudnn8 (= 4.6.3-b17), nvidia-opencv (= 4.6.3-b17), nvidia-container (= 4.6.3-b17), nvidia-vpi (= 4.6.3-b17)
Homepage: http://developer.nvidia.com/jetson
Download-Size: 29.4 kB
APT-Sources: https://repo.download.nvidia.com/jetson/t194 r32.7/main arm64 Packages
Description: NVIDIA Jetpack Meta Package

N: There are 2 additional records. Please use the ‘-a’ switch to see them.

Hi,

Based on your log, the device is set up with JetPack 4.6.3 which includes VPI 1.x.

VPI starts python support from VPI 2.x.
Please upgrade your device to JetPack 5.0.2 first.

Thanks.

Hi @AastaLLL ,

Thank you for the information.

Best.

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