jamesnicolas / yomichan-forvo-server

An audio server for yomichan that scrapes forvo for audio files
33 stars 16 forks source link

Failed to load in Anki 2.1.66, MacOS sonoma, MacBook Air 2019, Apple silicon M1 #19

Closed foxmean closed 10 months ago

foxmean commented 10 months ago

Error message below

An add-on you installed failed to load. If problems persist, please go to the Tools>Add-ons menu, and disable or delete the add-on. When loading 'yomichan-forvo-server': Traceback (most recent call last):| File "aqtaddons", line 246, in loadAddons File "/Users/pkmean/Library/Application Support/Anki2/addons21/ yomichan-forvo-server/_init_py", line 138, in class ForvoHandler (http.server.SimpleHTTPRequestHandler): File "/Users/pkmean/Library/Application Support/Anki2/addons21/ yomichan-forvo-server/_init_py", line 139, in ForvoHandler forvo = Forvo('zh') File "/Users/pkmean/Library/Application Support/Anki2/addons21/ yomichan-forvo-server/_init_py", line 26, in init self._set_session () File "/Users/pkmean/Library|Application Support/Anki2/addons21/ yomichan-forvo-server/_init_py", line 33, in _set_session retry_strategy = Retry TypeError: init() got an unexpected keyword argument 'method_whitelist'

jamesnicolas commented 10 months ago

@foxmean Do you have the latest version? I don't use method_whitelist anymore.

foxmean commented 10 months ago

Oh, so sorry I maybe use the version older than [2023-07-28] because the date added file on my system is 2023-01-09. BTW, I cannot update yomichan-forvo-server from 'Check for Update' in Anki Add-on itself. I need to delete it and reinstall (by normal way of install it from code). After that it's work just fine. It is maybe the 'Check for Update' problem of Anki, not your add-on. Thanks for you so much for your contribution to the language learning community.