Skip to content

[Insert Randomized Lists] Incompatible With Anki 2.1.60 #193

@suuuehgi

Description

@suuuehgi

Prerequisite checklist

  • In case of a bug: Have you tried restarting Anki?
  • Are you running the latest version of the add-on? Have you redownloaded the add-on from AnkiWeb to make sure?
  • Did you check the add-on description on AnkiWeb for known issues?
  • Did you perform a cursory search through existing issue reports?

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions