Ai_Demos_RPi icon indicating copy to clipboard operation
Ai_Demos_RPi copied to clipboard

Pyrealsense2 wrappers not transferred to /usr/local/lib after install

Open TCIII opened this issue 2 years ago • 2 comments

The six pyrealsense2 wrappers are stored here: /usr/lib/python3/dist-packages/pyrealsense2 when they should have been stored in /usr/lib/python3.7/dist-packages/pyrealsense2 where there is a python program to import them to /usr/local/lib.

You can manually transfer them to /usr/local/lib from /usr/lib/python3/dist-packages/pyrealsense2 using the cp copy function.

TCIII avatar Jul 18 '21 18:07 TCIII

Similar here. In my case the files finish here: /usr/local/lib/python3.6/pyrealsense2 , and It was not possible to import the library. After moving the folder to /dist-packages you can import the library but the .so files need to be where your script is , as recomended here

RP4 + Ubuntu server 18.04 ubuntu@ubuntu:/usr/local/lib/pyrealsense2$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.5 LTS Release: 18.04 Codename: bionic ubuntu@ubuntu:/usr/local/lib/pyrealsense2$ uname -r 5.4.0-1041-raspi ubuntu@ubuntu:/usr/local/lib/pyrealsense2$ dpkg --print-architecture arm64

Camilochiang avatar Oct 05 '21 06:10 Camilochiang

thanks its work for me

sanxincao avatar Jun 21 '22 11:06 sanxincao