json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

I’ve been using anki for a couple of years. I did something that erased backside of all cards. I tried to fix it but caused more problems. So I tried to download a new version of anki. I think I’ve lost all my cards but at least wanted to be able to start over and use the app. I’ve tried downloading several times. I keep getting this message. Nothing works.

Anki was unable to open your collection file. If problems persist after restarting your computer, please use the Open Backup button in the profile manager.

Debug info:
Traceback (most recent call last):
File “aqt/main.py”, line 441, in loadCollection
File “aqt/main.py”, line 462, in _loadCollection
File “anki/storage.py”, line 59, in Collection
File “anki/collection.py”, line 101, in init
File “anki/collection.py”, line 196, 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)

Please see the note at the top of https://changes.ankiweb.net/#/

When I click the ankiweb desktop app, it opened the app but the anki screen was blank. Like no decks, no options to click anything. All my decks are on the web, so they definitely exist. I restarted the desktop app, no luck. I then restarted computer. no luck. then i tried uninstalling, reinstalling the app. then i tried restoring to a backup. now this is all i get when i try using the desktop app:

Anki was unable to open your collection file. If problems persist after restarting your computer, please use the Open Backup button in the profile manager.
Debug info:
Traceback (most recent call last):
File “aqt\main.py”, line 441, in loadCollection
File “aqt\main.py”, line 462, in loadCollection
File “lib\site-packages\anki\storage.py”, line 59, in Collection
File “lib\site-packages\anki\collection.py”, line 101, in_init_
File “lib\site-packages\anki\collection.py”, line 196, in load
File “json_init_.py” line 357, in loads
File “json\decoder.py”, line 337, in decode
File “json\decoder.py”, line 335, in raw_decode
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

You may have installed an earlier version:

After using the latest version, if you wish to open your collection with an earlier Anki release, please go to the File>Switch Profile menu item, and click on “Downgrade & Quit”. If you skip this step, you may get an error message when opening your collection in an older Anki version, and you will need to return to this version, downgrade, then try again.

2 Likes

No all new. I tried 2.1.26, 2.1.22, and 2.1.15. None of them worked

Once you used 2.1.26 with your collection, you need to click “Downgrade & Quit” in order to open your collection with 2.1.22 or 2.1.15. The opposite is not true, you can open your collection with 2.1.26 for the first time without doing anything.

2 Likes

I had the latest version of Anki 2.1.26, but then I found convenient editing add-on
https://ankiweb.net/shared/info/1051095155
they said:
Supported Anki versions:

  • 2.1.22-2.1.23 (updated 2020-06-17)
    so I downloaded it.
    My current version is 2.1.22
    but then I couldn’t open my first profile, although I had backup, but after two restarting my computer the problem is still there. I had some decks which I didn’t export on 1st profile.
    image

Could you help me please?

re-install the the previous version that you had installed (2.1.26)
on that version go to File -> Switch Profile and click on Downgrade & quit then install 2.1.22

2 Likes

after re-installing the lastest I can not use MIA editor, right? :frowning:

re-installing the latest version is only for you to be able to use the downgrade & quit button. when you do that, you’ll be able to install 2.1.22 and use it again.
but if you want to use 2.1.26, then no, MIA editor doesn’t support anki 2.1.23+

1 Like

okay, i got it, thank you very much! There isn’t solution to using two versions, is it?

MIA add-ons are released in 6 month development cycle, as they state in their add-on page. Next cycle will be in October. So you will have to hold on 2.1.22 until then.

MIA Team Development Cycles The MIA team develops add-ons in 6-month development cycles. For the duration of a development cycle, we design add-ons for the latest stable version of Anki that was available at the beginning of that cycle. At the end of a development cycle, all MIA add-ons are upgraded to the latest stable version of Anki. Why We Use a Development Cycle: ● By not needing to constantly update add-ons each time a new version of Anki is released, we’re better able to stay focused on new projects. ● When everyone is using the same version of Anki and the same version of add-ons, bug fixing can proceed more efficiently. ● Because users only have to update their set-up once every 6 months, they can more easily stay focused on their studies. ● We surveyed our users and found that the vast majority approved of a 6-month development cycle. Current Cycle Details: Anki Version: Anki 2.1.22 (Windows and Linux), Anki 2.1.23 (macOS) [The “alternate” variants are for 32-bit systems] Start Date: April 6th, 2020 Next Cycle Start Date: October 6th, 2020

2 Likes

probably you can install 2 versions on different windows user account. (don’t know tho, have never tried it)
but you can’t have 2 versions on the same windows user account.

1 Like

Okay I see XD

Thanks a lot! Yes, I will probably export my previous decks to 2.1.22 version

I indeed do this. Perhaps my case is somewhat useful for you. I currently have 3 different Anki versions installed that I use in a daily basis. I use a different Anki profile for each one, but I am using the same Windows user account.

If you want to use the same Anki profile with different versions, that is also possible. I have done it in the past were I was relying on add-ons some of them compatible with older or newer versions. So I was switching versions depending on the use I wanted in that particular moment. The only difference is that now >2.1.24 requires to click downgrade and click each time you may switch Anki older versions.

4 Likes

Is there some tutorial how to install two versions?

well, i didn’t think about this.
but you’re right, no need to have multiple windows users.
but you have to change the path where it installs, is this how you do it?

1 Like

Yes, for instance Anki2115, ANki2122, Anki2126, AnkiBeta,etc.

Although not strictly needed, I use custom startup options to bypass the profile selection.

3 Likes

nice :smiley:
didn’t think about this, it’ll definitely come in handy :+1:

1 Like