Error while running the Demo_Solo12.py

Hello, I successfully ran the SDK example and was able to communicate the PC with the masterboard using: sudo ./example INTERFACE, but if I don’t run it with sudo I get the following error:

Okay, so I wanted to test de Odri_Interface and execute de Demo_SOLO12.py, but when I tried to run it without sudo I got the same error. Okay, simple, just run it with sudo, well that is the problem when I try to run it with sudo I get the following error:

Traceback (most recent call last):
File “demo_solo12.py”, line 10, in
import libodri_control_interface_pywrap as oci
ModuleNotFoundError: No module named ‘libodri_control_interface_pywrap’

I tried to add to the Path the library that is located in /build/odri_control_interface, but it still doesn’t work. Maybe the best is to communicate the PC to the masterboard without the need to use sudo, but I can’t figure out how to do that.

Hi Leonardo,
I had the same issue and here is how I run demo solo program:

sudo -E PYTHONPATH=$PYTHONPATH PATH=$PATH LD_LIBRARY_PATH=$LD_LIBRARY_PATH python3 demo_solo12.py

I am using virtual environment + ros2 on top of it, but I think this command is worth giving a shot.

1 Like