From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kei Kebreau Subject: Re: Python package gaupol: Namespace Gdk not available Date: Sat, 23 Jun 2018 18:15:52 -0400 Message-ID: <87y3f5gndz.fsf@posteo.net> References: <8736xdbah2.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43228) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWqpV-0003IT-TC for guix-devel@gnu.org; Sat, 23 Jun 2018 18:16:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fWqpS-00052C-Hh for guix-devel@gnu.org; Sat, 23 Jun 2018 18:16:25 -0400 Received: from mout01.posteo.de ([185.67.36.65]:37295) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fWqpS-0004uJ-4U for guix-devel@gnu.org; Sat, 23 Jun 2018 18:16:22 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id ABF9420FE7 for ; Sun, 24 Jun 2018 00:16:10 +0200 (CEST) In-Reply-To: <8736xdbah2.fsf@gmail.com> (Pierre Neidhardt's message of "Sat, 23 Jun 2018 20:53:45 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Pierre Neidhardt Cc: "guix-devel@gnu.org" --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Pierre Neidhardt 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=3D" (assoc-ref outputs "o= ut")) > "--root=3D/"))))))) 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. T= he > user interface features a builtin video player and is designed with atten= tion > 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=20 > Traceback (most recent call last): > File "/gnu/store/gh44n7nfc7x3w8bbmq5l1glvlvycymdw-gaupol-1.4/bin/.gaupo= l-real", line 17, in > import gaupol > File "/gnu/store/gh44n7nfc7x3w8bbmq5l1glvlvycymdw-gaupol-1.4/lib/python= 3.6/site-packages/gaupol/__init__.py", line 34, in > 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 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEg7ZwOtzKO2lLzi2m5qXuPBlGeg0FAlsuxpgACgkQ5qXuPBlG eg3ldA/+KX4q9cdVQzWoe03EggfAbDWbyujRkiQlBD/FL77urGAFLjh5a7Ukp5qy 1TiQEZv3yG6mPEVaGzbLpFSFn+fDo2LQL40y5XHn1LagUnqGo7uBK6tV8VEAwfGR 09O+91EQFXk7M+RQlM6YCOjmgEwlVDY/V1Z9yzMa3Y4/5oYaJALvdOJ/+n1qFONT zhVVD9k8dTdOUj5ZQ+4tSdjCVt4i2bTrsjypuDoAX042FINa8nxZmr5AOyDNxId4 dlPQpZnyh6kxGD4EdotyX/Stg2GvFFkjzGQqj9FyZtaTWcM4BE2F1r4f4fjN7XnU W5eEYFnRaG/JCRQgu+EmehYcAuAZQy3cozY3g48xPaQmMiEAAhwqWjlcVixIq183 3oEThzA2atIUeMMnfzGyVvEro/QqyWCMREkqc4mbJVvjs8bDZE/SCqjgx+ZSib/P VTjt5VTpzxGY+wsEm7BizkbwIZ4S33QiSUYG4fPzqbFezF29HbYvdylAERdZ0qPZ soLtudBi7Iqvo1GY/aaHU4csdwHaF9K8o4dbnJQ+3Tz5Jz9257mHIdNCW+SlceyG gwmw48X2dtLgToFbdh9jDHcflHv0LcD9/IbSSZLl609H5S24NtSOoQe3cCNBmOoC IUG8HFK11ZkMj7oMOOEXNS16dLyYn37aBqDXJheqPidJXC1N42I= =6D9q -----END PGP SIGNATURE----- --=-=-=--