rad icon indicating copy to clipboard operation
rad copied to clipboard

ModuleNotFoundError: No module named 'glib'

Open pitosalas opened this issue 3 years ago • 2 comments

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!

pitosalas avatar Jun 15 '21 22:06 pitosalas

Have you tried importing it like this ?

from gi.repository import GLib as glib

NickNair avatar Aug 22 '21 15:08 NickNair

What was the solution to this. Facing the same issue.

sadiq26 avatar Jan 29 '23 15:01 sadiq26