johnpincock / SpecialFields

Anki Addon to protect certain fields from being overwritten by anki's import and export functions
GNU General Public License v3.0
8 stars 8 forks source link

"Unable to read file" when importing a recently exported deck into Anki Windows, 23.12.1 Qt6 #37

Open Projekt-Anki-Germany opened 7 months ago

Projekt-Anki-Germany commented 7 months ago

There seems to be a problem with the new Anki Version (Windows, 23.12.1 Qt6) and it's new import function that allows you to merge existing notes.

There might also be difference from which Anki Version the original deck was exported initially. I have two versions of the same deck. One exported 20th of March 2023, one exported a on 20th of Feb 2024 from an Apple User. (no further information about version)

If I import the March2023 deck version into Anki Version (Windows, 23.12.1 Qt6), Special Fields does it's job and cards and notetypes get updated.

When I import the 2024 deck version into Anki on Windows, I get an error message saying: "Unable to read file. It probably requires a newer version of Anki to import."

Error message disappears and deck imports correctly after deactivating the Special Fields Addon.

Projekt-Anki-Germany commented 7 months ago

Link to 2023 Deck (can import): https://drive.google.com/file/d/1uO4Kc1U-YMPWtor09hzbCvMVaJBtD31Y/view?usp=drive_link (505 Mb) Link to 2024 Deck (can't import); https://drive.google.com/file/d/1CcKTaCioukeCYxaamLn97j00aNlxXfop/view?usp=sharing (762 Mb)

abdnh commented 7 months ago

This add-on enables Anki's legacy import handling, so you can't import a file exported without checking the "Support older Anki versions" option when the add-on is enabled.

image

Projekt-Anki-Germany commented 6 months ago

@abdnh Thank you for the reply! I think the error was in exporting the current 2024 deck version from an older Anki version (2.1.56) without the newer import function.

Special Fields did now work correctly when I exported the 2024 deck from the current Version ⁨23.12.1 (1a1d4d54)⁩

abdnh commented 6 months ago

The last release no longer disables the new importing method, but the add-on still require it to be disabled to work.