unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: elaexuotee--- via Bug reports for GNU Guix <bug-guix@gnu.org>
To: 64941@debbugs.gnu.org
Subject: bug#64941: ModuleNotFoundError in ibus-anthy
Date: Sun, 30 Jul 2023 13:38:34 +0900	[thread overview]
Message-ID: <2CKI8V0YGB0D1.2R5HK698GOMLY@wilsonb.com> (raw)
In-Reply-To: <3QZVAQFC1VXS5.1YT80WSX2ORC8@wilsonb.com>

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	other threads:[~2023-07-30  4:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-30  3:38 bug#64941: ModuleNotFoundError in ibus-anthy elaexuotee--- via Bug reports for GNU Guix
2023-07-30  4:38 ` elaexuotee--- via Bug reports for GNU Guix [this message]
2023-07-30  5:45 ` 宋文武 via Bug reports for GNU Guix

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2CKI8V0YGB0D1.2R5HK698GOMLY@wilsonb.com \
    --to=bug-guix@gnu.org \
    --cc=64941@debbugs.gnu.org \
    --cc=elaexuotee@wilsonb.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).