Closed IAmzColbz closed 1 month ago
Sorry for the delay. I didn't get a notification for this bug. I'm looking into it, though I haven't been able to reproduce yet.
My current hypothesis is that there's a difference between Python 3.9 and 3.12. I'm trying to reproduce in a Linux environment, as I thought it might use the system Python version, but for me, it still uses Python 3.9. Did you build from source? If so, does the binary install have the same issue?
Confirmed my hypothesis. A deprecated interface method was removed in Python 3.12, so I need to use the updated one.
This should be fixed by v1.0.2.
Oop, sorry i didn't get a notification either. And yes, once I rebuilt with the patch it worked out of the box. Thank you for your help!
Great to hear. Thanks for testing it out.
Problem description
Upon installing the addon via the anki-web addons page, restarting Anki led to the startup failing, erroring this addon specifically. I traced back the issue and made a temporary fix, however I don't know if it is a proper way to actually fix it long term.
In order to fix this issue, I edited ./libaddon/anki/configmanager.py
to -
I don't know enough about python to know if this is a good fix or not.
Cannot find reference 'packaging' in '__init__.py'
so i just pulled in packaging from base which led to the addon starting up perfectly fine on my end.Checklist
Please replace the space inside the brackets with an x if the following items apply:
If you are using Anki 2.1
Please fill in details about your operating system (Windows/macOS/Linux, which version):
Error message (if any)