Could you share how you setup the VPI package?
We tested the command in our Orin Nano and it can work correctly.
$ python3
Python 3.8.10 (default, May 26 2023, 14:05:08)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import vpi
>>> i = vpi.Image((64,64), vpi.Format.RGB8)
>>> i
<vpi.Image 64x64 VPI_IMAGE_FORMAT_RGB8>
The Nano is installed using SDK Manager. VPI should be included in that install right? I could attempt a new reinstall and see if there is any change.
Result: I did a clean installation and I get the same error.
Edit: It works when I used the SD card image. (Stopped working after reboot.)
Edit 2: Did another reinstallation with SDK Manager to SSD. This time I included DeepStream. Now it works.
Edit 3: Restarted it and now it is the same error again.
Edit 4: Issue found. It works when I try it in a terminal on the Nano directly. It does not work when doing it over a SSH session. (I primarily work over SSH to the Nano as a remote system.)