Code Monkey home page Code Monkey logo

Comments (3)

VoidAny avatar VoidAny commented on June 20, 2024

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 python3 -m pip install python-mpv to fix this issue

from anipy-cli.

Marcus5408 avatar Marcus5408 commented on June 20, 2024

It's now asking me to include a mpv-1.dll or mpv-2.dll in my system %PATH%, though I don't see to be able to find where I can get this .dll file since it wasn't included with my install.

Edit: I did manage to find a mpv-2.dll file by extracting a 7zip file I found from mpv's sourceforge but it didn't resolve the issue.

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"].

from anipy-cli.

sdaqo avatar sdaqo commented on June 20, 2024

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 reuse_mpv_window option in your config.

from anipy-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.