Thank you for your response.
I believe I followed the instructions correctly, as nompv
appeared among the other add-ons.
However, if I keep mpv, it won’t work, and I receive this error message:
Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
When you've discovered the add-on that is causing the problem, please report the issue to the add-on author.
Debug info:
Anki 2.1.66 (70506aeb) Python 3.13.1 Qt 6.8.1 PyQt 6.8.0
Platform: Linux-6.6.72-1-lts-x86_64-with-glibc2.40
Flags: frz=False ao=True sv=2
Add-ons, last update check: 2025-01-18 19:10:39
Caught exception:
Traceback (most recent call last):
File "/usr/lib/python3.13/site-packages/aqt/mpv.py", line 373, in _send_request
return self._get_response(timeout)
~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "/usr/lib/python3.13/site-packages/aqt/mpv.py", line 354, in _get_response
raise MPVCommandError(message["error"])
aqt.mpv.MPVCommandError: invalid parameter
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.13/site-packages/aqt/webview.py", line 46, in cmd
return json.dumps(self.onCmd(str))
~~~~~~~~~~^^^^^
File "/usr/lib/python3.13/site-packages/aqt/webview.py", line 153, in _onCmd
return self._onBridgeCmd(str)
~~~~~~~~~~~~~~~~~^^^^^
File "/usr/lib/python3.13/site-packages/aqt/webview.py", line 665, in _onBridgeCmd
return self.onBridgeCmd(cmd)
~~~~~~~~~~~~~~~~^^^^^
File "/usr/lib/python3.13/site-packages/aqt/overview.py", line 92, in _linkHandler
self.mw.moveToState("review")
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
File "/usr/lib/python3.13/site-packages/aqt/main.py", line 713, in moveToState
getattr(self, f"_{state}State", lambda *_: None)(oldState, *args)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.13/site-packages/aqt/main.py", line 734, in _reviewState
self.reviewer.show()
~~~~~~~~~~~~~~~~~~^^
File "/usr/lib/python3.13/site-packages/aqt/reviewer.py", line 166, in show
self.refresh_if_needed()
~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/lib/python3.13/site-packages/aqt/reviewer.py", line 186, in refresh_if_needed
self.nextCard()
~~~~~~~~~~~~~^^
File "/usr/lib/python3.13/site-packages/aqt/reviewer.py", line 248, in nextCard
self._showQuestion()
~~~~~~~~~~~~~~~~~~^^
File "/usr/lib/python3.13/site-packages/aqt/reviewer.py", line 377, in _showQuestion
av_player.play_tags(sounds)
~~~~~~~~~~~~~~~~~~~^^^^^^^^
File "/usr/lib/python3.13/site-packages/aqt/sound.py", line 150, in play_tags
self._play_next_if_idle()
~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/lib/python3.13/site-packages/aqt/sound.py", line 209, in _play_next_if_idle
self._play(next)
~~~~~~~~~~^^^^^^
File "/usr/lib/python3.13/site-packages/aqt/sound.py", line 216, in _play
self.current_player.play(tag, self._on_play_finished)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.13/site-packages/aqt/sound.py", line 429, in play
self.command("loadfile", path, "replace", "pause=no")
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.13/site-packages/aqt/mpv.py", line 595, in command
return self._send_request({"command": list(args)}, timeout=timeout)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.13/site-packages/aqt/mpv.py", line 375, in _send_request
raise MPVCommandError(f"{message['command']!r}: {e}")
aqt.mpv.MPVCommandError: ['loadfile', '/home/user/.local/share/Anki2/User/collection.media/audio.ogg', 'replace', 'pause=no']: invalid parameter
I used to patch mpv.py
and sound.py
, but I am now using a binary version of Anki.