[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Python package gaupol: Namespace Gdk not available
From: |
Kei Kebreau |
Subject: |
Re: Python package gaupol: Namespace Gdk not available |
Date: |
Sat, 23 Jun 2018 18:15:52 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Pierre Neidhardt <address@hidden> 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
signature.asc
Description: PGP signature