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

add python-gobject to run_depend #7

Closed
wants to merge 1 commit into from

Conversation

k-okada
Copy link

@k-okada k-okada commented Aug 15, 2022

see k-okada/jsk_robot#73 (comment)
the reason of ImportError: No module named gobject missing python-gobject

@k-okada
Copy link
Author

k-okada commented Aug 15, 2022

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

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