Japanese Support addon error

Rodrigo González's Avatar

Rodrigo González

14 Oct, 2019 02:07 AM

I have just installed the Japanese Support addon (3918629684), restarted Anki and try to generate the reading for a new word entry, upon which I got the error on the image attached.

I removed the addon and tried again, but the same thing happened. It had worked fine in the past.

Please advise.

Regards,
Rodrigo

  1. Support Staff 1 Posted by Damien Elmes on 14 Oct, 2019 04:00 AM

    Damien Elmes's Avatar

    I'm afraid as mentioned on the add-on page, non-Latin characters in your login name are not supported.

  2. 2 Posted by richbailey911 on 14 Oct, 2019 06:14 AM

    richbailey911's Avatar

    I also have just started having the same problem as of today. A few days ago, it was working fine. I have tried to follow the suggested steps but am still getting this error message.

    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-ons section of our support site.
    Debug info:
    Anki 2.1.11 (3cf770c7) Python 3.6.7 Qt 5.12.1 PyQt 5.11.3
    Platform: Mac 10.15
    Flags: frz=True ao=True sv=1
    Add-ons possibly involved: Japanese Support

    Caught exception:
      File "aqt/webview.py", line 27, in cmd
      File "aqt/webview.py", line 85, in _onCmd
      File "aqt/webview.py", line 360, in _onBridgeCmd
      File "aqt/editor.py", line 273, in onBridgeCmd
      File "anki/hooks.py", line 39, in runFilter
      File "/Users/richbailey/Library/Application Support/Anki2/addons21/3918629684/reading.py", line 215, in onFocusLost
        n[dst] = mecab.reading(srcTxt)
      File "/Users/richbailey/Library/Application Support/Anki2/addons21/3918629684/reading.py", line 82, in reading
        self.ensureOpen()
      File "/Users/richbailey/Library/Application Support/Anki2/addons21/3918629684/reading.py", line 79, in ensureOpen
        raise Exception("Please ensure your Linux system has 64 bit binary support.")
    <class 'Exception'>: Please ensure your Linux system has 64 bit binary support.

  3. Support Staff 3 Posted by Damien Elmes on 14 Oct, 2019 10:40 PM

    Damien Elmes's Avatar

    rich, you need to download the latest version of the add-on.

  4. 4 Posted by richbailey911 on 14 Oct, 2019 11:14 PM

    richbailey911's Avatar

    Dear Damien,

    Thanks for the information. I did some digging on the Interwebs and found
    the same suggestion, and it took care of the problem.

    Again, I really appreciate what you've done with Anki and for the
    community. I think it is perhaps the most effective and powerful learning
    tool I have ever seen in almost 30 years of teaching and learning languages.

    In fact, I am coaching an Indian grad student through his initial Anki use.
    I introduced it to a grad school class last week, and he asked me to help
    him get started so he can learn kanji and such. We've met two times to
    discuss how to manage decks and troubleshoot. I wish more students were
    receptive to Anki, but I understand why they are not. I tried to
    use/introduce Anki in many of classes over the years, but with little
    success. I tend to use Quizlet now as a teaching tool, but I still
    introduce Anki to classes and show them how I use it for my Japanese study.

    Keep up the good work!

    Cheers,

    Rich

  5. Support Staff 5 Posted by Damien Elmes on 15 Oct, 2019 08:04 AM

    Damien Elmes's Avatar

    Hi Rich,

    Glad to hear you're finding Anki useful. :-) I think it's natural that the more casual learner will gravitate towards a simpler system, as the initial learning curve is hard to justify when you're not so concerned about long term retention of information.

  6. 6 Posted by Rodrigo Gonzále... on 20 Oct, 2019 03:03 AM

    Rodrigo González's Avatar

    Hi Damien and Rich,
    I have just uninstalled and downloaded Anki again, as well as removed the Japanese Support addon and installed it again, and I still get the same error as described above.
    Can you please confirm that the code for the latest version is 3918629684?
    If it is, I would appreciate any insight as to how to fix this?
    Same as for Rich, I think, the reading generator function was working fine until very recently.
    Thank you for your help.
    Rodrigo

  7. Support Staff 7 Posted by Damien Elmes on 20 Oct, 2019 11:20 PM

    Damien Elmes's Avatar

    From the add-on description: "If you receive a message about non-Latin text, it is because the reading support does not work when your Windows login name contains characters from other languages. If you create a new Windows login using A-Z characters, or rename your existing login folder (for advanced users only!), it should resolve the problem."

  8. 8 Posted by Rodrigo Gonzále... on 21 Oct, 2019 11:45 AM

    Rodrigo González's Avatar

    Hi Damien,
    Thank you for your reply.
    This is the same account and same login that I have used for years, where the app and the addon worked without a problem.
    Can you confirm that this is the only issue that could cause this error, and therefore, that it is something new about this latest update?

  9. Support Staff 9 Posted by Damien Elmes on 21 Oct, 2019 10:38 PM

    Damien Elmes's Avatar

    It was broken in the move to Anki 2.1, and I'm afraid there is currently no way to solve it except to avoid non-Latin characters in your username.

  10. 10 Posted by Rodrigo Gonzále... on 22 Oct, 2019 12:47 AM

    Rodrigo González's Avatar

    Hi Damien,

    Thank you for your advice.
    After struggling with the login folder name change for a while, I was able to successfully enable the Japanese reading generator.
    However, now I cannot enter the Anki Support area.
    The system tells me it does not find an account with my email address, the same one I have been using so far.
    (I can enter Ankiweb, though).
    Please see the attachment, and I apologise to contact you directly like this.
    [image1.jpeg]

    Your help is appreciated.
    Regards,
    Rodrigo

    2019/10/22 7:39、Damien Elmes <[email blocked]<mailto:[email blocked]>>のメール:

  11. Support Staff 11 Posted by Damien Elmes on 22 Oct, 2019 09:59 PM

    Damien Elmes's Avatar

    Hi Rodrigo,

    This support site does not use the same login system as AnkiWeb, so you'll need to sign up for an account here before you can log in.

  12. 12 Posted by Rodrigo Gonzále... on 23 Oct, 2019 12:18 AM

    Rodrigo González's Avatar

    Hi Damien,

    Thank you for your reply.
    I meant I cannot login to the same Support forum where I was requiring about the Japanese Support.
    Do you have any clues as to what I might be doing wrong?

    Regards,
    Rodrigo

    2019/10/23 6:59、Damien Elmes <[email blocked]<mailto:[email blocked]>>のメール:

  13. Support Staff 13 Posted by Damien Elmes on 23 Oct, 2019 10:31 PM

    Damien Elmes's Avatar

    I entered your email address in the forgotten password screen and it worked for me, so the issue seems to be resolved now?

  14. 14 Posted by Rodrigo Gonzále... on 24 Oct, 2019 12:47 AM

    Rodrigo González's Avatar

    Hi Damien,
    I was able to use the Japanese reading generator add-on after changing the login folder's name, and now I was able to log back in into this forum.
    Thank you again for your helpful support.
    Rodrigo

  15. Support Staff 15 Posted by Damien Elmes on 24 Oct, 2019 09:59 PM

    Damien Elmes's Avatar

    No problem, glad to hear things are resolved now. :-)

  16. 16 Posted by Gerald Autieri on 02 Nov, 2019 08:40 PM

    Gerald Autieri's Avatar

    I got this error when using Japanese Support. Uninstalled and reinstalled but it no longer works. Just upgraded my iMac to Catalina. So maybe related to that? Any idea if this is fixable? This has been my go-to app for years! But can't imagine creating new cards without it!

    Traceback (most recent call last):
      File "aqt/webview.pyc", line 18, in run
      File "aqt/editor.pyc", line 462, in bridge
      File "anki/hooks.pyc", line 32, in runFilter
      File "/Users/jerry/Library/Application Support/Anki2/addons/japanese/reading.py", line 211, in onFocusLost
        n[dst] = mecab.reading(srcTxt)
      File "/Users/jerry/Library/Application Support/Anki2/addons/japanese/reading.py", line 78, in reading
        self.ensureOpen()
      File "/Users/jerry/Library/Application Support/Anki2/addons/japanese/reading.py", line 75, in ensureOpen
        raise Exception("Please ensure your Linux system has 64 bit binary support.")
    Exception: Please ensure your Linux system has 64 bit binary support.

  17. Support Staff 17 Posted by Damien Elmes on 02 Nov, 2019 10:19 PM

    Damien Elmes's Avatar

    If you're getting that message, it indicates you haven't updated to the latest version of the add-on.

  18. 18 Posted by Gerald Autieri on 03 Nov, 2019 01:07 AM

    Gerald Autieri's Avatar

    Thank you for the super fast reply! I did fix the error by actually upgrading Anki itself. The add-on was the latest that I downloaded from the add-on page. After the update it worked, but some other add-ons failed. Eventually I got it all sorted.

    I really appreciate all you’ve done with Anki all these years. By far this is the greatest learning tool I’ve ever used. 

    Thanks again
    Jerry

  19. Support Staff 19 Posted by Damien Elmes on 03 Nov, 2019 10:59 PM

    Damien Elmes's Avatar

    No problem Jerry, and all the best in your studies :-)

  20. 20 Posted by mnating on 17 Feb, 2020 10:44 AM

    mnating's Avatar

    The Japanese Support add-on, 3918629684, causes Anki to error out when changing the config to add both jp.takoboto into noteTypes and also Japanese into srcFields. The add-on continues to function normally in note types which use the default srcFields=Expression, dstFields=Reading, and noteTypes=Japanese, but as I get an error as soon as I click out of the Japanese field on my new note type.

    I tested with both Anki v2.1.19 and v2.1.20.

    Add-on Config

    {
        "dstFields": [
            "Reading",
            "Reading"
        ],
        "furiganaSuffix": " (furigana)",
        "noteTypes": [
            "japanese",
            "jp.takoboto"
        ],
        "srcFields": [
            "Expression",
            "Kanji",
            "Japanese"
        ]
    }
    

    Error Message, Anki v2.1.20

    Debug info:
    Anki 2.1.20 (47a1bf8b) Python 3.8.0 Qt 5.14.1 PyQt 5.14.1
    Platform: Windows 10
    Flags: frz=True ao=True sv=2
    Add-ons, last update check: 2020-02-17 10:44:57
    Caught exception:
    Traceback (most recent call last):
      File "aqt\webview.py", line 30, in cmd
      File "aqt\webview.py", line 96, in onCmd
      File "aqt\webview.py", line 422, in _onBridgeCmd
      File "aqt\editor.py", line 362, in onBridgeCmd
      File "aqt\gui_hooks.py", line 515, in __call_
      File "lib\site-packages\anki\hooks.py", line 486, in runFilter
      File "C:\Users\Micah\AppData\Roaming\Anki2\addons21\3918629684\reading.py", line 206, in onFocusLost
        dst = dstFields[srcIdx]
    IndexError: list index out of range
    

    Error Message, Anki v2.1.19

    Debug info:
    Anki 2.1.19 (3c8690ae) Python 3.8.0 Qt 5.14.0 PyQt 5.13.2
    Platform: Windows 10
    Flags: frz=True ao=True sv=2
    Caught exception:
    Traceback (most recent call last):
      File "aqt\webview.py", line 28, in cmd
      File "aqt\webview.py", line 94, in _onCmd
      File "aqt\webview.py", line 407, in _onBridgeCmd
      File "aqt\editor.py", line 359, in onBridgeCmd
      File "lib\site-packages\anki\hooks.py", line 42, in runFilter
      File "C:\Users\Micah\AppData\Roaming\Anki2\addons21\3918629684\reading.py", line 206, in onFocusLost
        dst = dstFields[srcIdx]
    IndexError: list index out of range
    
  21. Support Staff 21 Posted by Damien Elmes on 17 Feb, 2020 11:17 PM

    Damien Elmes's Avatar

    The src and dst count must match.

  22. 22 Posted by mnating on 17 Feb, 2020 11:27 PM

    mnating's Avatar

    Ah, thank you, it's working now!

    I assumed it was a many-to-many relationship, that any matching src would be matched to any matching dst (or maybe the first matching dst). A one-to-one relationship makes more sense, such that the 3rd src field is matched to the 3rd dst field.

  23. 23 Posted by Gasper on 23 Feb, 2020 07:19 PM

    Gasper's Avatar

    Japanese Support stopped working after upgrading Anki to Version 2.1.20 (47a1bf8b). Everything worked fine on my previous Anki version, but on my current version furigana readings do not get generated. I've tried deleting and reinstalling the plugin, restarting Anki several times, changing the name of my profile...

    I'm using card type named Japanese that has fields:
    * Expression * Reading

    Config file for Japanese Support:

    {
        "dstFields": [
            "Reading",
            "Reading"
        ],
        "furiganaSuffix": " (furigana)",
        "noteTypes": [
            "japanese"
        ],
        "srcFields": [
            "Expression",
            "Kanji"
        ]
    }
    
  24. 24 Posted by mnating on 24 Feb, 2020 04:32 AM

    mnating's Avatar

    @Gasper, could you try clicking in the Expression field and typing putting in your expression, clicking to another field which ought to trigger the readings to generate, clicking to a different note, then click back to the original note?

    I noticed that on 2.1.20, field-editing addons appear to be broken, but in fact just the refresh is broken. If you click away to another field and then to another note, then back to the original note, the fields will refresh and reveal they're still working. I've reported this particular issue at https://anki.tenderapp.com/discussions/beta-testing/1704-anki-2120-..., and Damien said it should be fixed in the next beta / release.

  25. 25 Posted by Gasper on 24 Feb, 2020 08:47 AM

    Gasper's Avatar

    I've tried that as I've also seen this other opened issue for v2.1.20, but without any success.

  26. Support Staff 26 Posted by Damien Elmes on 25 Feb, 2020 04:16 AM

    Damien Elmes's Avatar

    If you're still experiencing problems after 2.1.21beta2 comes out, please let me know.

  27. 27 Posted by Gasper on 25 Feb, 2020 10:24 AM

    Gasper's Avatar

    I've downloaded the latest 2.1.21beta2 and I'm still experiencing this problem. The fields do not get populated. See attached screenshot #1.

    Additional beta bug: Dark mode in OS X is not respected anymore. See attached screenshots.

  28. Support Staff 28 Posted by Damien Elmes on 25 Feb, 2020 10:47 AM

    Damien Elmes's Avatar

    Strange, it's working for me. Perhaps another add-on is interfering?

    Thanks for the heads up about the night mode issue.

  29. 29 Posted by Gasper on 25 Feb, 2020 10:57 AM

    Gasper's Avatar

    Awesome, now it works!! These are the steps I followed to get it working:

    1. Deleted Japanese Support
    2. Restarted Anki
    3. Reinstalled Japanese Support
    4. Restarted Anki
    5. Works!

    Thank you for your help.

  30. 30 Posted by thilo.mardaus on 01 Mar, 2020 11:10 PM

    thilo.mardaus's Avatar

    Japanese support suddenly stopped working after I fixed a problem with the audio recording function by completely reinstalling Anki. I also tried to uninstall and reinstall the add-on various times which did not always work properly. A couple of times I had to restart Anki without add-ons in order to delete Japanese support. Besides, the reinstallation process went far too quickly given my the size of the add-on. I now have a reinstalled version running but it does not produce the readings in the proper way. By chance I found out, that the "reading"- field only gets populated when I click the "card"-button in the "edit"-section. As soon as I close the "card"-view the readings are produced. So, at least I found a workaround for the problem. I wonder how I can return Japanese Support to its customary functionality.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac