My issue is similar to what was described here 3 years ago, but in my case on Arch Linux 5.3.7. Not certain this is the right place to ask though.
Motivation: I want to run ibus-setup
to correct what I believe is the key binding CTRL-SHIFT-E being hijacked by my GTK apps (Firefox + LibreOffice) to open an annoying emoji-picker window. Concretely I want to suppress what I think might be a default GTK key binding.
I thought I might try that with ibus-setup
.
$ ibus-setup
Traceback (most recent call last):
File "/usr/share/ibus/setup/main.py", line 33, in <module>
from gi import require_version as gi_require_version
ModuleNotFoundError: No module named 'gi'
I found that "gi" is part of package extra/python-gobject
which I installed, along with extra/python2-gobject
and extra/python-gobject2
for good measure.
I ran $ ibus-setup
again both in my global Python 3.7.4 env and in a Python 2.7.16 (pyenv) virtual environment, although the Python RTE outside the process(es) launched by ibus-setup
should not matter. Same error.
/usr/share/ibus/setup/main.py
is python2 code and I could not see anything blatantly wrong with how gi
is invoked.
I even tried the small python snippet here to check that gi
is correctly imported when called from python on my box, both in Python 3.7 and 2.7. Worked well, which means that gi
can be correctly imported from python
console.
I'm stumped. Any pointer anyone ?