yukach / anki21-addon-customize-sidebar

1 stars 1 forks source link

[BUG] Add-on load error since upgrading to Anki 2.1.42 (8eebfe18) #11

Open andrewcrook opened 3 years ago

andrewcrook commented 3 years ago

Anki 2.1.42 (8eebfe18) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2 macOS Big Sur 11.2.3 (20D91) MacBook Pro with M1 SoC 16GB

I am getting an error loading Anki

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 '⁨Customize Sidebar⁩':
⁨Traceback (most recent call last):
  File "aqt/addons.py", line 210, in loadAddons
  File "/Users/andrew/Library/Application Support/Anki2/addons21/1988760596/__init__.py", line 5, in <module>
    from . import customize_sidebar
  File "/Users/andrew/Library/Application Support/Anki2/addons21/1988760596/customize_sidebar.py", line 23, in <module>
    from aqt.browser import SidebarItem
ImportError: cannot import name 'SidebarItem' from 'aqt.browser' (/Applications/Anki.app/Contents/MacOS/aqt/browser.pyc)
andrewcrook commented 3 years ago

I tried the add-on on its own and got the same error

husmle commented 3 years ago

I had same problem

husmle commented 3 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 '⁨Customize Sidebar⁩': ⁨Traceback (most recent call last): File "aqt/addons.py", line 210, in loadAddons File "/Users/z/Library/Application Support/Anki2/addons21/1988760596/init.py", line 5, in from . import customize_sidebar File "/Users/z/Library/Application Support/Anki2/addons21/1988760596/customize_sidebar.py", line 23, in from aqt.browser import SidebarItem ImportError: cannot import name 'SidebarItem' from 'aqt.browser' (/Applications/Anki.app/Contents/MacOS/aqt/browser.pyc) ⁩

yukach commented 3 years ago

As far as I see, the functionality of my addon has been added into anki since version 41 !!! please check.

On Fri, Mar 12, 2021 at 2:46 AM husmle @.***> wrote:

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 '⁨Customize Sidebar⁩': ⁨Traceback (most recent call last): File "aqt/addons.py", line 210, in loadAddons File "/Users/z/Library/Application Support/Anki2/addons21/1988760596/ init.py", line 5, in from . import customize_sidebar File "/Users/z/Library/Application Support/Anki2/addons21/1988760596/customize_sidebar.py", line 23, in from aqt.browser import SidebarItem ImportError: cannot import name 'SidebarItem' from 'aqt.browser' (/Applications/Anki.app/Contents/MacOS/aqt/browser.pyc) ⁩

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/yukach/anki21-addon-customize-sidebar/issues/11#issuecomment-797125974, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABCK3GSXBW4R4DCU6OFN5DTTDFI53ANCNFSM4Y6JII3A .

Kezza6 commented 3 years ago

same issue here. brand new download of Anki (not an update), first time trying to add the add-on.

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 '⁨Customize Sidebar⁩': ⁨Traceback (most recent call last): File "aqt\addons.py", line 210, in loadAddons File "C:\Users\kla30\AppData\Roaming\Anki2\addons21\1988760596__init__.py", line 5, in from . import customize_sidebar File "C:\Users\kla30\AppData\Roaming\Anki2\addons21\1988760596\customize_sidebar.py", line 23, in from aqt.browser import SidebarItem ImportError: cannot import name 'SidebarItem' from 'aqt.browser' (C:\Program Files\Anki\aqt\browser.pyc) ⁩