Copycat Importer (AnkiApp/AnkiPro)

Try this:
Download the ankiapp (search anki and find the orange one with windows or mac download) and then download all the decks that you have. Download the anki app. When finished downloading all your ankiapp decks then close the app. Open up anki and click tools > Copycat import > Ankiapp. Then click the top option and let the programme run. This should work and is the way that I did it.

~Wokta

Thank you I did follow those steps but constant errors even when I transfer from Quizlet too same message?

Click Copy Debug Info and paste the error here.

Anki 23.12.1 (1a1d4d54) (ao)
Python 3.9.15 Qt 6.5.3 PyQt 6.5.3
Platform: macOS-13.5-x86_64-i386-64bit

Traceback (most recent call last):
File “aqt.taskman”, line 142, in _on_closures_pending
File “aqt.taskman”, line 86, in
File “/Users/shaansagoo/Library/Application Support/Anki2/addons21/2072125761/gui/dialog.py”, line 54, 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/shaansagoo/Library/Application Support/Anki2/addons21/2072125761/gui/dialog.py”, line 48, in start_importing
importer = self.importer_class(**options)
File “/Users/shaansagoo/Library/Application Support/Anki2/addons21/2072125761/importers/ankiapp.py”, line 332, in init
self.con = sqlite3.connect(db_path)
sqlite3.OperationalError: unable to open database file

===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Copycat Importer AnkiAppAnkiPro [‘2072125761’, 2023-11-23T18:04, ‘None’, ‘’]

===IDs of active AnkiWeb add-ons===
2072125761

===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])

is this what you wanted?

Can upload the file you’re trying to import and post a link? https://gofile.io

Hi abdo,
I’m transferring to Anki from Ankiapp recently but encountered a problem when importing my decks from Ankiapp. Following is the debug info, can you help me see whatt went wrong? Many thanks in advance!!

Anki 23.12.1 (1a1d4d54) (ao)
Python 3.9.15 Qt 6.6.1 PyQt 6.6.1
Platform: Windows-10-10.0.22621

Traceback (most recent call last):
File “aqt.taskman”, line 142, in _on_closures_pending
File “aqt.taskman”, line 86, in
File “C:\Users\luffy\AppData\Roaming\Anki2\addons21\2072125761\gui\dialog.py”, line 54, 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\luffy\AppData\Roaming\Anki2\addons21\2072125761\gui\dialog.py”, line 49, in start_importing
return importer.do_import(), importer.warnings
File “C:\Users\luffy\AppData\Roaming\Anki2\addons21\2072125761\importers\ankiapp.py”, line 615, in do_import
card.fields[field_name] = ref_re.sub(
File “C:\Users\luffy\AppData\Roaming\Anki2\addons21\2072125761\importers\ankiapp.py”, line 501, in _repl_blob_ref
return fname_to_link(media_obj.filename)
File “C:\Users\luffy\AppData\Roaming\Anki2\addons21\2072125761\importers\utils.py”, line 12, in fname_to_link
ext = fname.split(“.”)[-1].lower()
AttributeError: ‘NoneType’ object has no attribute ‘split’

===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Copycat Importer AnkiAppAnkiPro [‘2072125761’, 2023-11-24T02:04, ‘None’, ‘’]

===IDs of active AnkiWeb add-ons===
2072125761

===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])

This looks like a bug. Can you share your AnkiApp collection to help me debug this quickly? https://gofile.io

Hi,
Here’s the link to my collection"
gofile.i o/d/FwP9Hy

I’m not sure if the problem occurs becasue I use a customized card template.
Kindly let me know if you need more information!!
Would really love to see this bug solved… I have more than 200 decks to move to Anki, and the thought of starting from scratch drives me crazy ;(
By the way, thanks for developing Anki. It’s one of the greatest inventions of human civilization, no joke.

The issue should be fixed now. Thank you for the report.

Hiiii
That wa real quick!! Thank you so much. Do I need to remove and add the add-on again to apply any changes you’ve made?

I think you can just select Tools / Add-ons from the menu, and then Check for Updates.

If there are updates you can apply them, and then you might need to restart Anki.

2 Likes

Hi,
Thank yo for the kind reply. When I launched my desktop app today, a window popped up and prompted me to update the add-on.
@abdo Thank yo so so much. The updated add-on worked! I successfully moved all my decks from Ankiapp to Anki. Now I have to manually change all note type, but at least I don’t have to start from scratches. Hopefully there will be batch editting function that allows users to apply changes to all cards using the same note type.

What kind of batch changes are you trying to make?

If you want to do Find and Replace of the contents of some fields, you can select Notes / Find and Replace… in the Browse window.

If you want to do Find and Replace of the contents of some templates, you can use the Find and Replace in Notetypes add-on. This add-on adds a “Find and Replace in Templates” option to the Edit section of the Browse window.

1 Like

AnkiApp only tells us what fields are in the front and back templates in the exported decks, without much info about how they are structured.

1 Like

This is what is happening -
Data folder when I click on that the AnkiApp is greyed out.
Database file I click on AnkiApp which is not greyed now but then get the same error code I sent you.
XML zip I haven’t hit one so can not use this method as I can not export the AnkiApp deck.



Could you please explain what file you mean?

Hi Abdo

This is error I keep getting
Anki 23.12.1 (1a1d4d54) (ao)
Python 3.9.15 Qt 6.5.3 PyQt 6.5.3
Platform: macOS-14.0-x86_64-i386-64bit

Traceback (most recent call last):
File “aqt.taskman”, line 142, in _on_closures_pending
File “aqt.taskman”, line 86, in
File “/Users/milunsagoo/Library/Application Support/Anki2/addons21/2072125761/gui/dialog.py”, line 54, 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/milunsagoo/Library/Application Support/Anki2/addons21/2072125761/gui/dialog.py”, line 48, in start_importing
importer = self.importer_class(**options)
File “/Users/milunsagoo/Library/Application Support/Anki2/addons21/2072125761/importers/ankiapp.py”, line 331, in init
self.con = sqlite3.connect(db_path)
sqlite3.OperationalError: unable to open database file

===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Copycat Importer AnkiAppAnkiPro [‘2072125761’, 2023-12-30T18:45, ‘None’, ‘’]

===IDs of active AnkiWeb add-ons===
2072125761

===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])

Do you have one of the following folders in your Mac?

  • ~/Library/Application Support/AnkiApp
  • ~/Library/Containers/com.ankiapp.client

The add-on searches for such folder and autofills the Data folder option for you.
If you can’t find any, and you have the decks downloaded locally as described in the add-on’s page, then maybe AnkiApp changed the storage location. If you search for “AnkiApp” in Finder’s search box, does anything come up?