Please post the link.
https: //gofile .io/d/kFSQg8
You apparently got XML files like @Zinogre here. The add-on doesn’t support that yet.
I assume AnkiApp changed its data format recently (for the app store version at least, maybe). I’ll look into supporting the new format but it might take a while.
Hi there, having some trouble importing my decks using the tool, i tried importing the zip file, and I also tried importing it after decompressing it. I also tried the “data folder” option and selected the decompressed file and it says it’s unable to locate the database file in the data folder.

This is the whole message i get:
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.66 (70506aeb) Python 3.9.15 Qt 6.5.2 PyQt 6.5.2
Platform: Windows-10-10.0.19045
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2023-10-18 18:00:38
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 “C:\Users\Nico\AppData\Roaming\Anki2\addons21\2072125761\main.py”, line 38, 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\Nico\AppData\Roaming\Anki2\addons21\2072125761\main.py”, line 32, in start_importing
importer = AnkiAppImporter(mw, path, path_type)
File “C:\Users\Nico\AppData\Roaming\Anki2\addons21\2072125761\ankiapp_importer.py”, line 346, in init
self._extract_notetypes()
File “C:\Users\Nico\AppData\Roaming\Anki2\addons21\2072125761\ankiapp_importer.py”, line 368, in _extract_notetypes
for row in self.con.execute(“SELECT * FROM layouts”):
sqlite3.DatabaseError: file is not a database
and this is my deck: gofile. io/d /LPskuu
Thank you for your time and great work!
AnkiApp’s data format apparently changed recently and the add-on needs to be updated to support it.
Hi Abdo.
I have downloaded the AnkiApp deck to my computer. It was saved as a file, not folder. It contains no images or media. It was originally saved as .xml so I changed the extension to .csv (I now have both versions saved, and have tried using the AnkiApp Importer on both, as well as the .zip).
Both the “Data folder” and “Database file” field were empty. When searching using the “Data folder” the file was grey, but when I searched using the “Database file” I was able to select it.
When I tried importing it, I received the following notice:
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.66 (70506aeb) Python 3.9.15 Qt 6.5.0 PyQt 6.5.0
Platform: macOS-13.6-x86_64-i386-64bit
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2023-10-18 15:44:18
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/dr.alsafar/Library/Application Support/Anki2/addons21/2072125761/main.py”, line 38, 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/dr.alsafar/Library/Application Support/Anki2/addons21/2072125761/main.py”, line 32, in start_importing
importer = AnkiAppImporter(mw, path, path_type)
File “/Users/dr.alsafar/Library/Application Support/Anki2/addons21/2072125761/ankiapp_importer.py”, line 346, in init
self._extract_notetypes()
File “/Users/dr.alsafar/Library/Application Support/Anki2/addons21/2072125761/ankiapp_importer.py”, line 368, in _extract_notetypes
for row in self.con.execute(“SELECT * FROM layouts”):
sqlite3.DatabaseError: file is not a database
Even if I use the .csv extension?
Yes, the add-on only supports importing SQLite databases.
Thanks for making this add-on,Adbo.
Now I’m trying to use this but there’s an error and I saw your reply to others like me but I don’t know how to update the add-on.
Can you tell me how to update it please?
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.66 (70506aeb) Python 3.9.15 Qt 6.5.2 PyQt 6.5.2
Platform: Windows-10-10.0.19045
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2023-10-19 16:55:46
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 “C:\Users\dfbuk\AppData\Roaming\Anki2\addons21\2072125761\main.py”, line 38, 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\dfbuk\AppData\Roaming\Anki2\addons21\2072125761\main.py”, line 32, in start_importing
importer = AnkiAppImporter(mw, path, path_type)
File “C:\Users\dfbuk\AppData\Roaming\Anki2\addons21\2072125761\ankiapp_importer.py”, line 346, in init
self._extract_notetypes()
File “C:\Users\dfbuk\AppData\Roaming\Anki2\addons21\2072125761\ankiapp_importer.py”, line 368, in _extract_notetypes
for row in self.con.execute(“SELECT * FROM layouts”):
sqlite3.DatabaseError: file is not a database
If you’re trying to import an XML file, the add-on doesn’t support that yet. I’ll look into updating the add-on when I have the time.
I’m trying to import ZIP file.
What’s inside the zip?
I’m sorry, there are XML files in the ZIP.
Then, how can I export (import?) correct file?
There’s apparently no way to do that now.
Does it mean there’s no way to use this now?
Yes, that’s right.
Got it. Thanks for replying.
I’m looking forward to update.
Hi Abdo,
Regarding your reply about updating the add-on for XML files. Will you let us know in this forum when it has been updated? Don’t mean to sound impatient or ungrateful for your work!
Yes, will let you know.
