rad
rad copied to clipboard
ModuleNotFoundError: No module named 'glib'
Hi! It looks like you are in the middle of doing the same thing that I am, but two weeks ahead or so. I am trying to use the Linorobot stack on a Raspberry Pi 3+ running Ubuntu 20.02 server. (I know you are not on ubuntu but let's plow on.) I've solved many of the problems caused by the Python 3 requirement but I am a little stuck on the error above:
rosrun lino_udev lino_udev.py
Traceback (most recent call last):
File "/home/ubuntu/linorobot_ws/src/linorobot_src/lino_udev/scripts/lino_udev.py", line 2, in <module>
import glib
ModuleNotFoundError: No module named 'glib'
Do you know what the solution is? Thanks!
Have you tried importing it like this ?
from gi.repository import GLib as glib
What was the solution to this. Facing the same issue.