unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#56223: h-client not running with a host distribution
@ 2022-06-25 21:15 Denis 'GNUtoo' Carikli
  2022-06-26 10:39 ` Josselin Poiret via Bug reports for GNU Guix
  0 siblings, 1 reply; 3+ messages in thread
From: Denis 'GNUtoo' Carikli @ 2022-06-25 21:15 UTC (permalink / raw)
  To: 56223, maxim.cournoyer

[-- Attachment #1: Type: text/plain, Size: 2497 bytes --]

Hi,

After having done a 'guix pull', I added h-client to a system image made
with guix system image, and when running that image I could launch
h-client with any of the following command lines:
$ h-client
$ sudo -E h-client

However with Parabola i686 (also after having done a 'guix pull',
h-client doesn't work anymore, and it gives the following error:
> Traceback (most recent call last):
>   File "/gnu/store/vbw6w6527y2xmxnyb4v4s9hp5ydk7i1d-h-client-0.0a0-1.e6c78b1/bin/.h-client-real", line 33, in <module>
>     sys.exit(load_entry_point('hclient==0.0a0.dev0', 'console_scripts', 'h-client')())
>   File "/gnu/store/vbw6w6527y2xmxnyb4v4s9hp5ydk7i1d-h-client-0.0a0-1.e6c78b1/bin/.h-client-real", line 25, in importlib_load_entry_point
>     return next(matches).load()
>   File "/gnu/store/x5qnvlqgcb73nksrzavpq8pg9xgrfwqv-python-3.9.9/lib/python3.9/importlib/metadata.py", line 77, in load
>     module = import_module(match.group('module'))
>   File "/gnu/store/x5qnvlqgcb73nksrzavpq8pg9xgrfwqv-python-3.9.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
>     return _bootstrap._gcd_import(name[level:], package, level)
>   File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
>   File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
>   File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
>   File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
>   File "<frozen importlib._bootstrap_external>", line 850, in exec_module
>   File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
>   File "/gnu/store/vbw6w6527y2xmxnyb4v4s9hp5ydk7i1d-h-client-0.0a0-1.e6c78b1/lib/python3.9/site-packages/hclient/gtkclient.py", line 20, in <module>
>     gi.require_version('GdkPixbuf', '2.0')
>   File "/gnu/store/8yca9x2l0k0m5726m2hs2mpdma14h5yr-python-pygobject-3.40.1/lib/python3.9/site-packages/gi/__init__.py", line 126, in require_version
>     raise ValueError('Namespace %s not available' % namespace)
> ValueError: Namespace GdkPixbuf not available

I vaguely remember that I could launch it on top of Parabola before, so
it seems to be related to recent updates to the h-client packages
(through before sending data didn't always work due to a bug in the
server that is now fixed).

PS: I've added Maxim in To as pers is the last person who worked on
    improving the h-client package, so maybe pers has more knowledge
    than me on that.

Denis.

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#56223: h-client not running with a host distribution
  2022-06-25 21:15 bug#56223: h-client not running with a host distribution Denis 'GNUtoo' Carikli
@ 2022-06-26 10:39 ` Josselin Poiret via Bug reports for GNU Guix
  2022-06-28  4:53   ` Maxim Cournoyer
  0 siblings, 1 reply; 3+ messages in thread
From: Josselin Poiret via Bug reports for GNU Guix @ 2022-06-26 10:39 UTC (permalink / raw)
  To: Denis 'GNUtoo' Carikli, 56223, maxim.cournoyer

Hello Denis, 

Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> writes:
>> ValueError: Namespace GdkPixbuf not available
>
> I vaguely remember that I could launch it on top of Parabola before, so
> it seems to be related to recent updates to the h-client packages
> (through before sending data didn't always work due to a bug in the
> server that is now fixed).

Seems to me that gdk-pixbuf will need to be propagated, which will also
in turn propagate glib and set the search-path `GIO_EXTRA_MODULES` so
that GdkPixbuf can be found.

Best,
-- 
Josselin Poiret




^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#56223: h-client not running with a host distribution
  2022-06-26 10:39 ` Josselin Poiret via Bug reports for GNU Guix
@ 2022-06-28  4:53   ` Maxim Cournoyer
  0 siblings, 0 replies; 3+ messages in thread
From: Maxim Cournoyer @ 2022-06-28  4:53 UTC (permalink / raw)
  To: Josselin Poiret; +Cc: 56223-done, Denis 'GNUtoo' Carikli

Hello,

This should be fixed in 8d810c209f18ffb635a1db2488a939543c6f060f.

Josselin Poiret <dev@jpoiret.xyz> writes:

> Hello Denis, 
>
> Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> writes:
>>> ValueError: Namespace GdkPixbuf not available
>>
>> I vaguely remember that I could launch it on top of Parabola before, so
>> it seems to be related to recent updates to the h-client packages
>> (through before sending data didn't always work due to a bug in the
>> server that is now fixed).
>
> Seems to me that gdk-pixbuf will need to be propagated, which will also
> in turn propagate glib and set the search-path `GIO_EXTRA_MODULES` so
> that GdkPixbuf can be found.

It's odd, but the problem was caused by the lack of GI_TYPELIB_PATH.  I
wrapped that variable and also combined the phases from
glib-or-gtk-build-system and PATH (already wrapped scripts are skipped
instead of of composed) and now, the following works:

--8<---------------cut here---------------start------------->8---
./pre-inst-env guix shell --pure h-client adwaita-icon-theme glib
--8<---------------cut here---------------end--------------->8---

glib is only added above to set XDG_DATA_DIRS and find the icons.

Thanks for the report!

Closing.

Maxim




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-06-28  6:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-25 21:15 bug#56223: h-client not running with a host distribution Denis 'GNUtoo' Carikli
2022-06-26 10:39 ` Josselin Poiret via Bug reports for GNU Guix
2022-06-28  4:53   ` Maxim Cournoyer

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).