Note type changing and ankihub not syncing

I just noticed that a bunch of my note types changed. Ankihub won;t sync. I tried updating anki.

Error message (don't change this)
Anki 24.06.3 (d678e393)  (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: Windows-10-10.0.22631

Traceback (most recent call last):

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

  File "C:\Users\KathrynSharp\AppData\Roaming\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 "C:\Users\KathrynSharp\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\utils.py", line 39, in wrapper
    return func(*args, **kwargs)

  File "C:\Users\KathrynSharp\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\ankihub_sync.py", line 118, in _on_sync_done
    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 "C:\Users\KathrynSharp\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\ankihub_sync.py", line 110, in <lambda>
    task=lambda: ah_deck_updater.update_decks_and_media(to_sync_ah_dids),

  File "C:\Users\KathrynSharp\AppData\Roaming\Anki2\addons21\1322529746\gui\deck_updater.py", line 61, in update_decks_and_media
    self._update_decks(ah_dids)

  File "C:\Users\KathrynSharp\AppData\Roaming\Anki2\addons21\1322529746\gui\deck_updater.py", line 84, in _update_decks
    should_continue = self._update_single_deck(ah_did)

  File "C:\Users\KathrynSharp\AppData\Roaming\Anki2\addons21\1322529746\gui\deck_updater.py", line 98, in _update_single_deck
    result = self._fetch_and_apply_deck_updates(ankihub_did)

  File "C:\Users\KathrynSharp\AppData\Roaming\Anki2\addons21\1322529746\gui\deck_updater.py", line 135, in _fetch_and_apply_deck_updates
    import_result = self._importer.import_ankihub_deck(

  File "C:\Users\KathrynSharp\AppData\Roaming\Anki2\addons21\1322529746\main\importing.py", line 145, in import_ankihub_deck
    self._import_note_types(note_types=note_types)

  File "C:\Users\KathrynSharp\AppData\Roaming\Anki2\addons21\1322529746\main\importing.py", line 188, in _import_note_types
    _adjust_note_types_in_anki_db(note_types)

  File "C:\Users\KathrynSharp\AppData\Roaming\Anki2\addons21\1322529746\main\importing.py", line 753, in _adjust_note_types_in_anki_db
    _ensure_local_and_remote_fields_are_same(remote_note_types)

  File "C:\Users\KathrynSharp\AppData\Roaming\Anki2\addons21\1322529746\main\importing.py", line 843, in _ensure_local_and_remote_fields_are_same
    aqt.mw.col.models.update_dict(local_note_type)

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

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

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

anki.errors.CardTypeError: Card template <U+2068>2<U+2069> in notetype '<U+2068>AnKingOverhaul (AnKing / AnKingMed)<U+2069>' has a problem.<br>The front side is identical to card template <U+2068>1<U+2069>.

Sentry link (for developers)

Hello,

Deleting the “AnKingOverhaul (AnKing / AnKingMed)” notetype from Tools > Manage Notetypes then syncing again should work.

Tried that. I’m still getting an error when I sync.

Anki 24.06.3 (d678e393) (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: Windows-10-10.0.22631

Traceback (most recent call last):

File “C:\Users\KathrynSharp\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\deck_installation.py”, line 168, in _download_and_install_decks_inner
_download_and_install_single_deck(

File “C:\Users\KathrynSharp\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\deck_installation.py”, line 204, in _download_and_install_single_deck
result = _install_deck(

File “C:\Users\KathrynSharp\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\deck_installation.py”, line 238, in _install_deck
import_result = importer.import_ankihub_deck(

File “C:\Users\KathrynSharp\AppData\Roaming\Anki2\addons21\1322529746\main\importing.py”, line 145, in import_ankihub_deck
self._import_note_types(note_types=note_types)

File “C:\Users\KathrynSharp\AppData\Roaming\Anki2\addons21\1322529746\main\importing.py”, line 188, in _import_note_types
_adjust_note_types_in_anki_db(note_types)

File “C:\Users\KathrynSharp\AppData\Roaming\Anki2\addons21\1322529746\main\importing.py”, line 753, in _adjust_note_types_in_anki_db
_ensure_local_and_remote_fields_are_same(remote_note_types)

File “C:\Users\KathrynSharp\AppData\Roaming\Anki2\addons21\1322529746\main\importing.py”, line 843, in _ensure_local_and_remote_fields_are_same
aqt.mw.col.models.update_dict(local_note_type)

File “anki.models”, line 226, in update_dict

File “anki._backend_generated”, line 1097, in update_notetype_legacy

File “anki._backend”, line 171, in _run_command

anki.errors.CardTypeError: Card template ⁨2⁩ in notetype ‘⁨AnKingOverhaul (AnKing / AnKingMed)⁩’ has a problem.
The front side is identical to card template ⁨1⁩.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):

File “aqt.taskman”, line 142, in _on_closures_pending

File “C:\Users\KathrynSharp\AppData\Roaming\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 “C:\Users\KathrynSharp\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\utils.py”, line 39, in wrapper
return func(*args, **kwargs)

File “C:\Users\KathrynSharp\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\ankihub_sync.py”, line 96, in _on_new_deck_subscriptions_done
future.result()

File “concurrent.futures._base”, line 439, in result

File “concurrent.futures._base”, line 391, in __get_result

File “C:\Users\KathrynSharp\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\utils.py”, line 39, in wrapper
return func(*args, **kwargs)

File “C:\Users\KathrynSharp\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\deck_installation.py”, line 85, in _on_install_done
import_results: List[AnkiHubImportResult] = 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 “C:\Users\KathrynSharp\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\deck_installation.py”, line 71, in
task=lambda: _download_and_install_decks_inner(

File “C:\Users\KathrynSharp\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\deck_installation.py”, line 187, in _download_and_install_decks_inner
raise exceptions[0]

1322529746.gui.exceptions.DeckDownloadAndInstallError: Error while downloading and installing deck e77aedfe-a636-40e2-8169-2fce2673187e: Card template ⁨2⁩ in notetype ‘⁨AnKingOverhaul (AnKing / AnKingMed)⁩’ has a problem.
The front side is identical to card template ⁨1⁩.

Also, now it is saying that I have an anki deck to install (anking) but it is not able to.

@abdo.nh

It just won’t download anking step 1 deck again. Even syncing it doesn’t work.

Hello,

There is a bug causing this issue. The developers have been notified and are working on a fix.

We will update you when it has been fixed!

Thank you for your patience :heart_hands:

If you’re still having issues, please go to AnkiHub > Help > Upload logs and data and post the filename shown.

I’m still having issues. I will do this.

ankihub_addon_debug_info_dd7fe_1723733925.zip

You still have the “AnKingOverhaul (AnKing / AnKingMed)” note type and it only has Front/Back fields for some reason. Can you try changing its name to something else then syncing again?

I will try. I deleted the card type earlier, and it didn’t work. I’ll just rename it?

Didn’t work.

Are you getting the exact same error? I’d expect it to change.