all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* libmediainfo
@ 2020-01-19 22:07 sschott
  2020-01-20  7:35 ` libmediainfo Efraim Flashner
  0 siblings, 1 reply; 4+ messages in thread
From: sschott @ 2020-01-19 22:07 UTC (permalink / raw)
  To: guix-devel@gnu.org

[-- Attachment #1: Type: text/html, Size: 3724 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: libmediainfo
  2020-01-19 22:07 libmediainfo sschott
@ 2020-01-20  7:35 ` Efraim Flashner
  2020-01-21 21:08   ` libmediainfo sschott
  0 siblings, 1 reply; 4+ messages in thread
From: Efraim Flashner @ 2020-01-20  7:35 UTC (permalink / raw)
  To: sschott; +Cc: guix-devel@gnu.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 --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: libmediainfo
  2020-01-20  7:35 ` libmediainfo Efraim Flashner
@ 2020-01-21 21:08   ` sschott
  2020-01-22  4:51     ` libmediainfo Efraim Flashner
  0 siblings, 1 reply; 4+ messages in thread
From: sschott @ 2020-01-21 21:08 UTC (permalink / raw)
  To: Efraim Flashner; +Cc: guix-devel@gnu.org

> Efraim Flashner <efraim@flashner.co.il> 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?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: libmediainfo
  2020-01-21 21:08   ` libmediainfo sschott
@ 2020-01-22  4:51     ` Efraim Flashner
  0 siblings, 0 replies; 4+ messages in thread
From: Efraim Flashner @ 2020-01-22  4:51 UTC (permalink / raw)
  To: sschott; +Cc: guix-devel@gnu.org



On January 21, 2020 9:08:55 PM UTC, sschott@mailbox.org wrote:
>> Efraim Flashner <efraim@flashner.co.il> 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?

Definately a typo, I meant .so.0
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-01-22  4:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-19 22:07 libmediainfo sschott
2020-01-20  7:35 ` libmediainfo Efraim Flashner
2020-01-21 21:08   ` libmediainfo sschott
2020-01-22  4:51     ` libmediainfo Efraim Flashner

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.