Whenever I try to install this deck, Anki tells me that there was an error. I am able to see the deck and the cards on my desktop app, but cannot enable âsubdecksâ option as I would like, since the Anki-Hub add-on says I havenât installed the deck. Every time I try to to install it creates a new deck, so now I have multiple of the same deck installed. I also cannot choose to change the destination of the cards on Deck Management, which a classmate suggested, since Anki-Hub again says I havenât downloaded it. I made sure my Anki-Hub add-on and Anki app were up to date, but still I am getting the same error message. Please help!
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: macOS-14.5-arm64-arm-64bit
Traceback (most recent call last):
File "/Users/dani/Library/Application Support/Anki2/addons21/1322529746/gui/operations/deck_installation.py", line 168, in _download_and_install_decks_inner
_download_and_install_single_deck(
File "/Users/dani/Library/Application Support/Anki2/addons21/1322529746/gui/operations/deck_installation.py", line 204, in _download_and_install_single_deck
result = _install_deck(
File "/Users/dani/Library/Application Support/Anki2/addons21/1322529746/gui/operations/deck_installation.py", line 238, in _install_deck
import_result = importer.import_ankihub_deck(
File "/Users/dani/Library/Application Support/Anki2/addons21/1322529746/main/importing.py", line 147, in import_ankihub_deck
dids = self._import_notes(
File "/Users/dani/Library/Application Support/Anki2/addons21/1322529746/main/importing.py", line 249, in _import_notes
self._create_notes(notes_to_create_by_ah_nid, notes_data=upserted_notes_data)
File "/Users/dani/Library/Application Support/Anki2/addons21/1322529746/main/importing.py", line 349, in _create_notes
self._create_notes_inner(
File "/Users/dani/Library/Application Support/Anki2/addons21/1322529746/main/importing.py", line 481, in _create_notes_inner
aqt.mw.col.db.execute(
File "anki.dbproxy", line 71, in all
File "anki.dbproxy", line 65, in _query
File "anki._backend", line 98, in db_query
File "anki._backend", line 122, in _db_command
anki.errors.DBError: DbError { info: "SqliteFailure(Error { code: ConstraintViolation, extended_code: 1555 }, Some(\"UNIQUE constraint failed: notes.id\"))", kind: Other }
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 "/Users/dani/Library/Application Support/Anki2/addons21/1322529746/gui/decks_dialog.py", line 265, in on_done
future.result()
File "concurrent.futures._base", line 439, in result
File "concurrent.futures._base", line 391, in __get_result
File "/Users/dani/Library/Application Support/Anki2/addons21/1322529746/gui/operations/utils.py", line 39, in wrapper
return func(*args, **kwargs)
File "/Users/dani/Library/Application Support/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 "/Users/dani/Library/Application Support/Anki2/addons21/1322529746/gui/operations/utils.py", line 39, in wrapper
return func(*args, **kwargs)
File "/Users/dani/Library/Application Support/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 "/Users/dani/Library/Application Support/Anki2/addons21/1322529746/gui/operations/deck_installation.py", line 71, in <lambda>
task=lambda: _download_and_install_decks_inner(
File "/Users/dani/Library/Application Support/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 8d09f643-7188-40d2-b522-3a6b167e83e1: DbError { info: "SqliteFailure(Error { code: ConstraintViolation, extended_code: 1555 }, Some(\"UNIQUE constraint failed: notes.id\"))", kind: Other }