Before the error happened, I was…
[subscribed to a deck on AnkiHUB, than tried to sync]
edit: after closing Anki, it downloaded the deck twice as so:
Still, when I try to sync AnkiHUB I get this error msg:
Error message (don't change this)
Anki 2.1.64 (581f82c5) Python 3.9.15 Qt 6.4.3 PyQt 6.4.0
Platform: Windows-10-10.0.19045
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2024-03-05 18:21:36
Traceback (most recent call last):
File "C:\Users\####\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\deck_installation.py", line 155, in _download_and_install_decks_inner
_download_and_install_single_deck(
File "C:\Users\####\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\deck_installation.py", line 190, in _download_and_install_single_deck
result = _install_deck(
File "C:\Users\####\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\deck_installation.py", line 222, in _install_deck
import_result = importer.import_ankihub_deck(
File "C:\Users\####\AppData\Roaming\Anki2\addons21\1322529746\main\importing.py", line 143, in import_ankihub_deck
dids = self._import_notes(
File "C:\Users\####\AppData\Roaming\Anki2\addons21\1322529746\main\importing.py", line 230, in _import_notes
self._create_notes(notes_to_create_by_ah_nid, notes_data=upserted_notes_data)
File "C:\Users\####\AppData\Roaming\Anki2\addons21\1322529746\main\importing.py", line 336, in _create_notes
self._create_notes_inner(
File "C:\Users\####\AppData\Roaming\Anki2\addons21\1322529746\main\importing.py", line 471, in _create_notes_inner
aqt.mw.col.db.execute(
File "anki.dbproxy", line 67, in all
File "anki.dbproxy", line 61, in _query
File "anki._backend", line 92, in db_query
File "anki._backend", line 116, 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 122, in _on_closures_pending
File "C:\Users\####\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\ankihub_sync.py", line 64, in <lambda>
on_done=lambda future: on_new_deck_subscriptions_done(
File "C:\Users\####\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\ankihub_sync.py", line 27, in on_new_deck_subscriptions_done
on_done(future_with_exception(future.exception()))
File "C:\Users\####\AppData\Roaming\Anki2\addons21\1322529746\gui\menu.py", line 329, in on_done
future.result()
File "concurrent.futures._base", line 439, in result
File "concurrent.futures._base", line 391, in __get_result
File "C:\Users\####\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\utils.py", line 39, in wrapper
return func(*args, **kwargs)
File "C:\Users\####\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\deck_installation.py", line 77, 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\####\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\deck_installation.py", line 67, in <lambda>
task=lambda: _download_and_install_decks_inner(
File "C:\Users\####\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\deck_installation.py", line 175, in _download_and_install_decks_inner
raise exceptions[0]
1322529746.gui.exceptions.DeckDownloadAndInstallError: Error while downloading and installing deck c784aa1c-edc1-4393-bb86-01c4efaad3c3: DbError { info: "SqliteFailure(Error { code: ConstraintViolation, extended_code: 1555 }, Some(\"UNIQUE constraint failed: notes.id\"))", kind: Other }