ijgnd / anki21__editor_add_hyperlink

5 stars 7 forks source link

cannot import name 'MutableSequence' from 'collections' #13

Closed GrimPixel closed 2 years ago

GrimPixel commented 2 years ago

An add-on you installed failed to load. If problems persist, please go to the Tools>Add-ons menu, and disable or delete the add-on.

When loading '⁨Mindmap from tag hierarchy⁩': ⁨Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/aqt/addons.py", line 239, in loadAddons import(addon.dir_name) File "/home/grim/.local/share/Anki2/addons21/965278890/init.py", line 13, in from .mindmap_creator_dialog import show as show_dialog File "/home/grim/.local/share/Anki2/addons21/965278890/mindmap_creator_dialog.py", line 12, in from .libaddon.gui.dialog_webview import WebViewer File "/home/grim/.local/share/Anki2/addons21/965278890/libaddon/gui/dialog_webview.py", line 42, in from .basic.dialog_basic import BasicDialog File "/home/grim/.local/share/Anki2/addons21/965278890/libaddon/gui/basic/dialog_basic.py", line 40, in from .interface import CommonWidgetInterface File "/home/grim/.local/share/Anki2/addons21/965278890/libaddon/gui/basic/interface.py", line 48, in from collections import MutableSequence, MutableSet, MutableMapping ImportError: cannot import name 'MutableSequence' from 'collections' (/usr/lib/python3.10/collections/init.py) ⁩

ijgnd commented 2 years ago

When loading '⁨Mindmap from tag hierarchy⁩':

File "/home/grim/.local/share/Anki2/addons21/965278890/init.py", line 13, in

I have no idea how this is related to Add Hyperlink. Reopen this issue if the problem persists with all other add-ons disabled.

Also the answer is probably (afaik) in the last line: You are using python 3.10 whereas the official anki versions only use 3.9. So add-ons that use python features that were removed in python 3.10 still work for regular users but not for you ....

GrimPixel commented 2 years ago

Sorry, there were a lot of errors and I came to the wrong repo.