Add-on error

Before the error happened, I was…
[Replace this text.]

Error message (don't change this)
Anki 25.02.6 (6381f184)  (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: macOS-15.4.1-arm64-arm-64bit

Traceback (most recent call last):

  File "aqt.taskman", line 144, in _on_closures_pending

  File "aqt.taskman", line 88, in <lambda>

  File "aqt.taskman", line 108, in wrapped_done

  File "aqt.operations", line 253, in wrapped_done

  File "/Users/amaliaperez/Library/Application Support/Anki2/addons21/1322529746/gui/operations/ankihub_sync.py", line 157, in on_failure
    on_done(future_with_exception(exception))

  File "/Users/amaliaperez/Library/Application Support/Anki2/addons21/1322529746/gui/auto_sync.py", line 99, in sync_with_ankiweb
    future.result()

  File "concurrent.futures._base", line 439, in result

  File "concurrent.futures._base", line 391, in __get_result

  File "concurrent.futures.thread", line 58, in run

  File "aqt.operations", line 243, in wrapped_op

  File "/Users/amaliaperez/Library/Application Support/Anki2/addons21/1322529746/gui/operations/ankihub_sync.py", line 146, in <lambda>
    op=lambda _: ah_deck_updater.update_decks_and_media(

  File "/Users/amaliaperez/Library/Application Support/Anki2/addons21/1322529746/gui/deck_updater.py", line 65, in update_decks_and_media
    self._update_decks(ah_dids)

  File "/Users/amaliaperez/Library/Application Support/Anki2/addons21/1322529746/gui/deck_updater.py", line 88, in _update_decks
    should_continue = self._update_single_deck(ah_did)

  File "/Users/amaliaperez/Library/Application Support/Anki2/addons21/1322529746/gui/deck_updater.py", line 102, in _update_single_deck
    result = self._fetch_and_apply_deck_updates(ankihub_did)

  File "/Users/amaliaperez/Library/Application Support/Anki2/addons21/1322529746/gui/deck_updater.py", line 143, in _fetch_and_apply_deck_updates
    import_result = self._importer.import_ankihub_deck(

  File "/Users/amaliaperez/Library/Application Support/Anki2/addons21/1322529746/main/importing.py", line 152, in import_ankihub_deck
    self._import_note_types(note_types=note_types)

  File "/Users/amaliaperez/Library/Application Support/Anki2/addons21/1322529746/main/importing.py", line 199, in _import_note_types
    self._adjust_note_types_in_anki_db(note_types)

  File "/Users/amaliaperez/Library/Application Support/Anki2/addons21/1322529746/main/importing.py", line 208, in _adjust_note_types_in_anki_db
    _rename_note_types(remote_note_types)

  File "/Users/amaliaperez/Library/Application Support/Anki2/addons21/1322529746/main/importing.py", line 920, in _rename_note_types
    aqt.mw.col.models.update_dict(local_note_type)

  File "anki.models", line 227, in update_dict

  File "anki._backend_generated", line 1130, in update_notetype_legacy

  File "anki._backend", line 172, in _run_command

anki.errors.CardTypeError: Card template <U+2068>1<U+2069> in note type '<U+2068>UWSOM_Cloze (UW Deck [updated] / egrigore)<U+2069>' has a problem.<br>Expected to find a field replacement on the front of the card template.

Sentry link (for developers)

Hello,

The error originates from the UWSOM_Cloze (UW Deck [updated] / egrigore) note type, it contains an error.
Since this deck was not created or maintained by the AnkiHub team, the only workaround is to contact the deck author and notify them about the issue.

If you have any other problems, please let us know!

You can try deleting the “UWSOM_Cloze (UW Deck [updated] / egrigore)” note type from Tools > Manage Note Types then sync again.

1 Like