Ankihub Step Deck Installation Error

I have tried both on my PC and Mac. I reverted to the 2.1.56 version of Anki as per the user guide instructions. I have tried deleting and reinstalling the Ankihub add-on. Really confused with why this isn’t working. Would really appreciate some help so I can get the Anking decks. Thanks!

Error message (don't change this)
Anki 2.1.56 (07fd88dd) Python 3.9.15 Qt 6.3.2 PyQt 6.3.1
Platform: macOS-13.4-x86_64-i386-64bit
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2023-07-29 14:44:23

Traceback (most recent call last):

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

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

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

  File "/Users/desouzac/Library/Application Support/Anki2/addons21/1322529746/gui/operations/deck_installation.py", line 39, in on_install_done
    on_done(future_with_exception(e))

  File "/Users/desouzac/Library/Application Support/Anki2/addons21/1322529746/gui/operations/ankihub_sync.py", line 17, in on_new_deck_subscriptions_done
    on_done(future_with_exception(future.exception()))

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

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

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

  File "/Users/desouzac/Library/Application Support/Anki2/addons21/1322529746/gui/operations/deck_installation.py", line 37, 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 "/Users/desouzac/Library/Application Support/Anki2/addons21/1322529746/gui/operations/deck_installation.py", line 85, in <lambda>
    task=lambda: _download_and_install_decks_inner(ankihub_dids),

  File "/Users/desouzac/Library/Application Support/Anki2/addons21/1322529746/gui/operations/deck_installation.py", line 114, in _download_and_install_decks_inner
    raise exceptions[0]

1322529746.gui.exceptions.DeckDownloadAndInstallError: Error while downloading and installing deck e77aedfe-a636-40e2-8169-2fce2673187e: 1 template required

Sentry link (for developers)

Can you try upgrading to version 2.1.64 as this is the version we are currently recommending.

Then try installing the addon and see if the error persists

1 Like

Still getting an add-on error. Looks pretty similar to the one I got on the 2.1.56 version. What should I do from here?

Anki 2.1.64 (581f82c5) Python 3.9.15 Qt 6.5.0 PyQt 6.5.0
Platform: macOS-13.4-x86_64-i386-64bit
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2023-07-30 05:27:23

Traceback (most recent call last):

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

File “aqt.taskman”, line 71, in

File “aqt.taskman”, line 90, in wrapped_done

File “/Users/desouzac/Library/Application Support/Anki2/addons21/1322529746/gui/operations/deck_installation.py”, line 39, in on_install_done
on_done(future_with_exception(e))

File “/Users/desouzac/Library/Application Support/Anki2/addons21/1322529746/gui/operations/ankihub_sync.py”, line 17, in on_new_deck_subscriptions_done
on_done(future_with_exception(future.exception()))

File “/Users/desouzac/Library/Application Support/Anki2/addons21/1322529746/gui/menu.py”, line 417, in on_done
future.result()

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

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

File “/Users/desouzac/Library/Application Support/Anki2/addons21/1322529746/gui/operations/deck_installation.py”, line 37, 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 “/Users/desouzac/Library/Application Support/Anki2/addons21/1322529746/gui/operations/deck_installation.py”, line 85, in
task=lambda: _download_and_install_decks_inner(ankihub_dids),

File “/Users/desouzac/Library/Application Support/Anki2/addons21/1322529746/gui/operations/deck_installation.py”, line 114, in _download_and_install_decks_inner
raise exceptions[0]

1322529746.gui.exceptions.DeckDownloadAndInstallError: Error while downloading and installing deck e77aedfe-a636-40e2-8169-2fce2673187e: 1 template required

@cairo5123 Can you export your whole collection (without media) and upload it here? You might need to zip it first to be able to upload it.

1 Like

Hey Abdo, it’s not letting me attach my collection to this post. The error message states that it doesn’t support this file type (.colpkg). What should I do instead?

Ok so I read your message again and was able to format it in a zip file. But there’s a size limit of 4 MB and the zip file is 25.9 MB. How should I proceed?

Try uploading it to some file sharing site like https://gofile.io/ (no account required) and share the link.

The zip file should be there. Let me know what else I should do.

We identified an issue in the add-on and are working on a fix.

3 Likes

Sweet, could you be sure to message me or reply here with updates? Thanks Abdo

@abdo

I tried following your instructions on the Syncing error after subscribing to AnkiHub AnKing deck and hitting sync thread, deleting the specific note types. It initially seemed as if Ankihub was going to install V12, but then the installment paused completely, so I tried restarting it. Now, I get the following error. Let me know what I should do. Thanks!

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.64 (581f82c5) Python 3.9.15 Qt 6.5.0 PyQt 6.5.0
Platform: macOS-13.4-x86_64-i386-64bit
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2023-08-15 09:34:10
Add-ons possibly involved: ⁨AnkiHub⁩

Caught exception:
Traceback (most recent call last):
File “aqt.progress”, line 118, in handler
File “aqt.main”, line 217, in on_window_init
File “aqt.main”, line 316, in setupProfile
File “aqt.main”, line 496, in loadProfile
File “_aqt.hooks”, line 3809, in call
File “/Users/desouzac/Library/Application Support/Anki2/addons21/1322529746/entry_point.py”, line 54, in _on_profile_did_open
_after_profile_setup()
File “/Users/desouzac/Library/Application Support/Anki2/addons21/1322529746/entry_point.py”, line 94, in _after_profile_setup
_adjust_ankihub_note_type_templates()
File “/Users/desouzac/Library/Application Support/Anki2/addons21/1322529746/entry_point.py”, line 175, in _adjust_ankihub_note_type_templates
modify_note_type_templates(mids_filtered)
File “/Users/desouzac/Library/Application Support/Anki2/addons21/1322529746/main/utils.py”, line 228, in modify_note_type_templates
aqt.mw.col.models.update_dict(note_type)
File “anki.models”, line 223, in update_dict
File “anki._backend_generated”, line 862, in update_notetype_legacy
File “anki._backend”, line 156, in _run_command
anki.errors.InvalidInput: 1 field required

Your issue requires an update to the add-on, which will be released soon.

@abdo is there an estimated date for this update? I’ve paid for a year’s worth of Ankihub like 4 weeks ago and still haven’t been able to use the v12 deck

The update was released last week and it fixes your issue according to my tests with your collection.

Well it seems that there’s another error now. Let me know what I should do. Thanks!

Anki 2.1.64 (581f82c5) Python 3.9.15 Qt 6.5.0 PyQt 6.5.0
Platform: macOS-13.4-x86_64-i386-64bit
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2023-08-23 11:56:48

Traceback (most recent call last):

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

File “aqt.taskman”, line 71, in

File “aqt.taskman”, line 90, in wrapped_done

File “/Users/desouzac/Library/Application Support/Anki2/addons21/1322529746/gui/operations/db_check/anki_db_check.py”, line 58, in _on_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 “/Users/desouzac/Library/Application Support/Anki2/addons21/1322529746/gui/operations/db_check/anki_db_check.py”, line 51, in
lambda: _reset_decks(ah_dids_with_missing_ah_nids),

File “/Users/desouzac/Library/Application Support/Anki2/addons21/1322529746/gui/operations/db_check/anki_db_check.py”, line 114, in _reset_decks
reset_local_changes_to_notes(nids, ah_did=ah_did)

File “/Users/desouzac/Library/Application Support/Anki2/addons21/1322529746/main/reset_local_changes.py”, line 35, in reset_local_changes_to_notes
notes_data = [

File “/Users/desouzac/Library/Application Support/Anki2/addons21/1322529746/main/reset_local_changes.py”, line 38, in
if (note_data := ankihub_db.note_data(nid)) is not None

File “/Users/desouzac/Library/Application Support/Anki2/addons21/1322529746/db/db.py”, line 316, in note_data
fields=[

File “/Users/desouzac/Library/Application Support/Anki2/addons21/1322529746/db/db.py”, line 318, in
name=field_names[i],

IndexError: list index out of range

Does this error occur everytime you start up Anki?

@Ahmed7 yes. After I hit the “download from Ankiweb” button, this is the error message I get

You should be pressing upload to ankiweb if you are installing the AnKing deck. Can you try doing that and see if it makes any difference

1 Like

Yes! it worked, thank you so much

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.