unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Pierre Neidhardt <ambrevar@gmail.com>
To: "guix-devel@gnu.org" <guix-devel@gnu.org>
Subject: Python package gaupol: Namespace Gdk not available
Date: Sat, 23 Jun 2018 20:53:45 +0200	[thread overview]
Message-ID: <8736xdbah2.fsf@gmail.com> (raw)

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


Hi there,

I'm trying to package gaupol (https://otsaloma.io/gaupol/), a subtitle
editor.

--8<---------------cut here---------------start------------->8---
(define-public gaupol
  (package
    (name "gaupol")
    (version "1.4")
    (source (origin
              (method url-fetch)
              (uri (string-append "https://github.com/otsaloma/gaupol/archive/"
                                  version ".tar.gz"))
              (sha256
               (base32
                "12hy5x6s5xk81r75x0z4n6wpq8ygsxc4mbr47qcr0kq55kbvp6jj"))))
    (build-system python-build-system)
    (native-inputs
     `(("gettext" ,gettext-minimal)))
    (inputs
     `(("python-pygobject" ,python-pygobject)
       ("python-pycairo" ,python-pycairo)
       ("python-chardet" ,python-chardet)
       ("gdk-pixbuf" ,gdk-pixbuf)
       ("gtk+" ,gtk+)
       ("gtkspell3" ,gtkspell3)
       ("gst-libav" ,gst-libav)
       ("gst-plugins-base" ,gst-plugins-base)
       ("gst-plugins-good" ,gst-plugins-good)
       ("gst-plugins-bad" ,gst-plugins-bad)
       ("gst-plugins-ugly" ,gst-plugins-ugly)))
    (arguments
     `(#:tests? #f               ; Tests seem to require networking.
       #:phases
       (modify-phases %standard-phases
         ;; gaupol's setup.py script does not support one of the Python build
         ;; system's default flags, "--single-version-externally-managed".
         (replace 'install
           (lambda* (#:key outputs #:allow-other-keys)
             (zero?
              (system* "python" "setup.py" "install"
                       (string-append "--prefix=" (assoc-ref outputs "out"))
                       "--root=/")))))))
    (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+)))
--8<---------------cut here---------------end--------------->8---

The build runs fine, or so it seems.  But when I try to start it:

--8<---------------cut here---------------start------------->8---
> /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
--8<---------------cut here---------------end--------------->8---

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?

-- 
Pierre Neidhardt

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

             reply	other threads:[~2018-06-23 18:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-23 18:53 Pierre Neidhardt [this message]
2018-06-23 22:15 ` Python package gaupol: Namespace Gdk not available Kei Kebreau
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=8736xdbah2.fsf@gmail.com \
    --to=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).