anki.errors.InvalidInput: CollectionNotOpen


I got this error on Anki 2.1.66 whilst trying to export my collection. It disappeared after I tried again.


  1. Computer went to sleep
  2. I opened the computer
  3. Ctrl+E in Anki
  4. Chosen Anki Collection Package (note: I have legacy export toggled)
  5. Press Export
  6. Error occurs

I know that legacy export will be deprecated at some point in the future, but I just thought to report this error in case it is something important.



Anki 2.1.66 (70506aeb) Python 3.9.15 Qt 6.5.2 PyQt 6.5.2
Platform: Windows
Flags: frz=True ao=False sv=?
Add-ons, last update check: 2023-10-07 14:11:38

Caught exception:
Traceback (most recent call last):
  File "aqt.progress", line 118, in handler
  File "aqt.main", line 1470, in on_periodic_backup_timer
  File "aqt.main", line 1487, in _create_backup_with_progress
  File "anki.collection", line 349, in legacy_checkpoint_pending
  File "anki.collection", line 1124, in _have_outstanding_checkpoint
  File "anki.collection", line 1107, in _check_backend_undo_status
  File "anki._backend_generated", line 130, in get_undo_status
  File "anki._backend", line 151, in _run_command
anki.errors.InvalidInput: CollectionNotOpen

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