Bug involving MPV player

Guys, I’m having trouble with MPV Player. Awesometts doesn’t work without MPV Player, and I need awesometts, but MPV Player doesn’t work well on my Anki desktop. The debug message is the following. Can anyone help me to solve it? Thanks!! :smiley:

Anki 23.12.1 (1a1d4d54) (ao)
Python 3.9.15 Qt 6.5.3 PyQt 6.5.3
Platform: macOS-11.7.10-x86_64-i386-64bit

Traceback (most recent call last):
File “aqt.progress”, line 118, in handler
File “aqt.mediasync”, line 120, in check_finished
File “aqt.main”, line 656, in after_media_sync
File “aqt.main”, line 534, in callback
File “aqt.main”, line 541, in _unloadProfile
File “aqt.main”, line 591, in cleanup_sound
File “aqt.sound”, line 890, in cleanup_audio
File “aqt.sound”, line 187, in shutdown
File “/Users/gabrieldias/Library/Application Support/Anki2/addons21/924111087/init.py”, line 233, in shutdown
saveGeometry()
File “/Users/gabrieldias/Library/Application Support/Anki2/addons21/924111087/init.py”, line 71, in saveGeometry
FindWindow = ctypes.windll.user32.FindWindowW
AttributeError: module ‘ctypes’ has no attribute ‘windll’

===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Advanced MPV Player [‘924111087’, 2023-12-13T02:02, ‘None’, ‘’]
AnkiConnect [‘2055492159’, 2024-01-21T19:03, ‘None’, ‘’]
AwesomeTTS - Add speech to your flashcards [‘1436550454’, 2024-02-09T03:42, ‘None’, ‘’]
Basic Printing Support [‘1025789669’, 2023-10-18T23:57, ‘None’, mod]

===IDs of active AnkiWeb add-ons===
1025789669 1436550454 2055492159 924111087

===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])

1 Like

There are some hints on how to get rid of errors here: https://ankiweb.net/shared/info/924111087.

You are using in macOS and this add-on only test at windows system, and you can avoid this error message by diable the config of “restore_last_on_off”: from tools-Advanced MPV Player->restore_last_on_off or chage the config file from Add-ons dialog.

AwesomeTTS should work without this addon.

3 Likes

Thanks!!