-
Notifications
You must be signed in to change notification settings - Fork 37
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
'mpv' module cannot be found #102
Comments
The reason why this error occurs is because you are using the reuse mpv window option, which calls a function that import a library that was not put into our dependencies list. So, we forgot to declare a dependency. For a quick fix, you can run |
It's now asking me to include a Edit: I did manage to find a Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\Users\Marcus\AppData\Roaming\Python\Python311\Scripts\anipy-cli.exe\__main__.py", line 7, in <module>
File "C:\Users\Marcus\AppData\Roaming\Python\Python311\site-packages\anipy_cli\run_anipy_cli.py", line 8, in main
cli.main()
File "C:\Users\Marcus\AppData\Roaming\Python\Python311\site-packages\anipy_cli\cli.py", line 703, in main
default_cli(args.quality, player)
File "C:\Users\Marcus\AppData\Roaming\Python\Python311\site-packages\anipy_cli\cli.py", line 67, in default_cli
mpv = create_mpv_controllable()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Marcus\AppData\Roaming\Python\Python311\site-packages\anipy_cli\player.py", line 80, in create_mpv_controllable
import mpv
File "C:\Program Files\Python311\Lib\site-packages\mpv.py", line 35, in <module>
raise OSError('Cannot find mpv-1.dll or mpv-2.dll in your system %PATH%. One way to deal with this is to ship '
OSError: Cannot find mpv-1.dll or mpv-2.dll in your system %PATH%. One way to deal with this is to ship the dll with your script and put the directory your script is in into %PATH% before "import mpv": os.environ["PATH"] = os.path.dirname(__file__) + os.pathsep + os.environ["PATH"] If mpv-1.dll is located elsewhere, you can add that path to os.environ["PATH"]. |
Please refer to the info in the README I added. It seems the .dll is not on your path. Alternatively, like Dabbing-Guy said, you can deactivate the |
Describe the bug
anipy-cli fails to load the
mpv
module even though mpv is installed.To Reproduce
Steps to reproduce the behavior:
anipy-cli
Expected behavior
A mpv window opens and the anime starts playing.
Info
Platform
Additional context
Exactly what I did to run into the error:
Note: Issue occurs oņ the scoop version of mpv and the Microsoft Store version of mpv as well.
The text was updated successfully, but these errors were encountered: