ros-naoqi / naoqi_dashboard

Visualization (dashboard) for the Nao in ROS
4 stars 7 forks source link

ImportError: No module named gobject (ROS melodic) #5

Open kochigami opened 2 years ago

kochigami commented 2 years ago

When executing roslaunch naoqi_dashboard naoqi_dashboard.launch, I got the error saying ImportError: No module named gobject.

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

roslaunch naoqi_dashboard naoqi_dashboard.launch 
... logging to /home/kochigami/.ros/log/28a965e4-08ba-11ed-859d-0c9d921fe708/roslaunch-kochigami-desktop-29300.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://192.168.97.48:44021/

SUMMARY
========

CLEAR PARAMETERS
 * /naoqi_dashboard_aggregator/

PARAMETERS
 * /naoqi_dashboard_aggregator/analyzers/joystick/discard_stale: True
 * /naoqi_dashboard_aggregator/analyzers/joystick/find_and_remove_prefix: joy_node
 * /naoqi_dashboard_aggregator/analyzers/joystick/path: Joystick
 * /naoqi_dashboard_aggregator/analyzers/joystick/type: diagnostic_aggreg...
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/Camera/find_and_remove_prefix: naoqi_driver_camera
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/Camera/path: Camera
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/Camera/type: diagnostic_aggreg...
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/Computer/find_and_remove_prefix: naoqi_driver_comp...
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/Computer/path: Computer
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/Computer/type: diagnostic_aggreg...
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/Joints/find_and_remove_prefix: naoqi_driver_joints:
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/Joints/path: Joints
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/Joints/type: diagnostic_aggreg...
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/Network/find_and_remove_prefix: naoqi_driver_network
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/Network/path: Network
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/Network/type: diagnostic_aggreg...
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/PowerSystem/find_and_remove_prefix: naoqi_driver_batt...
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/PowerSystem/path: Power System
 * /naoqi_dashboard_aggregator/analyzers/naoqi/analyzers/PowerSystem/type: diagnostic_aggreg...
 * /naoqi_dashboard_aggregator/analyzers/naoqi/path: NAOqi
 * /naoqi_dashboard_aggregator/analyzers/naoqi/type: diagnostic_aggreg...
 * /naoqi_dashboard_aggregator/analyzers/tf/find_and_remove_prefix: tf_monitor:
 * /naoqi_dashboard_aggregator/analyzers/tf/path: TF
 * /naoqi_dashboard_aggregator/analyzers/tf/type: diagnostic_aggreg...
 * /rosdistro: melodic
 * /rosversion: 1.14.13

NODES
  /
    naoqi_dashboard (naoqi_dashboard/naoqi_dashboard)
    naoqi_dashboard_aggregator (diagnostic_aggregator/aggregator_node)
    tf_monitor (diagnostic_common_diagnostics/tf_monitor.py)

auto-starting new master
process[master]: started with pid [29310]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to 28a965e4-08ba-11ed-859d-0c9d921fe708
process[rosout-1]: started with pid [29321]
started core service [/rosout]
process[naoqi_dashboard-2]: started with pid [29329]
process[tf_monitor-3]: started with pid [29330]
process[naoqi_dashboard_aggregator-4]: started with pid [29331]
RosPluginProvider.load(naoqi_dashboard/NAOqiDashboard) exception raised in __builtin__.__import__(naoqi_dashboard.frame, [NAOqiDashboard]):
Traceback (most recent call last):
  File "/opt/ros/melodic/lib/python2.7/dist-packages/rqt_gui/ros_plugin_provider.py", line 80, in load
    attributes['module_name'], fromlist=[attributes['class_from_class_type']], level=0)
  File "/home/kochigami/catkin_ws/devel/lib/python2.7/dist-packages/naoqi_dashboard/__init__.py", line 34, in <module>
    exec(__fh.read())
  File "<string>", line 1, in <module>
  File "/home/kochigami/catkin_ws/src/naoqi_dashboard/src/naoqi_dashboard/frame.py", line 51, in <module>
    from .avahi import AvahiWidget
  File "/home/kochigami/catkin_ws/src/naoqi_dashboard/src/naoqi_dashboard/avahi.py", line 34, in <module>
    import dbus, gobject, dbus.glib
ImportError: No module named gobject

PluginManager._load_plugin() could not load plugin "naoqi_dashboard/NAOqiDashboard":
Traceback (most recent call last):
  File "/opt/ros/melodic/lib/python2.7/dist-packages/qt_gui/plugin_handler.py", line 102, in load
    self._load()
  File "/opt/ros/melodic/lib/python2.7/dist-packages/qt_gui/plugin_handler_direct.py", line 55, in _load
    self._plugin = self._plugin_provider.load(self._instance_id.plugin_id, self._context)
  File "/opt/ros/melodic/lib/python2.7/dist-packages/qt_gui/composite_plugin_provider.py", line 72, in load
    instance = plugin_provider.load(plugin_id, plugin_context)
  File "/opt/ros/melodic/lib/python2.7/dist-packages/qt_gui/composite_plugin_provider.py", line 72, in load
    instance = plugin_provider.load(plugin_id, plugin_context)
  File "/opt/ros/melodic/lib/python2.7/dist-packages/rqt_gui_py/ros_py_plugin_provider.py", line 61, in load
    return super(RosPyPluginProvider, self).load(plugin_id, plugin_context)
  File "/opt/ros/melodic/lib/python2.7/dist-packages/qt_gui/composite_plugin_provider.py", line 72, in load
    instance = plugin_provider.load(plugin_id, plugin_context)
  File "/opt/ros/melodic/lib/python2.7/dist-packages/rqt_gui/ros_plugin_provider.py", line 90, in load
    raise e
ImportError: No module named gobject

================================================================================REQUIRED process [naoqi_dashboard-2] has died!
process has died [pid 29329, exit code 1, cmd /home/kochigami/catkin_ws/src/naoqi_dashboard/scripts/naoqi_dashboard __name:=naoqi_dashboard __log:=/home/kochigami/.ros/log/28a965e4-08ba-11ed-859d-0c9d921fe708/naoqi_dashboard-2.log].
log file: /home/kochigami/.ros/log/28a965e4-08ba-11ed-859d-0c9d921fe708/naoqi_dashboard-2*.log
Initiating shutdown!
================================================================================
[naoqi_dashboard_aggregator-4] killing on exit
[tf_monitor-3] killing on exit
[naoqi_dashboard-2] killing on exit
[rosout-1] killing on exit
[master] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done