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

fix ImportError: No module named gobject (for ROS kinetic, melodic) #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kochigami
Copy link

@kochigami kochigami commented Jul 21, 2022

Related issue: #5
(My environment is Ubuntu 18.04, ROS melodic, naoqi_dashboard from source (branch: kochigami:modify-for-kinetic))

Edit: I also confirmed this PR works in Ubuntu 16.04, ROS kinetic.

First, I searched for files which use gobject

kochigami@kochigami-desktop:~/catkin_ws/src/naoqi_dashboard$ grep "gobject" -rl /home/kochigami/catkin_ws/src/naoqi_dashboard/
/home/kochigami/catkin_ws/src/naoqi_dashboard/src/naoqi_dashboard/avahi.pyc
/home/kochigami/catkin_ws/src/naoqi_dashboard/src/naoqi_dashboard/avahi.py

and then I modified import gi to from gi.repository import GObject as gobject in avahi.py.
I referenced this page: Install gobject module?

With this PR, I confirmed the error disappeared when doing roslaunch naoqi_dashboard naoqi_dashboard.launch .

Also,

roslaunch pepper_bringup pepper_full.launch network_interface:=<My network interface>
roslaunch naoqi_dashboard naoqi_dashboard.launch 

made a NAOqi dashboard.

@kochigami kochigami changed the title fix ImportError: No module named gobject (for ROS melodic) fix ImportError: No module named gobject (for ROS kinetic, melodic) Jul 21, 2022
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

Successfully merging this pull request may close these issues.

1 participant