Error while switching profiles on Anki

Before the error happened, I was…
Trying to switch profiles on Anki

Error message (don't change this)
Anki 24.11 (87ccd24e)  (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: macOS-15.5-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.operations", line 253, in wrapped_done

  File "/Users/kostamantzios/Library/Application Support/Anki2/addons21/1322529746/gui/media_sync.py", line 64, in on_failure
    raise exception

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

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

  File "/Users/kostamantzios/Library/Application Support/Anki2/addons21/1322529746/gui/media_sync.py", line 68, in <lambda>
    op=lambda _: self._update_deck_media_and_download_missing_media(),

  File "/Users/kostamantzios/Library/Application Support/Anki2/addons21/1322529746/gui/media_sync.py", line 136, in _update_deck_media_and_download_missing_media
    missing_media_names = self._missing_media_for_ah_deck(ah_did)

  File "/Users/kostamantzios/Library/Application Support/Anki2/addons21/1322529746/gui/media_sync.py", line 214, in _missing_media_for_ah_deck
    referenced_media = self._media_referenced_by_notes(ah_did)

  File "/Users/kostamantzios/Library/Application Support/Anki2/addons21/1322529746/gui/media_sync.py", line 195, in _media_referenced_by_notes
    note = aqt.mw.col.get_note(nid)

  File "anki.collection", line 496, in get_note

  File "anki.notes", line 50, in __init__

  File "anki.notes", line 58, in load

  File "anki.notes", line 68, in _load_from_backend_note

  File "anki.notes", line 141, in note_type

  File "anki.models", line 164, in get

  File "anki._backend_generated", line 1170, in get_notetype_legacy

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

anki.errors.InvalidInput: CollectionNotOpen

Sentry link (for developers)

Hello,

Please ensure you are on the latest version of Anki. You can download it here: https://apps.ankiweb.net/. After downloading, simply run the downloaded file to update your application.

Additionally, please update the AnkiHub add-on:

  • On your Anki main screen, go to Tools > Add-ons > Check for Updates
  • After the update is complete, please restart Anki.

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