From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id aGu0DpK03GMNbgAAbAwnHQ (envelope-from ) for ; Fri, 03 Feb 2023 08:15:30 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id aDGUDpK03GPJvQAAauVa8A (envelope-from ) for ; Fri, 03 Feb 2023 08:15:30 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 187EA143F6 for ; Fri, 3 Feb 2023 08:15:30 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pNqHz-0002HY-PM; Fri, 03 Feb 2023 02:15:16 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pNqHm-0002DD-SI for bug-guix@gnu.org; Fri, 03 Feb 2023 02:15:08 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pNqHm-0001dC-DH for bug-guix@gnu.org; Fri, 03 Feb 2023 02:15:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pNqHm-0005Zb-9m for bug-guix@gnu.org; Fri, 03 Feb 2023 02:15:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#61236: ibus-speech-to-text engine fails to run (?) Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 03 Feb 2023 07:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61236 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Luis Felipe , 61236@debbugs.gnu.org Received: via spool by 61236-submit@debbugs.gnu.org id=B61236.167540849021387 (code B ref 61236); Fri, 03 Feb 2023 07:15:02 +0000 Received: (at 61236) by debbugs.gnu.org; 3 Feb 2023 07:14:50 +0000 Received: from localhost ([127.0.0.1]:36382 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pNqHa-0005Ys-0u for submit@debbugs.gnu.org; Fri, 03 Feb 2023 02:14:50 -0500 Received: from mailrelay.tugraz.at ([129.27.2.202]:4482) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pNqHX-0005Yi-Fw for 61236@debbugs.gnu.org; Fri, 03 Feb 2023 02:14:48 -0500 Received: from lprikler-laptop.ist.intra (gw.ist.tugraz.at [129.27.202.101]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4P7Rjv1QC1z1LM0R; Fri, 3 Feb 2023 08:14:42 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 mailrelay.tugraz.at 4P7Rjv1QC1z1LM0R DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1675408483; bh=I2nMoL7i9NbWX9ctfiE7rkauW5/71NCNSzTMrvONYqE=; h=Subject:From:To:Date:In-Reply-To:References:From; b=mzz/X00VPEnFJPiE6R/aPey6AHTJm66rn0fI2F7p3c80HgkioArlsZNWVQ79aq2YM 93nagoMlUwbA+9x198xieUrip/hRQ604zvCmbGYJkC9P31JeXVlHyUbBgn0olJ7GlC jeIbDvmSG2Cd6r9egaC5Z46g6Ht1VpTL5yb4Ozo4= Message-ID: <6eb9e3ea1dfaba8984a7d355af9677b62f583f57.camel@ist.tugraz.at> From: Liliana Marie Prikler Date: Fri, 03 Feb 2023 08:14:42 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.0 MIME-Version: 1.0 X-TUG-Backscatter-control: waObeELIUl4ypBWmcn/8wQ X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1675408530; a=rsa-sha256; cv=none; b=Vd3aY7E2bYwYzt4oajpvIEjZSvNUHMAOcGeTY8ut9ncyXh7MaF3uJaX0+f04o179QcTLnP tmQlzSCXUBAuIVMOcvAPEQ5oG4IlH+BFS1eWKNesp1Cy8KKtKkwZZVI+yT7UNPLRUOjyBk RP/Te0dEmgqvQhL7STHA7JgXmUcyIA8Ml47EDbaj8nRhcKVD8tZISIsIZUELXrBHqHz+8r +ELK34PWXZaqWQzHGbI3MbuiRtA97lIY3Y5VR3nbknCuaFEs7eBqCyVWLDayda5vcjTCii 3E41yBjIzgc5OmmzhLmJr0cn8RB81RTTpJR1VZAaWZ9VpD/nhKxzkNRR8c4MKg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b="mzz/X00V"; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=tugraz.at (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1675408530; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=I2nMoL7i9NbWX9ctfiE7rkauW5/71NCNSzTMrvONYqE=; b=qAYF6tmXCGo5MsCoIUM8J66ZS3+GMa92/GjATR5cFdbFksC9qCBy54WnzveQCrhxoiKGKz ksbB9dhmq4c6Oxfjrl4VfB88jEOKV5qjWPrjyvRftZndt7YsFwkwjdDPaMG/NnSmwMVTef DRZXouTK9NUeBRfXVi+6Q2SHBWi1TIEKeMJfLhzFN0JfuU8tdEES+yXDvQWX5MC0OAf0ZI XkQN4EHCNhRj4FIhx2RixDyWMSmRkIvK96ZVW7wvVO3BMKRYo4YEozeW5GISt85lNWsz1F TMJ1SsJ9otGB3n8cQdmbYtLGZh20JbWUJ/2HehEEOCh9AaWDLbJykN5VcLciSw== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: 5.73 X-Spam-Score: 5.73 X-Migadu-Queue-Id: 187EA143F6 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b="mzz/X00V"; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=tugraz.at (policy=none) X-TUID: C8f1602GUprO 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: >=20 > ~~~ > $ /gnu/store/HASH-ibus-speech-to-text-0.4.0/libexec/ibus-engine-stt - > -gapplication-replace -g > Traceback (most recent call last): > =C2=A0 File "/gnu/store/87dgkps8sp1jb4z2w4m1dnp0zvnq050l-ibus-speech-to- > text-0.4.0/share/ibus-stt/main.py", line 38, in > =C2=A0=C2=A0=C2=A0 from sttenginefactory import STTEngineFactory > =C2=A0 File "/gnu/store/87dgkps8sp1jb4z2w4m1dnp0zvnq050l-ibus-speech-to- > text-0.4.0/share/ibus-stt/sttenginefactory.py", line 26, in > =C2=A0=C2=A0=C2=A0 from sttengine import STTEngine > =C2=A0 File "/gnu/store/87dgkps8sp1jb4z2w4m1dnp0zvnq050l-ibus-speech-to- > text-0.4.0/share/ibus-stt/sttengine.py", line 29, in > =C2=A0=C2=A0=C2=A0 gi.require_version('Gtk', '4.0') > =C2=A0 File "/gnu/store/5ijhwr127smgxrp5dls7dxnr9jwa4m8p-python-pygobject= - > 3.40.1/lib/python3.9/site-packages/gi/__init__.py", line 129, in > require_version > =C2=A0=C2=A0=C2=A0 raise ValueError('Namespace %s not available for versi= on %s' % > ValueError: Namespace Gtk not available for version 4.0 > ~~~ >=20 > In the command above, HASH is the hash corresponding to `ibus-speech- > to-text-0.4.0` in my user profile. >=20 >=20 > ## WORKAROUND >=20 > The input method works after making sure `gtk` and `python-pygobject` > are in the environment where `ibus-engine-stt` is run: >=20 > 1. Start an augmented shell: >=20 > =C2=A0=C2=A0 guix shell ibus-speech-to-text gtk python-pygobject >=20 > 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): >=20 > =C2=A0=C2=A0 /gnu/store/HASH-ibus-speech-to-text-0.4.0/libexec/ibus-engin= e-stt > --gapplication-replace -g >=20 > 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 =E2=86=92 Genera= l =E2=86=92 > 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