I was trying to export my cards and now I cannot access my decks. I get the error message below

Error
An error occurred. Please use Tools > Check Database to see if that fixes the problem.
If problems persist, please report the problem on our support site. Please copy and paste the information below into your report.
Anki 2.1.48 (fb07bad3) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Mac 10.16
Flags: frz=True ao=False sv=?
Add-ons, last update check: 2023-07-03 10:52:15

Caught exception:
Traceback (most recent call last):
File “aqt/webview.py”, line 41, in cmd
File “aqt/webview.py”, line 142, in _onCmd
File “aqt/webview.py”, line 595, in _onBridgeCmd
File “aqt/toolbar.py”, line 168, in _linkHandler
File “aqt/toolbar.py”, line 172, in _deckLinkHandler
File “aqt/main.py”, line 672, in moveToState
File “aqt/main.py”, line 679, in _deckBrowserState
File “aqt/deckbrowser.py”, line 68, in show
File “aqt/deckbrowser.py”, line 142, in _renderPage
File “anki/scheduler/base.py”, line 52, in deck_due_tree
File “anki/_backend/generated.py”, line 185, in deck_tree
File “anki/_backend/init.py”, line 131, in _run_command
anki.errors.InvalidInput: CollectionNotOpen

Please follow the steps on When problems occur - Frequently Asked Questions

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