TheDabblingDuck / ankimote

Ankimote is an addon that adds remote control functionality to Anki flashcards
MIT License
25 stars 4 forks source link

How can I show 'basic typing cards' using ankimote #43

Open Cybeuu opened 1 year ago

Cybeuu commented 1 year ago

I keep getting an error whenever i try to show a basic typing card using ankimote. swiping the card (show/good) once gives me an error and doing it again marks the card 'good' without ever showing the answer.

Although I know Ankimote isn't meant for typing cards but is there a way i could use it without changing the card type to just 'basic' as ive got a hell lot of them.

Heres the error popup i get:


> 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 to the add-on author.
> Debug info:
> Anki 2.1.54 (b6a7760c) Python 3.9.7 Qt 6.3.1 PyQt 6.3.1
> Platform: Windows 10
> Flags: frz=True ao=True sv=2
> Add-ons, last update check: 2023-01-11 10:40:41
> 
> Caught exception:
> Traceback (most recent call last):
>   File "C:\Users\Admin\AppData\Roaming\Anki2\addons21\149004221\__init__.py", line 224, in handleMessage
>     mw.reviewer._showAnswer()
>   File "decorator", line 232, in fun
>   File "anki.hooks", line 89, in decorator_wrapper
>   File "anki.hooks", line 86, in repl
>   File "C:\Users\Admin\AppData\Roaming\Anki2\addons21\1374772155\main.py", line 278, in on_show_answer
>     return _old(self)
>   File "aqt.reviewer", line 402, in _showAnswer
>   File "aqt.reviewer", line 332, in _mungeQA
>   File "aqt.reviewer", line 548, in typeAnsFilter
>   File "aqt.reviewer", line 610, in typeAnsAnswerFilter
>   File "aqt.reviewer", line 687, in correct
>   File "aqt.reviewer", line 651, in tokenizeComparison
> TypeError: normalize() argument 2 must be str, not None