jdlorimer / chinese-support-redux

Anki add-on providing support for Chinese study
https://ankiweb.net/shared/info/1128979221
GNU General Public License v3.0
101 stars 50 forks source link

Consistent crashes when entering cards #170

Closed karl-an closed 3 years ago

karl-an commented 3 years ago

Hi!

The add-on keeps crashing when adding new notes. I tried different ways but no luck!

Thanks

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 on the add-on support site. Debug info: Anki 2.1.35 (84dcaa86) Python 3.8.0 Qt 5.14.2 PyQt 5.14.2 Platform: Windows 10 Flags: frz=True ao=True sv=1 Add-ons, last update check: 2020-12-03 15:01:15

Caught exception: Traceback (most recent call last): File "aqt\webview.py", line 37, in cmd File "aqt\webview.py", line 123, in _onCmd File "aqt\webview.py", line 547, in _onBridgeCmd File "aqt\editor.py", line 403, in onBridgeCmd File "aqt\gui_hooks.py", line 1487, in call File "anki\hooks.py", line 594, in runFilter File "C:\Users\karla\AppData\Roaming\Anki2\addons21\1128979221\edit.py", line 74, in onFocusLost if update_fields(note, field, allFields): File "C:\Users\karla\AppData\Roaming\Anki2\addons21\1128979221\behavior.py", line 270, in update_fields fill_sound(hanzi, copy) File "C:\Users\karla\AppData\Roaming\Anki2\addons21\1128979221\behavior.py", line 169, in fill_sound s = sound(hanzi, config['speech']) File "C:\Users\karla\AppData\Roaming\Anki2\addons21\1128979221\sound.py", line 51, in sound return '[sound:%s]' % AudioDownloader(hanzi, source).download() File "C:\Users\karla\AppData\Roaming\Anki2\addons21\1128979221\tts.py", line 50, in download self.func() File "C:\Users\karla\AppData\Roaming\Anki2\addons21\1128979221\tts.py", line 56, in get_google tts.save(self.path) File "C:\Users\karla\AppData\Roaming\Anki2\addons21\1128979221\lib\gtts\tts.py", line 243, in save self.write_to_fp(f) File "C:\Users\karla\AppData\Roaming\Anki2\addons21\1128979221\lib\gtts\tts.py", line 183, in write_to_fp part_tk = self.token.calculate_token(part) File "C:\Users\karla\AppData\Roaming\Anki2\addons21\1128979221\lib\gtts_token\gtts_token.py", line 28, in calculate_token seed = self._get_token_key() File "C:\Users\karla\AppData\Roaming\Anki2\addons21\1128979221\lib\gtts_token\gtts_token.py", line 58, in _get_token_key raise ValueError( ValueError: Unable to find token seed! Did https://translate.google.com change?

TrungJann commented 3 years ago

I followed the steps from this thread and it worked https://github.com/luoliyan/chinese-support-redux/issues/169

karl-an commented 3 years ago

Thanks for reacting! I tried it but it seems to exceed my capabilities. :S

  1. Which file should I download?
  2. Where should I paste the file. In my Anki folder, I do not have an add-on folder...

Thanks so much again!

karl-an commented 3 years ago

I finally figured it out! The link helped. But I was unaware of the hidden folders etc. Now it almost works (I have a different problem now (the formatting is of a character is also read by the text-to-speech engine)).