Ankihub Add-on Startup Failed

As the title suggests, the add-on is refusing to launch. I just downloaded it yesterday on a different system so maybe something needs to be updated?

Debug info:

Anki 24.04.1 (832d7b16) (src) (ao)
Python 3.12.3 Qt 6.7.1 PyQt 6.7.0
Platform: Linux-6.9.2-1-cachyos-eevdf-x86_64-with-glibc2.39

When loading AnkiHub:
Traceback (most recent call last):
File β€œ/usr/lib/python3.12/site-packages/aqt/addons.py”, line 247, in loadAddons
import(addon.dir_name)
File β€œ/home/balba/.local/share/Anki2/addons21/1322529746/init.py”, line 28, in
from . import entry_point
File β€œ/home/balba/.local/share/Anki2/addons21/1322529746/entry_point.py”, line 11, in
from .db import ankihub_db
File β€œ/home/balba/.local/share/Anki2/addons21/1322529746/db/init.py”, line 1, in
from .db import ankihub_db, execute_list_query_in_chunks, flat # noqa: F401
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File β€œ/home/balba/.local/share/Anki2/addons21/1322529746/db/db.py”, line 38, in
from …ankihub_client import Field, NoteInfo, suggestion_type_from_str
File β€œ/home/balba/.local/share/Anki2/addons21/1322529746/ankihub_client/init.py”, line 6, in
from .ankihub_client import ( # noqa: F401
File β€œ/home/balba/.local/share/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py”, line 44, in
from .models import (
File β€œ/home/balba/.local/share/Anki2/addons21/1322529746/ankihub_client/models.py”, line 14, in
from mashumaro.mixins.json import DataClassJSONMixin
File β€œ/home/balba/.local/share/Anki2/addons21/1322529746/lib/mashumaro/mixins/json.py”, line 14, in
class DataClassJSONMixin(DataClassDictMixin):
File β€œ/home/balba/.local/share/Anki2/addons21/1322529746/lib/mashumaro/mixins/dict.py”, line 21, in init_subclass
compile_mixin_unpacker(cls, **builder_params[β€œunpacker”])
File β€œ/home/balba/.local/share/Anki2/addons21/1322529746/lib/mashumaro/core/meta/mixin.py”, line 44, in compile_mixin_unpacker
builder.add_unpack_method()
File β€œ/home/balba/.local/share/Anki2/addons21/1322529746/lib/mashumaro/core/meta/builder.py”, line 453, in add_unpack_method
self._add_unpack_method_lines(method_name)
File β€œ/home/balba/.local/share/Anki2/addons21/1322529746/lib/mashumaro/core/meta/builder.py”, line 342, in _add_unpack_method_lines
pre_deserialize = self.get_declared_hook(PRE_DESERIALIZE)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File β€œ/home/balba/.local/share/Anki2/addons21/1322529746/lib/mashumaro/core/meta/builder.py”, line 309, in get_declared_hook
if not is_dataclass_dict_mixin(cls):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File β€œ/home/balba/.local/share/Anki2/addons21/1322529746/lib/mashumaro/core/meta/helpers.py”, line 367, in is_dataclass_dict_mixin
return type_name(t) == DataClassDictMixinPath
^^^^^^^^^^^^
File β€œ/home/balba/.local/share/Anki2/addons21/1322529746/lib/mashumaro/core/meta/helpers.py”, line 150, in type_name
elif is_generic(t) and not is_type_origin:
^^^^^^^^^^^^^
File β€œ/home/balba/.local/share/Anki2/addons21/1322529746/lib/mashumaro/core/meta/helpers.py”, line 223, in is_generic
raise NotImplementedError
NotImplementedError


I’d appreciate any input on this. Thanks!

Hello,

How did you install the addon?

Linux distro packages are not supported. Please try the official Anki package: https://apps.ankiweb.net/

Hey!

I installed it through the Anki add-on page using the code.

Ah I see, I’ll reinstall it through the official page and see how it goes. Thanks!

This worked! Thank you so much. I had installed it before from the AUR. Installing it from the official website did the trick. Thank you for your time and help @Ahmed7 @abdo.nh

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.