Error importing mnemosyne cards to anki

Hello
Just starting to use Anki. I tried to import cards from Mnemosyne but I got the error message :
Error: 500: JsonError { info: “invalid value: integer 2172355200, expected i32 at line 1 column 50592” }
What can I do ?
Thanks

What kind of file are you importing? Is it a Mnemosyne db? Importing - Anki Manual

There was a fix to a similar issue a few months ago that should be included in the current release. You may need to upgrade to 24.06 (latest build) to use it.

Yes, it is a Mnemosyne.db file
I have 24.06
I successfully imported a small file (5 cards), but the sounds are not working.
The file with the error has 6511 cards

Can you share the file with me privately, via something like a Google Drive ‘anyone with link can view’ link in a private message or on anki.tenderapp.com?

1 Like

Here is the link
https://drive.google.com/file/d/1y2HstqpZVTwX1QYZvFh15ONnc_dFcFXD/view?usp=sharing

The Japonais.db file was succesfully imported but no sounds
The Anglais.db file cannot be imported
Thanks

1 Like

Sorry, could you please use ‘anyone with a link can view’? It’s currently asking me to request access. You can share the link with me privately so that others won’t see.

Is this link ok ?
Thank you

Thanks, I was able to grab the file. I’ll fix the importing issue in a future update; for now, deleting your ‘ampoule’ card in Mnemosyne should fix the problem. Actually, sorry, that won’t help, as there are multiple cards with the same problem. I’ll post a follow-up.

Media files won’t work until you manually copy them into Anki’s media folder. Managing Files - Anki Manual

The issue is caused by dates > 2038 in your Mnemosyne file. If you’re ok with bringing them forward, you can work around the problem by now. Using a program like sqlitebrowser on your .db file, you can run the following query:

update cards set next_rep = 2100000000 where next_rep > 2100000000;

I was able to import the file and add the media files
Thanks a lot

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