Multiple Choice plug-in error

After updating the Multiple Choice plug-in, adding a new card to a deck, then re-starting Anki, an error is thrown at every launch:


Anki 2.1.54 (b6a7760c) Python 3.9.7 Qt 6.3.1 PyQt 6.3.1
Platform: Mac 13.1
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2023-01-16 13:42:06
Add-ons possibly involved: <U+2068>Multiple Choice for Anki<U+2069>

Caught exception:
Traceback (most recent call last):
  File "aqt.progress", line 118, in handler
  File "aqt.main", line 197, in on_window_init
  File "aqt.main", line 290, in setupProfile
  File "aqt.main", line 470, in loadProfile
  File "aqt.hooks_gen", line 3244, in __call__
  File "/Users/radioRocket/Library/Application Support/Anki2/addons21/1566095810/template.py", line 157, in manage_multiple_choice_note_type
    getOrCreateModel()
  File "/Users/radioRocket/Library/Application Support/Anki2/addons21/1566095810/template.py", line 149, in getOrCreateModel
    return updateTemplate(mw.col)
  File "/Users/radioRocket/Library/Application Support/Anki2/addons21/1566095810/template.py", line 137, in updateTemplate
    col.models.save(model)
  File "anki.models", line 559, in save
  File "anki.models", line 542, in update
  File "anki._backend.generated", line 861, in add_or_update_notetype
  File "anki._backend", line 146, in _run_command
anki.errors.CardTypeError: Card template <U+2068>1<U+2069> in notetype '<U+2068>AllInOne (kprim, mc, sc)<U+2069>' has a problem.<br>See the preview for more information.

No error thrown after disabling Multiple Choice and relaunching.

I’m at a loss, however, as to how to address the issue in such a way as to continue using Multiple Choice. Any recommendations as to what can be done?

Try add-ons → Update all
Then Manage note types > add → clone AllInOne (kprim, mc, sc)

if that don’t work, maybe update to the latest version and repeat the steps above

This problem was reported in Error Code with Ankimc · Issue #84 · zjosua/anki-mc · GitHub
Alternative to add-on: Multiple Choice Support - AnkiWeb

1 Like

Thanks, NameLessGO, but the same error is thrown.

Then would recommend changing to Multiple Choice Support - AnkiWeb, its easier to make cards that way