glutanimate / anki-addons-misc

Various add-ons I've written for Anki
https://ankiweb.net/shared/addons/
GNU Affero General Public License v3.0
171 stars 56 forks source link

[Insert Randomized Lists] Incompatible With Anki 2.1.60 #193

Open suuuehgi opened 1 year ago

suuuehgi commented 1 year ago

Prerequisite checklist

What is the problem/feature you would like to see fixed/implemented?

No crash

How can we reproduce the problem?

  1. Install Anki
  2. Install Plugin

Expected behavior:

Run

Actual behavior:

When loading '⁨Insert Randomized Lists multiple choice⁩':
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/aqt/addons.py", line 247, in loadAddons
    __import__(addon.dir_name)
  File "/home/username/.local/share/Anki2/addons21/1280092568/__init__.py", line 9, in <module>
    from . import editor_random_list
  File "/home/username/.local/share/Anki2/addons21/1280092568/editor_random_list.py", line 81, in <module>
    editor._html = editor._html + editor_style
AttributeError: module 'aqt.editor' has no attribute '_html'

Reproducible?:

from aqt import editor
editor._html
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Cell In[2], line 1
----> 1 editor._html

AttributeError: module 'aqt.editor' has no attribute '_html'

Version information

Anki

Anki v. 2.1.60 Qt v. 6.4.2 PyQt v. 6.4.2

System

Arch Linux