GNU bug report logs -
#64941
ModuleNotFoundError in ibus-anthy
Previous Next
Reported by: elaexuotee <at> wilsonb.com
Date: Sun, 30 Jul 2023 03:39:02 UTC
Severity: normal
Done: 宋文武 <iyzsong <at> envs.net>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 64941 in the body.
You can then email your comments to 64941 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#64941
; Package
guix
.
(Sun, 30 Jul 2023 03:39:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
elaexuotee <at> wilsonb.com
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Sun, 30 Jul 2023 03:39:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hey guix,
Anthy has been giving me grief lately. It's not showing up in ibus-setup's list
of input methods.
After futzing around with ibus and gsettings for a while, I noticed this:
$ guix shell --pure ibus ibus-anthy
$ ibus read-cache | xml sel -t -c '(//name[text()="org.freedesktop.IBus.Anthy"])[1]/..' -n
<component>
<name>org.freedesktop.IBus.Anthy</name>
<description>Anthy Component</description>
<version>1.5.14</version>
<license>GPL</license>
<author>Peng Huang <shawn.p.huang <at> gmail.com></author>
<homepage>https://github.com/ibus/ibus/wiki</homepage>
<exec>/gnu/store/bm3jm0d942ljzmbckbg4872cj70ljqzi-ibus-anthy-1.5.14/libexec/ibus-engine-anthy --ibus</exec>
<textdomain>ibus-anthy</textdomain>
<observed-paths>
<path mtime="1">/home/x/.guix-profile/share/ibus/component/anthy.xml</path>
<path mtime="0">~/.config/ibus-anthy/engines.xml</path>
<path mtime="1">/gnu/store/bm3jm0d942ljzmbckbg4872cj70ljqzi-ibus-anthy-1.5.14/share/ibus-anthy/engine/default.xml</path>
</observed-paths>
<engines>
</engines>
</component>
So anthy is definitely detected by ibus, but directly running that exec command
results in Python falling over:
$ /gnu/store/bm3jm0d942ljzmbckbg4872cj70ljqzi-ibus-anthy-1.5.14/libexec/ibus-engine-anthy --ibus
Traceback (most recent call last):
File "/gnu/store/bm3jm0d942ljzmbckbg4872cj70ljqzi-ibus-anthy-1.5.14/share/ibus-anthy/engine/main.py", line 44, in <module>
import factory
File "/gnu/store/bm3jm0d942ljzmbckbg4872cj70ljqzi-ibus-anthy-1.5.14/share/ibus-anthy/engine/factory.py", line 33, in <module>
import engine
File "/gnu/store/bm3jm0d942ljzmbckbg4872cj70ljqzi-ibus-anthy-1.5.14/share/ibus-anthy/engine/engine.py", line 59, in <module>
from anthyprefs import AnthyPrefs
ModuleNotFoundError: No module named 'anthyprefs'
Any idea on what might be going on? I have had this issue for about a month,
but the above was performed with
$ guix describe
Generation 16 Jul 30 2023 09:58:49 (current)
guix 6b903e2
repository URL: https://git.savannah.gnu.org/git/guix.git
branch: master
commit: 6b903e210462f7c1e428e0ded7e690d315e1f7a1
...
Information forwarded
to
bug-guix <at> gnu.org
:
bug#64941
; Package
guix
.
(Sun, 30 Jul 2023 04:39:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 64941 <at> debbugs.gnu.org (full text, mbox):
Some headway: It looks like anthyprefs sits under a different directory than
the engine script:
$ guix shell --pure ibus ibus-anthy
$ ls $GUIX_ENVIRONMENT/share/ibus-anthy/setup/
__pycache__/ _config.py anthyprefs.py main.py prefs.py setup.ui
$ ls $GUIX_ENVIRONMENT/share/ibus-anthy/engine/
__pycache__/ _config.py default.xml engine.py factory.py jastring.py
kana.py main.py romaji.py segment.py tables.py thumb.py
Manually running the engine with a PYTHONPATH fixes the error:
$ PYTHONPATH=$GUIX_ENVIRONMENT/share/ibus-anthy/setup $GUIX_ENVIRONMENT/libexec/ibus-engine-anthy
However, starting ibus-daemon with PYTHONPATH doesn't do anything. I'm guessing
that the environment variable doesn't propagate to engine exec commands. Maybe
a problem in the ibus-engine-anthy wrapper script?
Reply sent
to
宋文武 <iyzsong <at> envs.net>
:
You have taken responsibility.
(Sun, 30 Jul 2023 05:46:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
elaexuotee <at> wilsonb.com
:
bug acknowledged by developer.
(Sun, 30 Jul 2023 05:46:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 64941-done <at> debbugs.gnu.org (full text, mbox):
elaexuotee <at> wilsonb.com writes:
> Hey guix,
>
> Anthy has been giving me grief lately. It's not showing up in ibus-setup's list
> of input methods.
>
Hello, thanks for the report, fix now in master!
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 27 Aug 2023 11:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 299 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.