unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Liliana Marie Prikler <liliana.prikler@ist.tugraz.at>
To: Luis Felipe <luis.felipe.la@protonmail.com>, 61236@debbugs.gnu.org
Subject: bug#61236: ibus-speech-to-text engine fails to run (?)
Date: Fri, 03 Feb 2023 08:14:42 +0100	[thread overview]
Message-ID: <6eb9e3ea1dfaba8984a7d355af9677b62f583f57.camel@ist.tugraz.at> (raw)
In-Reply-To: <cNUgKfEsyUuuKv1CS1XmqPYhUPxfw1HnlVDxNq5ZgzR-zOOQuRxEC_Plyu1KLg2nWfJMwPdZgswNBW1a7tWvRYM8hA8HZOoIFfUEkVhluv0=@protonmail.com>

Am Donnerstag, dem 02.02.2023 um 19:46 +0000 schrieb Luis Felipe:
> Could it be that the speech-to-text engine is failing to run because
> it can't find the GTK 4.0 namespace through Gobject Introspection.
> For example, after being pointed to the following command by IBus STT
> developer
> (https://github.com/PhilippeRo/IBus-Speech-To-Text/discussions/7) I
> see the following error:
> 
> ~~~
> $ /gnu/store/HASH-ibus-speech-to-text-0.4.0/libexec/ibus-engine-stt -
> -gapplication-replace -g
> Traceback (most recent call last):
>   File "/gnu/store/87dgkps8sp1jb4z2w4m1dnp0zvnq050l-ibus-speech-to-
> text-0.4.0/share/ibus-stt/main.py", line 38, in <module>
>     from sttenginefactory import STTEngineFactory
>   File "/gnu/store/87dgkps8sp1jb4z2w4m1dnp0zvnq050l-ibus-speech-to-
> text-0.4.0/share/ibus-stt/sttenginefactory.py", line 26, in <module>
>     from sttengine import STTEngine
>   File "/gnu/store/87dgkps8sp1jb4z2w4m1dnp0zvnq050l-ibus-speech-to-
> text-0.4.0/share/ibus-stt/sttengine.py", line 29, in <module>
>     gi.require_version('Gtk', '4.0')
>   File "/gnu/store/5ijhwr127smgxrp5dls7dxnr9jwa4m8p-python-pygobject-
> 3.40.1/lib/python3.9/site-packages/gi/__init__.py", line 129, in
> require_version
>     raise ValueError('Namespace %s not available for version %s' %
> ValueError: Namespace Gtk not available for version 4.0
> ~~~
> 
> In the command above, HASH is the hash corresponding to `ibus-speech-
> to-text-0.4.0` in my user profile.
> 
> 
> ## WORKAROUND
> 
> The input method works after making sure `gtk` and `python-pygobject`
> are in the environment where `ibus-engine-stt` is run:
> 
> 1. Start an augmented shell:
> 
>    guix shell ibus-speech-to-text gtk python-pygobject
> 
> 2. Run `ibus-engine-stt` as follows (where HASH is the hash for ibus-
> speech-to-text-0.4.0 in the profile created for the shell in step
> one):
> 
>    /gnu/store/HASH-ibus-speech-to-text-0.4.0/libexec/ibus-engine-stt
> --gapplication-replace -g
> 
> After this, you should see INFO and DEBUG information printed out.
> You can now launch an application, place the caret in any text box,
> switch to speech-to-text input method, and start dictating to the
> machine. Selecting other languages in "IBus STT settings → General →
> Locale" also work (I tried dictating in English, Japanese and
> Spanish).
Since this workaround works for you, I am fairly certain that the
package is simply missing a wrapper for GI_TYPELIB_PATH.  IMHO we
should more generally add some code to handle that in glib-or-gtk-
build-system, but that'd be a core-updates change.

Cheers




  reply	other threads:[~2023-02-03  7:15 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 [this message]
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
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=6eb9e3ea1dfaba8984a7d355af9677b62f583f57.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).