Im unable to import any decks

This is my debug info

Anki 25.09 (539054c3) (ao)
Python 3.13.5 Qt 6.9.1 PyQt 6.9.1
Platform: macOS-26.0-arm64-arm-64bit-Mach-O

Traceback (most recent call last):
File “/Users/parth/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/taskman.py”, line 148, in _on_closures_pending
closure()
~~~~~~~^^
File “/Users/parth/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/taskman.py”, line 88, in
lambda future: self.run_on_main(lambda: on_done(future))
~~~~~~~^^^^^^^^
File “/Users/parth/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/sync.py”, line 52, in on_future_done
out = fut.result()
File “/Users/parth/Library/Application Support/AnkiProgramFiles/python/cpython-3.13.5-macos-aarch64-none/lib/python3.13/concurrent/futures/_base.py”, line 449, in result
return self.__get_result()
~~~~~~~~~~~~~~~~~^^
File “/Users/parth/Library/Application Support/AnkiProgramFiles/python/cpython-3.13.5-macos-aarch64-none/lib/python3.13/concurrent/futures/_base.py”, line 401, in __get_result
raise self._exception
File “/Users/parth/Library/Application Support/AnkiProgramFiles/python/cpython-3.13.5-macos-aarch64-none/lib/python3.13/concurrent/futures/thread.py”, line 59, in run
result = self.fn(*self.args, **self.kwargs)
File “/Users/parth/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/sync.py”, line 62, in
lambda: mw.col.sync_status(auth),
~~~~~~~~~~~~~~~~~~^^^^^^
File “/Users/parth/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/anki/collection.py”, line 1153, in sync_status
return self._backend.sync_status(auth)
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File “/Users/parth/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/anki/_backend_generated.py”, line 93, in sync_status
raw_bytes = self._run_command(1, 4, message.SerializeToString())
File “/Users/parth/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/anki/_backend.py”, line 160, in _run_command
return self._backend.command(service, method, input)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
pyo3_runtime.PanicException: called Result::unwrap() on an Err value: PoisonError { .. }

On importing, the checkin number stops at a particular number and the circle doesnt stop revolving - it occurs in multiple decks that i have tried improting. The error message shows “ A Fatal error has occured pls report this on Ankihub" “

This isn’t AnkiHub. Try searching and posting there: https://community.ankihub.net/ .

2 Likes

Hi everyone, I’m in urgent need of help figuring out how to import a deck into Anki. The deck is a “.apkg” file, and I’ve confirmed it works by successfully importing it into a test profile I created. However, it refuses to import into my main profile, which already contains another deck. Each time I try, Anki gets stuck on the “processing” screen stuck on a number, then closes it, leaving me with the Mac spinning wheel and an “application not responding” state until I force quit—sometimes after waiting over an hour. I’m running the latest version of Anki, have already used “Check Database” for optimization, and no error messages appear. The error message when trying to import reads “A fatal error occurred, and Anki must close. Please report this message on the forums.” This problem is not limited to one deck while trying to import other decks the same issue is persistent. Ive also tried opening anki with the shift key hold to disable add ons and that hasnt worked either.

Does anyone know what might be causing this or how I can fix it? Any help would be greatly appreciated.

debug info

Anki 25.09.1 (6854d13b) (ao)
Python 3.13.5 Qt 6.9.1 PyQt 6.9.1
Platform: macOS-26.0-arm64-arm-64bit-Mach-O

Traceback (most recent call last):
File “/Users/parth/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/taskman.py”, line 148, in _on_closures_pending
closure()
~~~~~~~^^
File “/Users/parth/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/taskman.py”, line 88, in
lambda future: self.run_on_main(lambda: on_done(future))
~~~~~~~^^^^^^^^
File “/Users/parth/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/operations/init.py”, line 259, in wrapped_done
future.result()
~~~~~~~~~~~~~^^
File “/Users/parth/Library/Application Support/AnkiProgramFiles/python/cpython-3.13.5-macos-aarch64-none/lib/python3.13/concurrent/futures/_base.py”, line 449, in result
return self.__get_result()
~~~~~~~~~~~~~~~~~^^
File “/Users/parth/Library/Application Support/AnkiProgramFiles/python/cpython-3.13.5-macos-aarch64-none/lib/python3.13/concurrent/futures/_base.py”, line 401, in __get_result
raise self._exception
File “/Users/parth/Library/Application Support/AnkiProgramFiles/python/cpython-3.13.5-macos-aarch64-none/lib/python3.13/concurrent/futures/thread.py”, line 59, in run
result = self.fn(*self.args, **self.kwargs)
File “/Users/parth/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/operations/init.py”, line 243, in wrapped_op
return self._op(mw.col)
~~~~~~~~^^^^^^^^
File “/Users/parth/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/deckbrowser.py”, line 163, in get_data
tree=col.sched.deck_due_tree(),
~~~~~~~~~~~~~~~~~~~~~~~^^
File “/Users/parth/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/anki/scheduler/base.py”, line 79, in deck_due_tree
tree = self.col._backend.deck_tree(now=int_time())
File “/Users/parth/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/anki/_backend_generated.py”, line 375, in deck_tree
raw_bytes = self._run_command(7, 4, message.SerializeToString())
File “/Users/parth/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/anki/_backend.py”, line 160, in _run_command
return self._backend.command(service, method, input)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
pyo3_runtime.PanicException: called Result::unwrap() on an Err value: PoisonError { .. }

This is nearly identical to the error you reported yesterday.

I couldnt find any solution and tried to describe my issue in more detail

If it happens while holding down the shift key, it’s probably not AnkiHub. Please see what is displayed in the console when the error first occurs, and post it here. Console Output - Writing Anki Add-ons

This is my entire traceback

I don’t see anything pertinent there. Are you able to share a link to the file you’re trying to import with me (privately if you wish)? I’ll try to reproduce the issue using a copy of your AnkiWeb collection.

Yeah sure I can send it on privately. How do i do that?

Please upload it somewhere like Google Drive, then share an “anyone with this link can view” link either via a message on this forum if you can, or via https://anki.tenderapp.com

Thanks for that. I’ve reproduced the problem, and logged it here: Panic when merging notetypes in import · Issue #4345 · ankitects/anki · GitHub

1 Like