Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue loading libp11-kit.so.0 #137

Open
wabiloo opened this issue Apr 23, 2024 · 3 comments
Open

Issue loading libp11-kit.so.0 #137

wabiloo opened this issue Apr 23, 2024 · 3 comments

Comments

@wabiloo
Copy link

wabiloo commented Apr 23, 2024

Hi,

When using this library on Ubuntu, I get an error when doing MediaInfo.parse('https://pg-15-linear.perfectgame.tv/009000-389487-pg-321_4icz/file-3128k-01705.ts').

Failed to load library from libmediainfo.so.0 - /lib/x86_64-linux-gnu/libp11-kit.so.0: undefined symbol: ffi_type_pointer, version LIBFFI_BASE_7.0

Mediainfo was installed with sudo apt upgrade mediainfo and I can run it at the command line with that URL without a problem.

Any idea?

@sbraz
Copy link
Owner

sbraz commented Apr 24, 2024

Hello, how did you install pymediainfo itself? Did you use Ubuntu's package? Do you have multiple libmediainfo.so.0 files on your system?

@wabiloo
Copy link
Author

wabiloo commented Apr 24, 2024

I (re-)installed in the following way (on Ubuntu 20):
sudo apt-get install --reinstall libffi7 libp11-kit0

There seems to be a single one on the system

ll /lib/x86_64-linux-gnu/ | grep libmedia
lrwxrwxrwx  1 root root       21 Mar 24  2020 libmediainfo.so.0 -> libmediainfo.so.0.0.0
-rw-r--r--  1 root root  7511464 Mar 24  2020 libmediainfo.so.0.0.0

@sbraz
Copy link
Owner

sbraz commented Apr 28, 2024

Hello, how did you install pymediainfo itself?

I have a feeling you have another .so installed.
Please perform a full filesystem search for libmediainfo.so.0 or run strace -f -e openat <your_script.py> |& grep libmediainfo.so to see which one is used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants