unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Kei Kebreau <kkebreau@posteo.net>
To: Pierre Neidhardt <ambrevar@gmail.com>
Cc: "guix-devel@gnu.org" <guix-devel@gnu.org>
Subject: Re: Python package gaupol: Namespace Gdk not available
Date: Sat, 23 Jun 2018 18:15:52 -0400	[thread overview]
Message-ID: <87y3f5gndz.fsf@posteo.net> (raw)
In-Reply-To: <8736xdbah2.fsf@gmail.com> (Pierre Neidhardt's message of "Sat, 23 Jun 2018 20:53:45 +0200")

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

Pierre Neidhardt <ambrevar@gmail.com> writes:

> Hi there,
>
> I'm trying to package gaupol (https://otsaloma.io/gaupol/), a subtitle
> editor.
>
> (define-public gaupol

[...]

>          (replace 'install
>            (lambda* (#:key outputs #:allow-other-keys)
>              (zero?
>               (system* "python" "setup.py" "install"
>                        (string-append "--prefix=" (assoc-ref outputs "out"))
>                        "--root=/")))))))

You can use 'invoke' here instead of 'zero?' with 'system*' for the same
effect.

>     (synopsis "Editor for text-based subtitles")
>     (description
>      "Gaupol supports multiple subtitle file formats and provides means of
> creating subtitles, editing texts and timing subtitles to match video.  The
> user interface features a builtin video player and is designed with attention
> to convenience of translating and batch processing of multiple documents.")
>     (home-page "http://otsaloma.io/gaupol/")
>     (license license:gpl3+)))
>
>
> The build runs fine, or so it seems.  But when I try to start it:
>
>> /gnu/store/gh44n7nfc7x3w8bbmq5l1glvlvycymdw-gaupol-1.4/bin/gaupol 
> Traceback (most recent call last):
>   File "/gnu/store/gh44n7nfc7x3w8bbmq5l1glvlvycymdw-gaupol-1.4/bin/.gaupol-real", line 17, in <module>
>     import gaupol
>   File "/gnu/store/gh44n7nfc7x3w8bbmq5l1glvlvycymdw-gaupol-1.4/lib/python3.6/site-packages/gaupol/__init__.py", line 34, in <module>
>     gi.require_version("Gdk", "3.0")
>   File "/gnu/store/7p24q6jbkzwp7cp44543mi9zzn4czgig-python-pygobject-3.28.2/lib/python3.6/site-packages/gi/__init__.py", line 130, in require_version
>     raise ValueError('Namespace %s not available' % namespace)
> ValueError: Namespace Gdk not available
>
> I suppose I'm missing a dependency but I can't find any reference to
> python+gdk anywhere beside python-pygobject... Must be something else.
>
> Anyone?

My first guess would be that you need to wrap gaupol with the
environment variable "GI_TYPELIB_PATH". Take a look at the sonata
package in gnu/packages/mpd.scm for an example.

Hope this helps,
Kei

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

  reply	other threads:[~2018-06-23 22:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-23 18:53 Python package gaupol: Namespace Gdk not available Pierre Neidhardt
2018-06-23 22:15 ` Kei Kebreau [this message]
2018-06-23 22:27 ` Ludovic Courtès
2018-06-26 10:46   ` Pierre Neidhardt

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=87y3f5gndz.fsf@posteo.net \
    --to=kkebreau@posteo.net \
    --cc=ambrevar@gmail.com \
    --cc=guix-devel@gnu.org \
    /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).