brownbat / autoEaseFactor

Adjust ease factors in Anki based off of performance in order to hit a target success rate.
GNU General Public License v3.0
37 stars 8 forks source link

Addon failed to load #34

Open p2501mk opened 3 years ago

p2501mk commented 3 years ago

Addon doesn't load.

Version 2.1.15 (442df9d6) Qt 5.15.2 PyQt 5.15.2

When loading 'Auto Ease Factor': Traceback (most recent call last): File "/usr/share/anki/aqt/addons.py", line 80, in loadAddons import(dir) File "/home/p2501/.local/share/Anki2/addons21/1672712021/init.py", line 1, in from . import autoEaseFactor File "/home/p2501/.local/share/Anki2/addons21/1672712021/autoEaseFactor.py", line 8, in from aqt import gui_hooks ImportError: cannot import name 'gui_hooks' from 'aqt' (/usr/share/anki/aqt/init.py)

Halp, dunno what to do..

brownbat commented 3 years ago

Ah, sorry, I should make a note explicitly on the add on page -- the earliest I've been able to test is around 2.1.21 (even then some features are limited).

Before .21 Anki works a lot differently with respect to hooks and add ons and some internal functions, so I'd have to rebuild a version from scratch specifically to work with it.

Thoughts on upgrading Anki? Are there other extensions holding you back on that version?

(Not 100% sure, but it might be easier to patch those forward than to bring this one backward... might improve the performance of the program at the same time.)

p2501mk commented 3 years ago

I'm on Void Linux, so I've got runit instead of systemd. Also I have no wayland, so I'm pretty much tied to the Anki version in my native repository, sadly..