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--