Anki deleted all my cards and won't restore from backups

Anki locked out all my cards and wouldn’t let me look at them, I restarted my computer as it said online to try and all the cards were gone. I then tried to restore from several of the backups I have saved and got this:

Anki 2.1.20 (47a1bf8b) Python 3.8.0 Qt 5.13.1 PyQt 5.14.1
Platform: Mac 10.15.7
Flags: frz=True ao=False sv=?
Add-ons, last update check: 2022-10-26 12:59:44

Caught exception:
Traceback (most recent call last):
File “aqt/”, line 356, in accept
File “aqt/”, line 304, in doOpen
File “aqt/”, line 337, in _openBackup
File “aqt/”, line 245, in onOpenProfile
File “aqt/”, line 363, in loadProfile
File “aqt/”, line 1036, in handleImport
File “aqt/”, line 380, in importFile
File “aqt/”, line 451, in setupApkgImport
File “aqt/”, line 455, in replaceWithApkg
File “aqt/”, line 477, in unloadCollection
File “aqt/”, line 751, in closeAllWindows
File “aqt/”, line 105, in closeAll
File “aqt/”, line 475, in callback
File “aqt/”, line 455, in
File “aqt/”, line 483, in _replaceWithApkg
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xb5 in position 1: invalid start byte

I tried uploading from backup through the other way “upload backup” and got this:

Debug info:
Traceback (most recent call last):
File “aqt/”, line 433, in loadCollection
File “aqt/”, line 463, in _loadCollection
File “anki/”, line 54, in Collection
File “anki/”, line 98, in init
File “anki/”, line 186, in load
File “json/”, line 357, in loads
File “json/”, line 337, in decode
File “json/”, line 355, in raw_decode
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

I then moved Anki to the trash and tried to reinstall and when I try to upload the backups aren’t even there to click on

My CS friend fixed it

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