kerrickstaley / genanki

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

Apkg cannot be importet to Anki Desktop: JsonError { info: "decoding modesl: JsonError" } #120

Closed robert-elles closed 1 year ago

robert-elles commented 1 year ago

Description I used genanki to generate a simple card deck. I can open it with AnkiDroid but in the desktop version of Anki it reports the following error: JsonError { info: "decoding modesl: JsonError" }

Also the deck cannot be synced to anki web from ankidroid

To reproduce See the attached file. Just rename file ending zip to apkg

Expected behavior Opens normally

Actual behavior Anki desktop shows the following error message: JsonError { info: "decoding modesl: JsonError" }

genanki version 0.13.0 mydeck.zip

Additional context Anki Desktop version is: 2.1.61

robert-elles commented 1 year ago

I found the cause of this error. The name field of my template was missing.