From: Liliana Marie Prikler <liliana.prikler@ist.tugraz.at>
To: Luis Felipe <luis.felipe.la@protonmail.com>
Cc: 61236@debbugs.gnu.org
Subject: bug#61236: ibus-speech-to-text engine fails to run (?)
Date: Fri, 10 Feb 2023 07:42:36 +0100 [thread overview]
Message-ID: <92082d2eba7390e51b84f2d061f76c111649ca25.camel@ist.tugraz.at> (raw)
In-Reply-To: <MB-hrqN-_PH2hHlL-SN7GBo2iBRw0HRaNrLdzmL-8kWBszLpQbiWO9lfwVVJPU68CH7KMCY86S-GvUg0RAnJEIqn5tXIkwSRqfi9bD17DGQ=@protonmail.com>
Am Donnerstag, dem 09.02.2023 um 19:33 +0000 schrieb Luis Felipe:
> Hi Liliana,
>
> > > Remove path to ibus' typelibs directory from GUIX_PYTHONPATH,
> > > since it doesn't provide Python modules.
> >
>
> > I think you should also use getenv here. I think we should mimic
> > python-build-system here and add the output directory to
> > GUIX_PYTHONPATH before it gets wrapped.
>
> I'm not sure I understand this part. Do you mean something like this
> (set GUIX_PYTHONPATH in the let definitions)?:
>
> (let* ((out (assoc-ref outputs "out"))
> (ibus-stt-dir (string-append out "/share/ibus-stt"))
> (guix-pythonpath
> (setenv "GUIX_PYTHONPATH"
> (string-append ibus-stt-dir ":"
> (getenv "GUIX_PYTHONPATH")))))
> (for-each (lambda (prog)
> (wrap-program prog
> `("GST_PLUGIN_PATH" ":" prefix
> (,(string-append (assoc-ref inputs "gst-vosk")
> "/lib/gstreamer-1.0")
> ,(getenv "GST_PLUGIN_SYSTEM_PATH")))
> `("GUIX_PYTHONPATH" =
> (,(getenv "GUIX_PYTHONPATH")))
> `("GI_TYPELIB_PATH" =
> (,(getenv "GI_TYPELIB_PATH")))))
> (list (string-append out "/libexec/ibus-engine-stt")
> (string-append out "/libexec/ibus-setup-stt"))))
No, I meant more like
(add-after 'set-paths 'add-output-to-pythonpath
(lambda* (#:key outputs #:allow-other-keys)
(setenv ...)))
Confer %standard-phases in (guix build python-build-system) or
(guix build pyproject-build-system) for the ordering of phases there.
I'm fairly certain that GUIX_PYTHONPATH is configured rather soon-ish.
> In the meantime, I just sent a new version of the patch using git
> send-email to refresh my memory (haven't used it in years) and check
> whether automatic tasks are triggered in the infrastructure. The new
> patch amends the commit message and puts delimiters back. I will send
> another version later once I understand what is left to be done,
> together with the other patch to fix lint issues, as you suggested.
When you do, don't forget to CC <liliana.prikler@gmail.com>.
Thanks
next prev parent reply other threads:[~2023-02-10 6:43 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-02 19:46 bug#61236: ibus-speech-to-text engine fails to run (?) Luis Felipe via Bug reports for GNU Guix
2023-02-03 7:14 ` Liliana Marie Prikler
2023-02-03 17:07 ` Luis Felipe via Bug reports for GNU Guix
2023-02-07 16:41 ` Luis Felipe via Bug reports for GNU Guix
2023-02-08 7:32 ` Liliana Marie Prikler
2023-02-09 19:33 ` Luis Felipe via Bug reports for GNU Guix
2023-02-10 6:42 ` Liliana Marie Prikler [this message]
2023-02-09 19:38 ` bug#61236: [PATCH v1] gnu: ibus-speech-to-text: Fix execution of ibus-engine-stt sirgazil--- via Bug reports for GNU Guix
2023-02-10 18:49 ` bug#61236: [PATCH v2 1/2] " sirgazil--- via Bug reports for GNU Guix
2023-02-10 18:49 ` bug#61236: [PATCH v2 2/2] gnu: ibus-speech-to-text: Fix lint warnings sirgazil--- via Bug reports for GNU Guix
2023-02-12 7:53 ` Liliana Marie Prikler
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=92082d2eba7390e51b84f2d061f76c111649ca25.camel@ist.tugraz.at \
--to=liliana.prikler@ist.tugraz.at \
--cc=61236@debbugs.gnu.org \
--cc=luis.felipe.la@protonmail.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).