kerrickstaley / genanki

A Python 3 library for generating Anki decks
MIT License
1.99k stars 150 forks source link

500: JsonError { info: "decoding models: JsonError" } #128

Open 13806 opened 8 months ago

13806 commented 8 months ago

I'm getting "500: JsonError { info: "decoding models: JsonError" }" when I try to import genanki-generated decks into Anki versions past 2.1.4*

I've been using genanki without issue for the past 2 years to generate decks, the issue only came up recently when I tried to update Anki to 23 (same problem on windows and mac).

13806 commented 8 months ago

To add - the error appears when upgrading to 2.1.9 from previous version and in all subsequent versions.

jakefish18 commented 7 months ago

The same. Have you solved this issue?

kerrickstaley commented 7 months ago

I was not able to reproduce this issue on Anki 23.12.1 Qt (the latest version) on macOS. Can you please post your Anki version (go to the About Anki screen and click Copy Debug info and paste it here), your genanki version, and a minimal reproducible example of the Python code that generates a problematic deck?

tomhense commented 4 months ago

I encountered the same error when I forgot to supply a name to my model, maybe this was the issue here as well.

Version ⁨24.04.1 (ccd9ca1a)⁩ Python 3.12.3 Qt 6.7.0 PyQt 6.7.0