From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lee Thomas Newsgroups: gmane.lisp.guile.bugs Subject: bug#57379: GUI toolkit for Guile 3.0? Date: Fri, 26 Aug 2022 13:03:09 -0700 Message-ID: References: <87mtbtrffm.fsf@tsyesika.se> <20220824170318.70af5603@aicha> <20220825232724.6a4191ef@aicha> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000d5d9d705e72a672b" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18876"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Jessica Tallon , 57379@debbugs.gnu.org To: David Pirotte Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Fri Aug 26 22:05:05 2022 Return-path: Envelope-to: guile-bugs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oRfZg-0004j9-T2 for guile-bugs@m.gmane-mx.org; Fri, 26 Aug 2022 22:05:05 +0200 Original-Received: from localhost ([::1]:58906 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oRfZf-0001SK-Ki for guile-bugs@m.gmane-mx.org; Fri, 26 Aug 2022 16:05:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44320) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oRfYg-0000cv-Gd for bug-guile@gnu.org; Fri, 26 Aug 2022 16:04:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36597) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oRfYg-00037A-89 for bug-guile@gnu.org; Fri, 26 Aug 2022 16:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oRfYf-0008OM-Rj for bug-guile@gnu.org; Fri, 26 Aug 2022 16:04:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lee Thomas Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Fri, 26 Aug 2022 20:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57379 X-GNU-PR-Package: guile Original-Received: via spool by 57379-submit@debbugs.gnu.org id=B57379.166154420832217 (code B ref 57379); Fri, 26 Aug 2022 20:04:01 +0000 Original-Received: (at 57379) by debbugs.gnu.org; 26 Aug 2022 20:03:28 +0000 Original-Received: from localhost ([127.0.0.1]:54579 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oRfY8-0008NY-1H for submit@debbugs.gnu.org; Fri, 26 Aug 2022 16:03:28 -0400 Original-Received: from mail-lj1-f181.google.com ([209.85.208.181]:42976) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oRfY6-0008NL-FN for 57379@debbugs.gnu.org; Fri, 26 Aug 2022 16:03:27 -0400 Original-Received: by mail-lj1-f181.google.com with SMTP id x24so2559094lji.9 for <57379@debbugs.gnu.org>; Fri, 26 Aug 2022 13:03:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=+otBGUcSchyIPVe+eTDcW+3t6EECBFk2Ll/DNfIbyXk=; b=c9kvNrkW6fJfDmJt/uVNGNS+VTiL6Zi38jSAfhdNYmxw2MKfCA78DkJesVV+okymNI GjgubfKo23icY5KOzzlV+KwPU6jWoodo6bPtmNGauFGfNn8wKOrfRytZyQ2y9eTd4gJV 9Y/4m2wBerIXtWyLg89ignkQxC05qZauBzPUNVffaXvzCFotFOAqTmhOEadOKhdNnRNJ P28bhAy/LADGT9qusn3sQQla8jlYsP82S1y5LboUCrkINtgGnL209rRTtRamMkiFU2XI HyP10lzqRQEHnt2GWlRGebPTwxbBCrvnvaiHwCn2auHj6WN5NKYIFDWEVfwygjvthpVE N1NQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=+otBGUcSchyIPVe+eTDcW+3t6EECBFk2Ll/DNfIbyXk=; b=nZn/B/hc9XUUCPCivYUKFW16dcZQeCzZJkx9PxLqJQgUU3EafZr8PcSr/b0mtup41r RkXWf0ZKi6/Y74nxhdhfd+UeP7ICQySZ4vn4SW8xwjxNcYsQzlQtYRIiF702dqWVOgGi uTWRObgLW/uUuurwfVbKBEDLzt+5Kjf+MjIj02/sE5+NaCXHeEmtVeOFXRmTVkF4nQgq rBiC8bdPQrnM6Nzez5GTbp5HPEuKp75PdYhocNaDppr7gAhmxdjIVTlMXmx7oSWYaJzM 8KrjNC+Yost+zWKYGZyW+GH6cM9j5NXV3gMvEkwHF7WENspiX/J1ru45aKIPZWD0NekH Exsw== X-Gm-Message-State: ACgBeo2CuEAZ1QmOZWtk6gc3XBa+DqVz/sHJXt4BmKdnjxXdupSqcmT+ rcRbvt3CHZFyhX6n4Uob5Fsuxx/mKZRWw7a+0Q0= X-Google-Smtp-Source: AA6agR4ujRyNtWiNX0Bnpo6jUX/s17dfSw5cIwNEy7/MT6Zck9dE12a2kX6ec8QLfYybf/DtR0WnwbozOrJFzCXyHuQ= X-Received: by 2002:a2e:a5c3:0:b0:261:ac2d:2820 with SMTP id n3-20020a2ea5c3000000b00261ac2d2820mr2881142ljp.243.1661544200262; Fri, 26 Aug 2022 13:03:20 -0700 (PDT) In-Reply-To: <20220825232724.6a4191ef@aicha> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.io gmane.lisp.guile.bugs:10334 Archived-At: --000000000000d5d9d705e72a672b Content-Type: text/plain; charset="UTF-8" Thank you greatly, David. I cleaned up my guix environment and reinstalled G-Golf, and now the hello world script runs but hangs after these errors: (g-golf-hello-world.scm:494347): GLib-GObject-WARNING **: 12:37:46.818: cannot register existing type 'GdkPixbuf' (g-golf-hello-world.scm:494347): GLib-GObject-CRITICAL **: 12:37:46.818: g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed (g-golf-hello-world.scm:494347): GLib-GObject-CRITICAL **: 12:37:46.818: g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed (g-golf-hello-world.scm:494347): GLib-CRITICAL **: 12:37:46.818: g_once_init_leave: assertion 'result != 0' failed So I assume I haven't fixed the guix environment completely yet, but I'm still working on that. The guix toolset is advertised to manage all the interdependencies, but I'm not certain that it works in every situation. I'll keep trying, though. Thanks again. On Thu, Aug 25, 2022 at 7:27 PM David Pirotte wrote: > Hello Lee, > > > David, I was able to install G-Golf via guix, and that also worked > > with the "use-modules" portion of your "Hello, World!" example. > > > HOWEVER (alas), both examples fail on the "use-typelibs" line, with: > > Typelib file for namespace 'Gtk', version '4.0' not found > > This is a guix 'problem' [1], please try to get some help on guix-user > ML, or if you have on irc: irc.libera.chat (channel) #guix > > > In trying to resolve that error myself, I found that the guile manual > > has no entry for "use-typelib" in the Procedures Index. :-/ I'll > > submit that bug in a new email, after confirming there's not already > > a thread. > > No, there is no 'use-typelib, as you can read in each example, the > procedure call is: > > (g-irepository-require "Gtk" #:version "4.0") > [ the manual has an entry for g-irepository-require > > So, with this in mind, the error message is 'correct'. Note that it > would also fail if there is a tipo in the namespace, or if you refer to > a version that does not exist ... > > > Oh, and David, https://www.gnu.org/software/g-golf/index.html has a > > link for Typelib that 404s. I would suggest a fix, but I couldn't > > easily find one, sorry. > > Thanks, I'll look at this. > > David > > [1] I mean you need to find the name of the package and install > it, this is not a G-Golf dependency, it is only needed if you wish t > run those examples, which are mini apps, not part of the G-Golf core > lib ... so to speak, it is 'user dependency' ... I think guix has Gtk-4+ > packages, including the package that 'has' the typelib, but I don't use > guix, so i am unable to give you precise guidance ... the #guix channel > is extremely responsive, helpful, and very friendly, so don't be > scared to ask ... > --000000000000d5d9d705e72a672b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thank=C2=A0you greatly, David. I cleaned up my guix enviro= nment and reinstalled G-Golf, and now the hello world script runs but hangs= after these errors:

(g-golf-he= llo-world.scm:494347): GLib-GObject-WARNING **: 12:37:46.818: cannot regist= er existing type 'GdkPixbuf'

(g-golf-hello-world.scm:494347)= : GLib-GObject-CRITICAL **: 12:37:46.818: g_type_add_interface_static: asse= rtion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed

(g-g= olf-hello-world.scm:494347): GLib-GObject-CRITICAL **: 12:37:46.818: g_type= _add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_ty= pe)' failed

(g-golf-hello-world.scm:494347): GLib-CRITICAL **: 1= 2:37:46.818: g_once_init_leave: assertion 'result !=3D 0' failed

So I assume I haven't fixed the guix environmen= t completely yet, but I'm still working on that. The guix toolset is ad= vertised to manage all the interdependencies, but I'm not certain that = it works in every situation. I'll keep trying, though. Thanks again.

On Thu, Aug 25, 2022 at 7:27 PM David Pirotte <david@altosw.be> wrote:
Hello Lee,

> David, I was able to install G-Golf via guix, and that also worked
> with the "use-modules" portion of your "Hello, World!&q= uot; example.

> HOWEVER (alas), both examples fail on the "use-typelibs" lin= e, with:
> Typelib file for namespace 'Gtk', version '4.0' not fo= und

This is a guix 'problem' [1], please try to get some help on guix-u= ser
ML, or if you have on irc:=C2=A0 =C2=A0 =C2=A0 irc.libera.chat (channel) #g= uix

> In trying to resolve that error myself, I found that the guile manual<= br> > has no entry for "use-typelib" in the Procedures Index. :-/= =C2=A0 I'll
> submit that bug in a new email, after confirming there's not alrea= dy
> a thread.

No, there is no 'use-typelib, as you can read in each example, the
procedure call is:

=C2=A0 =C2=A0 =C2=A0 =C2=A0 (g-irepository-require "Gtk" #:versio= n "4.0")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 [ the manual has an entry for g-irepository-req= uire

So, with this in mind, the error message is 'correct'. Note that it=
would also fail if there is a tipo in the namespace, or if you refer to
a version that does not exist ...

> Oh, and David, https://www.gnu.org/software/g-gol= f/index.html has a
> link for Typelib that 404s. I would suggest a fix, but I couldn't<= br> > easily find one, sorry.

Thanks, I'll look at this.

David

[1]=C2=A0 =C2=A0 =C2=A0I mean you need to find the name of the package and = install
it, this is not a G-Golf dependency, it is only needed if you wish t
run those examples, which are mini apps, not part of the G-Golf core
lib ... so to speak, it is 'user dependency' ... I think guix has G= tk-4+
packages, including the package that 'has' the typelib, but I don&#= 39;t use
guix, so i am unable to give you precise guidance ... the #guix channel
is extremely responsive, helpful, and very friendly, so don't be
scared to ask ...
--000000000000d5d9d705e72a672b--