kochigami / naoqi_dashboard

Visualization (dashboard) for the Nao in ROS
0 stars 1 forks source link

add python-gobject to run_depend #7

Closed k-okada closed 2 years ago

k-okada commented 2 years ago

see https://github.com/k-okada/jsk_robot/pull/73#issuecomment-1214331696 the reason of ImportError: No module named gobject missing python-gobject

k-okada commented 2 years ago

current kochigami-develop branch (https://github.com/kochigami/naoqi_dashboard/tree/kochigami-develop) includes https://github.com/kochigami/naoqi_dashboard/pull/6/files

- import dbus, gobject, dbus.glib
+ import dbus, dbus.glib
+ from gi.repository import GObject as gobject

so we do not need to install python-gobject for this branch

ws_pepper_220808/src/naoqi_dashboard$ python
Python 2.7.17 (default, Jul  1 2022, 15:56:32) 
[GCC 7.5.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gobject
>>> gobject
<module 'gobject' from '/usr/lib/python2.7/dist-packages/gobject/__init__.pyc'>

ws_pepper_220808/src/naoqi_dashboard$ dpkg -S /usr/lib/python2.7/dist-packages/gobject/__init__.py
python-gobject-2: /usr/lib/python2.7/dist-packages/gobject/__init__.py

ws_pepper_220808/src/naoqi_dashboard$ python
Python 2.7.17 (default, Jul  1 2022, 15:56:32) 
[GCC 7.5.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from gi.repository import GObject as gobject
>>> gobject
<GObjectProxyModule <IntrospectionModule 'GObject' from '/usr/lib/x86_64-linux-gnu/girepository-1.0/GObject-2.0.typelib'>>

ws_pepper_220808/src/naoqi_dashboard$ dpkg -S /usr/lib/x86_64-linux-gnu/girepository-1.0/GObject-2.0.typelib
gir1.2-glib-2.0:amd64: /usr/lib/x86_64-linux-gnu/girepository-1.0/GObject-2.0.typelib