From mboxrd@z Thu Jan 1 00:00:00 1970 From: sschott@mailbox.org Subject: libmediainfo Date: Sun, 19 Jan 2020 23:07:02 +0100 (CET) Message-ID: <1627337633.28965.1579471622987@office.mailbox.org> Reply-To: sschott@mailbox.org Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:48966) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1itIiu-0008GW-Pn for guix-devel@gnu.org; Sun, 19 Jan 2020 17:07:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1itIit-0001j7-7O for guix-devel@gnu.org; Sun, 19 Jan 2020 17:07:12 -0500 Received: from mout-p-202.mailbox.org ([80.241.56.172]:51748) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1itIis-0001gR-K5 for guix-devel@gnu.org; Sun, 19 Jan 2020 17:07:11 -0500 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:105:465:1:1:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 48186L5Y6DzQlDD for ; Sun, 19 Jan 2020 23:07:06 +0100 (CET) Received: from smtp1.mailbox.org ([80.241.60.240]) by hefe.heinlein-support.de (hefe.heinlein-support.de [91.198.250.172]) (amavisd-new, port 10030) with ESMTP id SI7ocFi7eU_0 for ; Sun, 19 Jan 2020 23:07:03 +0100 (CET) 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-mx.org@gnu.org Sender: "Guix-devel" To: "guix-devel@gnu.org"
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"))))))))
    (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
From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: Re: libmediainfo Date: Mon, 20 Jan 2020 09:35:27 +0200 Message-ID: <20200120073527.GE1603@E5400> References: <1627337633.28965.1579471622987@office.mailbox.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="dFWYt1i2NyOo1oI9" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:43404) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1itRbt-0003oI-AN for guix-devel@gnu.org; Mon, 20 Jan 2020 02:36:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1itRbp-00021E-QU for guix-devel@gnu.org; Mon, 20 Jan 2020 02:36:33 -0500 Received: from flashner.co.il ([178.62.234.194]:46040) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1itRbp-0001oz-KQ for guix-devel@gnu.org; Mon, 20 Jan 2020 02:36:29 -0500 Content-Disposition: inline In-Reply-To: <1627337633.28965.1579471622987@office.mailbox.org> 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-mx.org@gnu.org Sender: "Guix-devel" To: sschott@mailbox.org Cc: "guix-devel@gnu.org" --dFWYt1i2NyOo1oI9 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 ph= ase > with > "OSError: libmediainfo.so.0: cannot open shared object file: No such f= ile > 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 f= ile: > 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 --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --dFWYt1i2NyOo1oI9 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl4lWD8ACgkQQarn3Mo9 g1Em7g//aa6HODZ93jXmQpvA4tM7QjFR19ev3E0OwmKm2/OagSBdHr6/kIaJ4+2s 9V3MuSkKvpBrWoVxLxecuut+sFoFjjx3GgtRtKZ0hyHcfVPGsjHzx+eLdkvnKjrj widwkTwm8V6NWfR0QcduKxMA8mA6I4NHZ8FL4m8+CimpeA0LTPRYqXZcDJT7KPV/ wAY7WHSQSlnjWa/a0PkcuQofijgKq4W+Ud98GkcUAqx646rHGutledxLHIoNhno9 veh/PY6MyhHD/TqwKqyShzV7A94B2nWzM7kwHSevGqK3aP9i+4yXa0ucvYxo5oah rwqFhqYEOm6jz/T0nMjevRQRbN+1ZujWtrHGDOPZ5wTiCKqFkyawv1PnE/BRKOve tVVywo+cpupm3SfVZhE35zB/CjOQ96DGUW/3hpy17YFBXmKOJEH3LU8P81NPWmdM 4rxXdlarbvb/dlVloEh9fbEXU652Q5Xa8yT8s1sE3ZfZpNTZdt0JBHm/3Gdz5VsH JYKuxIY6czkoWxAsMHuzr79WUJ1iadNmoiO9NUU9vkI3xwnb5fTAqzUq8pAzkKZw HA15wAlsBR+I6D8gJXd7A9r93xOEt/JAevU6HTMEgdwmLZArbFHKT1ZflgAyjTb0 MMAJOVbhNnox4484mkO1hbvo1dS/YiKmuFoN72daHEOozm/Ngoo= =Tn5J -----END PGP SIGNATURE----- --dFWYt1i2NyOo1oI9-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: sschott@mailbox.org Subject: Re: libmediainfo Date: Tue, 21 Jan 2020 22:08:55 +0100 (CET) Message-ID: <1210068753.47194.1579640935074@office.mailbox.org> References: <1627337633.28965.1579471622987@office.mailbox.org> <20200120073527.GE1603@E5400> Reply-To: sschott@mailbox.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:45419) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iu0lk-0006Sv-LI for guix-devel@gnu.org; Tue, 21 Jan 2020 16:09:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iu0li-00040q-RZ for guix-devel@gnu.org; Tue, 21 Jan 2020 16:09:04 -0500 Received: from mout-p-201.mailbox.org ([80.241.56.171]:42382) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iu0li-0003zn-B1 for guix-devel@gnu.org; Tue, 21 Jan 2020 16:09:02 -0500 In-Reply-To: <20200120073527.GE1603@E5400> 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-mx.org@gnu.org Sender: "Guix-devel" To: Efraim Flashner Cc: "guix-devel@gnu.org" > Efraim Flashner hat am 20. Januar 2020 08:35 geschrieben: > > 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. Thank you very much! Maybe there is another typo, because /lib/libmediainfo.so.0 (zero not o) worked for me? From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: Re: libmediainfo Date: Wed, 22 Jan 2020 04:51:31 +0000 Message-ID: <2EBF4319-80DA-409C-A66E-E6A7D03F1FFD@flashner.co.il> References: <1627337633.28965.1579471622987@office.mailbox.org> <20200120073527.GE1603@E5400> <1210068753.47194.1579640935074@office.mailbox.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:54610) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iu80C-0003B4-Hq for guix-devel@gnu.org; Tue, 21 Jan 2020 23:52:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iu80B-0007mN-8W for guix-devel@gnu.org; Tue, 21 Jan 2020 23:52:28 -0500 Received: from flashner.co.il ([178.62.234.194]:44236) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iu80B-0007O5-3F for guix-devel@gnu.org; Tue, 21 Jan 2020 23:52:27 -0500 In-Reply-To: <1210068753.47194.1579640935074@office.mailbox.org> 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-mx.org@gnu.org Sender: "Guix-devel" To: sschott@mailbox.org Cc: "guix-devel@gnu.org" On January 21, 2020 9:08:55 PM UTC, sschott@mailbox=2Eorg wrote: >> Efraim Flashner hat am 20=2E Januar 2020 08= :35 geschrieben: >> >> typo above, it should be /lib/libmediainfo=2Eso=2Eo >>=20 >> With that change I got 1 test error, related to it trying to download a= n >> mp4 file from the internet=2E > >Thank you very much! Maybe there is another typo, because /lib/libmediain= fo=2Eso=2E0 (zero not o) worked for me? Definately a typo, I meant =2Eso=2E0 --=20 Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E