jdlorimer/chinese-support-redux

Error (addon failed to load) on each startup

Closed this issue ยท 12 comments

I use Anki 2.1.20 for Mac.

Everytime I open Anki after installing the addon I get this error message:
Screen Shot 2020-02-15 at 11 57 49 AM

What should I do to fix this?
Thank you.

3ter commented

Duplicate of #114

I copied the hotfix (replace chinese.py by this) by @khonkhortisan and I can continue using the addon.

Duplicate of #114

I copied the hotfix (replace chinese.py by this) by @khonkhortisan and I can continue using the addon.

I have this same exact problem.
Iโ€™m not a coder Iโ€™m just a regular person , so I canโ€™t understand what am I replacing โ€˜chinese.pyโ€™ with ? The link is to whole page of text . Please help :(

3ter commented

Step by step application of the hotfix

  1. Browse to the templates folder by entering %Appdata%\Roaming\Anki2\addons21\1128979221\templates in Windows Explorer
    image
  2. Open the file Chinese.py with notepad
    image
  3. Browse to the "page of text", click in the text and type ctrl+A to select all of it
    image
  4. Back to the file opened in notepad, select everything there (ctrl+A) and replace it with ctrl+V
  5. Save the file and the Addon should be usable again ๐ŸŽ‰

The alternative is to wait until the PR by @khonkhortisan has been processed or another solution has been found.

@luoliyan Had chance to look at this one?

Thank you this worked for me, I have v 2.1.22 (Windows 10)

This worked for me as well, thanks!

Thank you @3ter, worked fine for me.

How do I browse to the templates folder for Mac?

3ter commented

How do I browse to the templates folder for Mac?

@razor3lade25 I suggest to check the file locations section in the manual.

~/Library/Application Support/Anki2

How do I browse to the templates folder for Mac?

@razor3lade25 I suggest to check the file locations section in the manual.

~/Library/Application Support/Anki2

Thanks so much yep found it!

Thanks for your patience everyone. I'll upload the changes in a few hours.