unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Efraim Flashner <efraim@flashner.co.il>
To: sschott@mailbox.org
Cc: "guix-devel@gnu.org" <guix-devel@gnu.org>
Subject: Re: libmediainfo
Date: Mon, 20 Jan 2020 09:35:27 +0200	[thread overview]
Message-ID: <20200120073527.GE1603@E5400> (raw)
In-Reply-To: <1627337633.28965.1579471622987@office.mailbox.org>

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

On Sun, Jan 19, 2020 at 11:07:02PM +0100, sschott@mailbox.org wrote:
>    Hi all,
>    I am trying to package pymediainfo, but the build fails in the test phase
>    with
>    "OSError: libmediainfo.so.0: cannot open shared object file: No such file
>    or directory"
>    When I skip the test phase, the build succeeds, but using pymediainfo in a
>    python script gives the same error. Injecting the library path into the
>    __init__.py does not help.
>    (define-public python-pymediainfo
>      (package
>        (name "python-pymediainfo")
>        (version "4.1")
>        (source
>          (origin
>            (method url-fetch)
>            (uri (pypi-uri "pymediainfo" version))
>            (sha256
>              (base32
>                "0mhpxs7vlqx8w75z93dy7nnvx89kwfdjkla03l19an15rlyqyspd"))))
>        (build-system python-build-system)
>        (native-inputs
>          `(("python-setuptools-scm" ,python-setuptools-scm)
>             ("python-pytest" ,python-pytest)
>             ("python-pytest-runner" ,python-pytest-runner)))
>        (inputs
>          `(("libmediainfo" ,libmediainfo)))
>        (propagated-inputs
>          `(("python-setuptools" ,python-setuptools)))
>    ;    (arguments
>         ;; FIXME: OSError: libmediainfo.so.0: cannot open shared object file:
>    No such file or directory
>    ;     '(#:tests? #f))
>        (arguments
>         `(#:phases (modify-phases %standard-phases
>             (add-after 'unpack 'patch-libmediainfo
>               (lambda _
>                 (substitute* "pymediainfo/__init__.py"
>                   (("libmediainfo.so.0") (string-append (assoc-ref
>    %build-inputs "libmediainfo") "/lib/libmedia.so.0"))))))))

typo above, it should be /lib/libmediainfo.so.o

With that change I got 1 test error, related to it trying to download an
mp4 file from the internet.

>        (home-page
>          "https://github.com/sbraz/pymediainfo")
>        (synopsis
>          "Python wrapper for the mediainfo library")
>        (description
>          "Python wrapper for the mediainfo library to access the most
>    relevant technical and tag data for video and audio files.")
>        (license license:expat)))
>    Best regards,
>    Sebastian

-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

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

  reply	other threads:[~2020-01-20  7:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-19 22:07 libmediainfo sschott
2020-01-20  7:35 ` Efraim Flashner [this message]
2020-01-21 21:08   ` libmediainfo sschott
2020-01-22  4:51     ` libmediainfo Efraim Flashner

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=20200120073527.GE1603@E5400 \
    --to=efraim@flashner.co.il \
    --cc=guix-devel@gnu.org \
    --cc=sschott@mailbox.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).