Copycat Importer (AnkiApp/AnkiPro)

Images in your collection have a weird syntax that’s not handled by the add-on. What AnkiApp version are using and on what OS? Maybe they changed something recently.

Hello abdo. I’ve just found out about ankiapp myself after using it on a mobile device. I’ve exported my deck as a zip file, emailed it to my laptop, and unpacked it into a .xml file. However, the following error comes up when I try to import it using the add-on. What can I do?

Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools>Add-ons menu item to disable some add-ons and restart Anki, repeat until you discover the add-on that is causing the problem.
When you’ve discovered the add-on that is causing the problem, please report the issue on the add-ons section of our support site.
Debug info:
Anki 2.1.62 (77dd1dc1) Python 3.9.15 Qt 6.4.3 PyQt 6.4.0
Platform: Windows-10-10.0.22621
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2023-08-27 15:20:10

Caught exception:
Traceback (most recent call last):
File “aqt.taskman”, line 122, in on_closures_pending
File “aqt.taskman”, line 71, in
File "C:\Users\jacob\AppData\Roaming\Anki2\addons21\2072125761_init
.py", line 26, in on_done
count, warnings = fut.result()
File “concurrent.futures._base”, line 439, in result
File “concurrent.futures._base”, line 391, in _get_result
File “concurrent.futures.thread”, line 58, in run
File "C:\Users\jacob\AppData\Roaming\Anki2\addons21\2072125761_init
.py", line 20, in start_importing
importer = AnkiAppImporter(mw, filename)
File “C:\Users\jacob\AppData\Roaming\Anki2\addons21\2072125761\ankiapp_importer.py”, line 229, in init
self._extract_notetypes()
File “C:\Users\jacob\AppData\Roaming\Anki2\addons21\2072125761\ankiapp_importer.py”, line 251, in _extract_notetypes
for row in self.con.execute(“SELECT * FROM layouts”):
sqlite3.DatabaseError: file is not a database

The add-on doesn’t support importing XML files. Is that what you got from AnkiApp? Can you see if the “Old Approach” mentioned in the FAQs work for you? If it doesn’t, please share the zip and post a link here (You can use https://gofile.io/).

The XML file is all I get from extracting the zip. Here’s the link

gofile .io/d/MUvKVI

Were you able to export the deck for free? (That used to be paywalled). If you install the computer version of AnkiApp, you should be able to use this add-on to import your deck from a different file (see the add-on description on AnkiWeb). I might add support for importing XML files if exporting is free now and there is demand for that.

Hi! I downloaded the extension, but this is the error message I receive after selecting AnkiApp in the applications folder:
Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
When you’ve discovered the add-on that is causing the problem, please report the issue to the add-on author.
Debug info:
Anki 2.1.65 (aa9a734f) Python 3.9.15 Qt 6.5.0 PyQt 6.5.0
Platform: macOS-12.6.3-x86_64-i386-64bit
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2023-08-31 20:41:42
Add-ons possibly involved: ⁨AnkiApp Importer⁩

Caught exception:
Traceback (most recent call last):
File “aqt.taskman”, line 122, in _on_closures_pending
File “aqt.taskman”, line 71, in
File “/Users/katiewilliams/Library/Application Support/Anki2/addons21/2072125761/init.py”, line 26, in on_done
count, warnings = fut.result()
File “concurrent.futures._base”, line 439, in result
File “concurrent.futures._base”, line 391, in __get_result
File “concurrent.futures.thread”, line 58, in run
File “/Users/katiewilliams/Library/Application Support/Anki2/addons21/2072125761/init.py”, line 20, in start_importing
importer = AnkiAppImporter(mw, filename)
File “/Users/katiewilliams/Library/Application Support/Anki2/addons21/2072125761/ankiapp_importer.py”, line 228, in init
self.con = sqlite3.connect(filename)
sqlite3.OperationalError: unable to open database file

yes it was free

1 Like

Selecting AnkiApp won’t work. You have to find its database file and select that instead (see the description on AnkiWeb).

Do I need to download a database browser to search for " ~/Library/Containers/com.ankiapp.client/Data/Documents/ankiapp " when the applications file pops up after selecting AnkiApp?

You don’t need a database browser. Search inside the Library folder. It’s hidden by default, but appears in Finder by holding down the option key while clicking on the Go menu.

thank you so much, it worked! :slight_smile: All of the cards duplicated, so I am just searching around to see how other people solved this issue.

Are those front-to-back and back-to-front cards?

They all converted to back to front cards when I imported them. I found out how to delete the duplicates from another forum, but now I am trying to figure out how to change the note format from back to front to basic. No success yet!

Did you try Notes > Change Note type in the browser?

Yes, and that did work for me! But not when I try to sync with the Anki app on my phone, this message comes up:

“Your decks here and on AnkiWeb differ in such a way that they can’t be merged together, so it’s necessary to overwrite the decks on one side with the decks from the other. If you choose download, Anki will fetch the collection from AnkiWeb and any changes you have made on this device since the last sync will be lost”

My decks on AnkiWeb are synced to my laptop Anki application, but my phone Anki app is not updated. I have always chosen “upload to AnkiWeb” but it has not resolved this issue. I am tempted to choose “Download from AnkiWeb” but I am worried about potential data loss.

After changing the note type on your computer and syncing, choose Upload. Then on your phone, choose Download and you should end up with the same data on both devices.

https://docs.ankiweb.net/syncing.html#conflicts

Does this work with audio recordings. I have used mp3 recordings for some words and Can’t find them when importing the deck

I am on Mac

The add-on should import audio files. If you’re having issues please share your deck and I’ll take a look: https://gofile.io

for some reason I can’t post the link. any ideas?