ttempe / chinese-support-addon

Addon for Anki2 that makes easier to input Chinese, in the spirit of batterseapower’s pinyin-toolkit for Anki1
https://github.com/ttempe/chinese-support-addon/wiki
47 stars 19 forks source link

Error while creating cards in 0.7.6 #36

Closed thestick366 closed 10 years ago

thestick366 commented 10 years ago

After updating to 0.7.6, I get the following error. It occurs after I put some characters in the 'Hanzi' field and wait for the reading to generate. This occurs, and no reading is generated. The error persists even after uninstalling and reinstalling the addon.

Traceback (most recent call last): File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/aqt.webview", line 18, in run File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/aqt.editor", line 455, in bridge File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/anki.hooks", line 32, in runFilter File "C:\Users\Art\Documents\Anki\addons\chinese\edit.py", line 47, in on_focus_lost edit_behavior.update_fields(efields, updated_field, model_name, model_type) NameError: global name 'edit_behavior' is not defined

ttempe commented 10 years ago

Fixed in 0.7.8, please reinstall from Ankiweb. Thanks for reporting.