Closed Axle-Ozz-i-sofT closed 1 year ago
Ok, there's two things to address here:
libmpv-2.dll
filename I think is a change on mpv's side. I'm putting out a release today that will add this name to the search list. In the meantime, just renaming the file should be fine.
Hi I have been attempting to use your mpv.py to test using libmpv and encountered what looks like a long term issue with ctypes ctypes.util.find_library()
I have attempted the original suggestion:
As well as adding the libmpv-2.dll to the current python IDE path, to Windows temporary %PATH%, as well as placing a permanent path to the dll in the system environment paths (via the registry). I have placed the dll in the script directory, in the python /bin dir, in the mpv.py module directory as also in the Windows system directory. ++++
In every instance ctypes.util.find_library() cannot find the dll in any Windows path location. I guess this is a problem with ctypes ctypes.util.find_library() and they even state that it has some issue on Windows.
I had this same issue just recently with a binder I created for sqlite2.dll The only solution I had was to hard code the dll path directly into the binder. Not very flexible :(
The only way I can seam to use mpv.py at the moment is to place it in the project script directory (convenience) and modify the module with the static path.
Have you (anyone) found a solution to this?
Windows 10 x64 Python 3,9.6 x64 (Path not set in system environment. Use CMD "py script.py" or "full path\python.exe script.py) Or CMD SET SET PATH=%PATH%;SET PATH=%PATH%;Drive:\full path\ptython script.py or temp path provided by the IDE and python. etc. libmpv V0.35.1 x86-64
Regards Axle