Unable to get Anki running on new Mac computer

Hello,

I’ve been using Anki for about a year and have a fairly big collection built up. I recently moved to a new Mac and installed Anki on it, but I keep getting this error whenever I open Anki up. I’ve tried various things from opening up my .colpkg file directly to “check database” to trying to import, but none of them work. This is the error I get -

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.49 (dc80804a) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Mac 10.16
Flags: frz=True ao=False sv=2
Add-ons, last update check: 2022-03-16 16:08:04

Caught exception:
Traceback (most recent call last):
File “aqt/taskman.py”, line 101, in _on_closures_pending
File “aqt/taskman.py”, line 71, in
File “aqt/importing.py”, line 423, in on_done
File “aqt/main.py”, line 769, in reset
File “aqt/main.py”, line 721, in _synthesize_op_did_execute_from_reset
File “aqt/hooks_gen.py”, line 2859, in call
File “aqt/main.py”, line 733, in on_operation_did_execute
File “aqt/deckbrowser.py”, line 88, in op_executed
File “aqt/deckbrowser.py”, line 79, in refresh_if_needed
File “aqt/deckbrowser.py”, line 74, in refresh
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.DBError: DbError { info: “SqliteFailure(Error { code: DatabaseCorrupt, extended_code: 11 }, Some(“database disk image is malformed”))”, kind: Other }

Does anyone have suggestions? Thanks in advance for the help.

You’ll need to restore from a backup: Restoring an Automatic Backup (Recovering from Data Loss) - Frequently Asked Questions

Thank you for your response. That is what I was trying to do when running into that error. For some reason what finally worked is using an old version of Anki, uploading my cards and then upgrading to the latest version.