# Error importing Mnemosyne 2.9 deck

**URL:** <https://forums.ankiweb.net/t/error-importing-mnemosyne-2-9-deck/65592>\
**Category:** Help\
**Created:** [August 12, 2025, 8:55am UTC](https://forums.ankiweb.net/t/error-importing-mnemosyne-2-9-deck/65592 "2025-08-12T08:55:08Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucaseichhorn](https://avatars.discourse-cdn.com/v4/letter/l/e99b99/32.png) [@lucaseichhorn](https://forums.ankiweb.net/u/lucaseichhorn)\
**Post date:** [August 12, 2025, 8:55am UTC](https://forums.ankiweb.net/t/error-importing-mnemosyne-2-9-deck/65592/1 "2025-08-12T08:55:09Z")

</div>

Hi! I’d like to merge to doing spaced repetition w/ Anki and want to import my cards from Mnemosyne 2.9. I tried the following:

1. Import → select Mnemosyne .db file and got error “Fact has no cards”
2. Import → select Mnemosyne .cards export, **renamed as .zip**. Got error: “500: specified file not found in archive”, even w/ a rather simple deck.

Traceback for 1):

```auto
Traceback (most recent call last):

  File "/home/lucas/.local/share/AnkiProgramFiles/.venv/lib/python3.13/site-packages/anki/foreign_data/mnemosyne.py", line 177, in fact_view
    fact_view = self.cards[0].fact_view_id
                ~~~~~~~~~~ ^^^

IndexError: list index out of range

The above exception was the direct cause of the following exception:

Traceback (most recent call last):

  File "/home/lucas/.local/share/AnkiProgramFiles/python/cpython-3.13.5-linux-x86_64-gnu/lib/python3.13/concurrent/futures/thread.py", line 59, in run
    result = self.fn(*self.args, **self.kwargs)

  File "/home/lucas/.local/share/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/operations/ __init__.py", line 243, in wrapped_op
    return self._op(mw.col)
           ~~~~~~~~ ^^^^^^^^

  File "/home/lucas/.local/share/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/import_export/importing.py", line 107, in <lambda>
    op=lambda col: mnemosyne.serialize(path, col.decks.current()["id"]),
                   ~~~~~~~~~~~~~~~~~~~ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/lucas/.local/share/AnkiProgramFiles/.venv/lib/python3.13/site-packages/anki/foreign_data/mnemosyne.py", line 34, in serialize
    return gather_data(db, deck_id).serialize()
           ~~~~~~~~~~~ ^^^^^^^^^^^^^

  File "/home/lucas/.local/share/AnkiProgramFiles/.venv/lib/python3.13/site-packages/anki/foreign_data/mnemosyne.py", line 41, in gather_data
    notes = [fact.foreign_note(used_fact_views) for fact in facts.values()]
             ~~~~~~~~~~~~~~~~~ ^^^^^^^^^^^^^^^^^

  File "/home/lucas/.local/share/AnkiProgramFiles/.venv/lib/python3.13/site-packages/anki/foreign_data/mnemosyne.py", line 166, in foreign_note
    fact_view = self.fact_view()

  File "/home/lucas/.local/share/AnkiProgramFiles/.venv/lib/python3.13/site-packages/anki/foreign_data/mnemosyne.py", line 179, in fact_view
    raise Exception(f"Fact {id} has no cards") from err

Exception: Fact <built-in function id> has no cards

```

Is there maybe an update needed that can deal w/ Mnemosyne 2.9? Or what can I do to import the cards, including learning data please?

---

<div class="post-metadata">

**Author:** ![NameLessGO](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/namelessgo/32/34298_2.png) [@NameLessGO](https://forums.ankiweb.net/u/NameLessGO)\
**Post date:** [August 12, 2025, 5:44pm UTC](https://forums.ankiweb.net/t/error-importing-mnemosyne-2-9-deck/65592/2 "2025-08-12T17:44:18Z")

</div>

Could you try updating mnemosyne to [latest version](https://github.com/mnemosyne-proj/mnemosyne/releases), 2.11, and trying again?

---

<div class="post-metadata">

**Author:** ![Danika\_Dakika](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/danika_dakika/32/17815_2.png) [@Danika\_Dakika](https://forums.ankiweb.net/u/Danika_Dakika)\
**Post date:** [August 12, 2025, 6:59pm UTC](https://forums.ankiweb.net/t/error-importing-mnemosyne-2-9-deck/65592/3 "2025-08-12T18:59:05Z")

</div>

It seems like every Mnemosyne update breaks our ability to import their files. Have you checked the other posts about Mnemosyne imports to see if anything there helps you? [Search results for 'mnemosyne order:latest' - Anki Forums](https://forums.ankiweb.net/search?q=mnemosyne%20order%3Alatest)

> [@lucaseichhorn](#):
>
> Import → select Mnemosyne .cards export, **renamed as .zip**. Got error: “500: specified file not found in archive”, even w/ a rather simple deck.

Renaming the file definitely won’t work. The `db` file is the one you want, and you should leave the file extension as-is.

---

<div class="post-metadata">

**Author:** ![lucaseichhorn](https://avatars.discourse-cdn.com/v4/letter/l/e99b99/32.png) [@lucaseichhorn](https://forums.ankiweb.net/u/lucaseichhorn)\
**Post date:** [August 12, 2025, 10:31pm UTC](https://forums.ankiweb.net/t/error-importing-mnemosyne-2-9-deck/65592/4 "2025-08-12T22:31:46Z")

</div>

@NameLessGO I updated it to version 2.11 and tried again. but the .db file is the same, so there was no difference. also exporting a deck from the new version and trying to import it in Anki gave same error.

@Danika_Dakika yes, I looked at all topics about Mnemosyne and they didn’t apply as I have a different error ([Issue importing Mnemosyne cards into Anki](https://forums.ankiweb.net/t/issue-importing-mnemosyne-cards-into-anki/44757) and [Error importing mnemosyne cards to anki](https://forums.ankiweb.net/t/error-importing-mnemosyne-cards-to-anki/49420)) or were about importing issues related to media import

The export from Mnemosyne is a .cards file but when you rename it to .zip, you can see that it just contains a .xml file (and metadata, and optionally media files) which contains the learning data. or the .db file from Mnemosyne contains learning data as well.

---

<div class="post-metadata">

**Author:** ![Danika\_Dakika](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/danika_dakika/32/17815_2.png) [@Danika\_Dakika](https://forums.ankiweb.net/u/Danika_Dakika)\
**Post date:** [August 13, 2025, 12:03am UTC](https://forums.ankiweb.net/t/error-importing-mnemosyne-2-9-deck/65592/5 "2025-08-13T00:03:23Z")

</div>

Okay. Thanks for taking a look! We’ll have to see if we can get some developer time to look into this. If they’ve changed their format again, it might require another update on our part.

---

<div class="post-metadata">

**Author:** ![abdo](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/abdo/32/654_2.png) [@abdo](https://forums.ankiweb.net/u/abdo)\
**Post date:** [August 13, 2025, 5:08am UTC](https://forums.ankiweb.net/t/error-importing-mnemosyne-2-9-deck/65592/6 "2025-08-13T05:08:53Z")

</div>

@lucaseichhorn Have you tried importing the .db file you get from Mnemosyne using _File \> Save As_? I just tested on Mnemosyne 2.11 and that apparently worked. It’s a very simple collection though.

---

<div class="post-metadata">

**Author:** ![lucaseichhorn](https://avatars.discourse-cdn.com/v4/letter/l/e99b99/32.png) [@lucaseichhorn](https://forums.ankiweb.net/u/lucaseichhorn)\
**Post date:** [August 18, 2025, 10:26pm UTC](https://forums.ankiweb.net/t/error-importing-mnemosyne-2-9-deck/65592/7 "2025-08-18T22:26:25Z")

</div>

I selected a simple deck and went to File → Save As to save a .db file but it’s the same size as my whole deck, so this seems to save the whole deck. (trying to import that give the same error as above.)

I created a simple deck (no Latex, audio files or images) and it worked.

so likely the issue is w/ more complicated cards!

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [August 19, 2025, 8:35am UTC](https://forums.ankiweb.net/t/error-importing-mnemosyne-2-9-deck/65592/8 "2025-08-19T08:35:29Z")

</div>

Please upload the file somewhere and share it with me, and I’ll look into it.

---

<div class="post-metadata">

**Author:** ![lucaseichhorn](https://avatars.discourse-cdn.com/v4/letter/l/e99b99/32.png) [@lucaseichhorn](https://forums.ankiweb.net/u/lucaseichhorn)\
**Post date:** [August 24, 2025, 2:42pm UTC](https://forums.ankiweb.net/t/error-importing-mnemosyne-2-9-deck/65592/9 "2025-08-24T14:42:44Z")

</div>

I sent you a link to the .db file that throws the error.

When juggling the included tags/subsets I managed to partially import the cards but cards were set as “New”, i.e. learning progress was unfortunately _not_ imported.

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [September 1, 2025, 8:26am UTC](https://forums.ankiweb.net/t/error-importing-mnemosyne-2-9-deck/65592/10 "2025-09-01T08:26:15Z")

</div>

Thanks Lucas, a fix for this should be in the next beta/rc.

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [September 1, 2025, 8:28am UTC](https://forums.ankiweb.net/t/error-importing-mnemosyne-2-9-deck/65592/11 "2025-09-01T08:28:07Z")

</div>

> [@lucaseichhorn](#):
>
> When juggling the included tags/subsets I managed to partially import the cards but cards were set as “New”, i.e. learning progress was unfortunately _not_ imported.

Can you point out a couple of cards that had that problem? The issue is your file contains some notes without associated cards, which indicates either corruption/bad state in the file, or Anki not importing something correctly. The fix mentioned above will allow the import to proceed when cards are missing, but new ones will be created in their place.

---

<div class="post-metadata">

**Author:** ![lucaseichhorn](https://avatars.discourse-cdn.com/v4/letter/l/e99b99/32.png) [@lucaseichhorn](https://forums.ankiweb.net/u/lucaseichhorn)\
**Post date:** [September 1, 2025, 10:50am UTC](https://forums.ankiweb.net/t/error-importing-mnemosyne-2-9-deck/65592/12 "2025-09-01T10:50:29Z")

</div>

I don’t understand what you mean. What are you referring to as “notes”? From what I understand about Mnemosyne: there are cards (of different types) and tags associated w/ the cards.

What I can see (and don’t understand myself) is 3 cards appear as “untagged” and when I check the box to see all of these “3 untagged cards” in the cards browser, no cards appear. That seems like a bug.

Oh and about the issue that all cards appeared as “New”: that was when I had reshuffled my deck in Mnemosyne and tried to import it in Anki, but the reshuffling actually led to all cards being at stage 0. So I can’t actually make a statement about “cards being set to New” w/ my original deck (w/o reshuffling), as that failed to import.

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [September 1, 2025, 10:54am UTC](https://forums.ankiweb.net/t/error-importing-mnemosyne-2-9-deck/65592/13 "2025-09-01T10:54:30Z")

</div>

Please see [Getting Started - Anki Manual](https://docs.ankiweb.net/getting-started.html#key-concepts)

Mnemosyne calls notes “facts”, which is terminology older Anki versions used to use.

---

<div class="post-metadata">

**Author:** ![lucaseichhorn](https://avatars.discourse-cdn.com/v4/letter/l/e99b99/32.png) [@lucaseichhorn](https://forums.ankiweb.net/u/lucaseichhorn)\
**Post date:** [September 5, 2025, 8:54am UTC](https://forums.ankiweb.net/t/error-importing-mnemosyne-2-9-deck/65592/14 "2025-09-05T08:54:56Z")

</div>

THANKS!

Import now worked.

Correcting all the cloze deletion cards sure was a hassle (regex helped a bit) … but I think that Anki’s definition is actually cleaner. A few cards (\<1%) disappeared, but it may actually be due to formatting or card type errors. Will still check which ones.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [October 5, 2025, 8:55am UTC](https://forums.ankiweb.net/t/error-importing-mnemosyne-2-9-deck/65592/15 "2025-10-05T08:55:35Z")

</div>

Closed on October 5, 2025, 8:55am UTC

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