Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'glib' #68

Open
pitosalas opened this issue Jun 15, 2021 · 2 comments
Open

ModuleNotFoundError: No module named 'glib' #68

pitosalas opened this issue Jun 15, 2021 · 2 comments

Comments

@pitosalas
Copy link

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!

@NickNair
Copy link

NickNair commented Aug 22, 2021

Have you tried importing it like this ?

from gi.repository import GLib as glib

@sadiq26
Copy link

sadiq26 commented Jan 29, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants