jaseg / python-mpv

Python interface to the awesome mpv media player
https://git.jaseg.de/python-mpv.git
Other
554 stars 69 forks source link

Where is the 'libmpv.so' file?? #87

Closed BlueHorn07 closed 5 years ago

BlueHorn07 commented 5 years ago

In Requirement section, I should have 'libmpv.so' file. But, I can't find it and how to use it.

I have a trouble in 'import mpv' command. I already do 'pip install python-mpy', and checked it really have been stalled. So, I guess it's matter of no libmpv.so file.

Does anyone know how to solve this problem??

jaseg commented 5 years ago

If you're using linux you get this file by installing a package named something like "libmpv" or "mpv-libs" or "mpv-devel".

BlueHorn07 commented 5 years ago

I'm not using Linux... just using Widow OS. Then, should I install Linux OS to operate this python code?

jaseg commented 5 years ago

I just typed "windows libmpv" into google and this came up: https://mpv.srsfckn.biz/

Looks like you'll have to download the "dev" archive. There will be a libmpv.dll in it. Just use a python script or shell in the same directory you extracted that archive to and it will find the dll.

jaseg commented 5 years ago

Here's another place where you can get (more up-to-date) libmpv builds for windows: https://sourceforge.net/projects/mpv-player-windows/files/

I don't know enough about windows to help you with properly installing that though. If python can't find the library, make sure your python shell or script runs in the same directory the library is in.

BlueHorn07 commented 5 years ago

image I attach what I'm suffering now. If anyone know the solution please share it for me....

BlueHorn07 commented 5 years ago

Here's another place where you can get (more up-to-date) libmpv builds for windows: https://sourceforge.net/projects/mpv-player-windows/files/

I don't know enough about windows to help you with properly installing that though. If python can't find the library, make sure your python shell or script runs in the same directory the library is in.

Oh, Thank you for your help! :) I'll try that. Have a good day~~

BlueHorn07 commented 5 years ago

I successfully handled this problem!! I download .dll file from this link(https://mpv.srsfckn.biz/ ) And i used all just files in 'i686' folder.

When i didn't use 'i686', there're some errors like, "OSError: [WinError 193] %1 is not a valid Win32 application." and "OSError: [WinError 126] Cannot find the specified module."

But, they were all solved when i use files in 'i686' :)

Thank you for your help!

jaseg commented 5 years ago

Thank you for the update! I'm glad you got it working. Since the issue seems fixed, I'll close it now. If you have further questions, feel free to re-open this issue or open a new one.

xuzhaozheng commented 3 years ago

how can a macOS user get libmpv.so ?

Su-HengZhang commented 5 months ago

For Debian Linux, you can try: apt install libmpv-dev