Anki complains that json is imported from anki.utils and not directly:
[...]
File "/home/[...]/.local/share/Anki2/addons21/review_heatmap/heatmap.py", line 37, in <module>
from anki.utils import json
File "/home/[...]/anki_venv/lib/python3.9/site-packages/anki/utils.py", line 41, in __getattr__
traceback.print_stack(file=sys.stdout)
add-on should import json directly, not from anki.utils
[x] I've tried to disable other add-ons to see if there are any interactions present
[x] My issue disappears when I hold shift while starting Anki.
[x] I've checked if anyone else reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.
Problem description
When I run Anki in a dedicated Python virtual environment as follows
Anki complains that json is imported from anki.utils and not directly:
This is the case in the following two places: https://github.com/glutanimate/review-heatmap/blob/master/src/review_heatmap/heatmap.py#L36 https://github.com/glutanimate/review-heatmap/blob/master/src/review_heatmap/libaddon/anki/configmanager.py#L42
Checklist
Please replace the space inside the brackets with an x if the following items apply:
Information about your Anki set-up
see above
Error message (if any)
see abve