src/setup.py requires incorrect versions of its dependencies
Created by: max-hk
There are errors in setup.py
which prevent setup window from loading
Reinstalling ibus-cangjie doesn't fix it, but deleting line 23 and 24 of setup.py
Running setup the first time
maxloh@max:~$ /usr/bin/ibus-setup-cangjie cangjie
Traceback (most recent call last):
File "/usr/bin/ibus-setup-cangjie", line 42, in <module>
from ibus_cangjie.setup import Setup
File "/usr/lib/python3/dist-packages/ibus_cangjie/setup.py", line 23, in <module>
gi.require_version('Gio','3.0')
File "/usr/lib/python3/dist-packages/gi/__init__.py", line 121, in require_version
(namespace, loaded_version))
ValueError: Namespace Gio is already loaded with version 2.0
After delete line 23,
maxloh@max:~$ /usr/bin/ibus-setup-cangjie cangjie
Traceback (most recent call last):
File "/usr/bin/ibus-setup-cangjie", line 42, in <module>
from ibus_cangjie.setup import Setup
File "/usr/lib/python3/dist-packages/ibus_cangjie/setup.py", line 24, in <module>
gi.require_version('GLib','3.0')
File "/usr/lib/python3/dist-packages/gi/__init__.py", line 121, in require_version
(namespace, loaded_version))
ValueError: Namespace GLib is already loaded with version 2.0
After delete both line 23 and 24, setup runs normally.