Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working / Loading #5

Open
viviann16 opened this issue Jan 5, 2021 · 2 comments
Open

Not working / Loading #5

viviann16 opened this issue Jan 5, 2021 · 2 comments

Comments

@viviann16
Copy link

This is the message I got whenever I opened Anki... not sure what it means or what I should do to fix it:

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 '⁨Kitten Rewards Gamification⁩':
⁨Traceback (most recent call last):
File "aqt/addons.py", line 211, in loadAddons
File "/Users/VivNguyen/Library/Application Support/Anki2/addons21/1627107763/init.py", line 1, in
from . import kittenRewards
File "/Users/VivNguyen/Library/Application Support/Anki2/addons21/1627107763/kittenRewards.py", line 9, in
from aqt.mediasrv import RequestHandler
ImportError: cannot import name 'RequestHandler' from 'aqt.mediasrv' (/Applications/Anki.app/Contents/MacOS/aqt/mediasrv.pyc)

@lovac42
Copy link
Owner

lovac42 commented Jan 6, 2021

There were many changes made to Anki in recent versions. This just means you are using a version that is not compatible and I hadn't had to time to update this addon properly yet that would match the changes made.

Each addon page has a specific Anki version listed:
image

In the mean time, you may use this patch made by another user: https://github.com/dannyreilman/KittenRewards/blob/master/src21/kittenRewards.py. (Copy and paste) There are security reasons why I don't use this and opt to rewrite it instead.

Hope this helped clarify the current addon situation.

@felipemldias
Copy link

I'm afraid this solution no longer works on 2.1.42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants