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/utils.py”, line 356, in accept
File “aqt/main.py”, line 304, in doOpen
File “aqt/main.py”, line 337, in _openBackup
File “aqt/main.py”, line 245, in onOpenProfile
File “aqt/main.py”, line 363, in loadProfile
File “aqt/main.py”, line 1036, in handleImport
File “aqt/importing.py”, line 380, in importFile
File “aqt/importing.py”, line 451, in setupApkgImport
File “aqt/importing.py”, line 455, in replaceWithApkg
File “aqt/main.py”, line 477, in unloadCollection
File “aqt/main.py”, line 751, in closeAllWindows
File “aqt/init.py”, line 105, in closeAll
File “aqt/main.py”, line 475, in callback
File “aqt/importing.py”, line 455, in
File “aqt/importing.py”, 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/main.py”, line 433, in loadCollection
File “aqt/main.py”, line 463, in _loadCollection
File “anki/storage.py”, line 54, in Collection
File “anki/collection.py”, line 98, in init
File “anki/collection.py”, line 186, in load
File “json/init.py”, line 357, in loads
File “json/decoder.py”, line 337, in decode
File “json/decoder.py”, 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.