Add-on issues with Anki 2.1.50 Beta

Add-ons compatibility report

Objective: show which add-ons, in alphabetic order, are having problems (breaking or visual glitch) with anki 2.1.50 Qt5 and/or Qt6 using AnKing Palace add-ons list and configuration + personal list of add-on

Notes: will update the msg in case the extension get fixed Throughout anki 2.1.50 beta
Note 2: msgs in […] are dae or others dev comments
Note 3: tested with Beta 2

 File "aqt.hooks_gen", line 1030, in __call__
  File "/home/anon/.local/share/Anki2/addons21/874215009/advancedbrowser/core.py", line 42, in _load
    runHook("advBrowserLoaded", self)
  File "anki.hooks", line 34, in runHook
  File "/home/anon/.local/share/Anki2/addons21/874215009/advancedbrowser/note_fields.py", line 36, in onAdvBrowserLoad
    self.buildMappings()
  File "/home/anon/.local/share/Anki2/addons21/874215009/advancedbrowser/note_fields.py", line 137, in buildMappings
    self.advBrowser.setupColumns()
  File "/home/anon/.local/share/Anki2/addons21/874215009/advancedbrowser/core.py", line 91, in setupColumns
    sorting=BrowserColumns.SORTING_NORMAL if column.onSort() else BrowserColumns.SORTING_NONE,
AttributeError: SORTING_NORMAL

resources/anki21/icons_rc.py:108:The Qt resource system no longer works on PyQt6. Use QDir.addSearchPath() or mw.addonManager.setWebExports() instead.

addons21/1990296174/enhanced_cloze.py:356:onCloze() is deprecated: this routine has been moved into JS, and will be removed soon
aqt.editor:519:_onCloze() is deprecated: this routine has been moved into JS, and will be removed soon
JS error /_anki/legacyPageData?id=140366482995232:1 Uncaught ReferenceError: wrap is not defined
File "/home/anon/.local/share/Anki2/addons21/742185195/free_weekend.py", line 76, in load_conf
    f.DisableFW.setCheckState(c.get('DisableFW', 0))
TypeError: setCheckState(self, Qt.CheckState): argument 1 has unexpected type 'int'


File "/home/anon/.local/share/Anki2/addons21/742185195/free_weekend.py", line 81, in save_conf
    c['DisableFW'] = int(f.DisableFW.checkState())
TypeError: int() argument must be a string, a bytes-like object or a number, not 'CheckState'
File "aqt.hooks_gen", line 2273, in __call__
  File "anki.hooks", line 34, in runHook
  File "/home/anon/.local/share/Anki2/addons21/307397307/editor.py", line 26, in add_context_menu_action
    context_data = wv.page().contextMenuData()
AttributeError: 'AnkiWebPage' object has no attribute 'contextMenuData'
File "anki.hooks", line 34, in runHook
  File "/home/anon/.local/share/Anki2/addons21/1374772155/main.py", line 201, in onProfileLoaded
    editor._html = editor._html + io_editor_style.replace("%", "%%")
AttributeError: module 'aqt.editor' has no attribute '_html'
  • (Qt6, Qt5) ImageResizer - AnkiWeb [due to changes/removals in Anki’s APIs]
    Inability to paste images (crtl + v) in “add” and the resize option on “browse” don’t show when “right click” on the image
 File "aqt.webview", line 41, in cmd
  File "aqt.webview", line 148, in _onCmd
  File "aqt.webview", line 600, in _onBridgeCmd
  File "aqt.editor", line 434, in onBridgeCmd
  File "aqt.editor", line 886, in onPaste
  File "aqt.editor", line 1144, in onPaste
  File "aqt.editor", line 1138, in _onPaste
  File "decorator", line 232, in fun
  File "anki.hooks", line 89, in decorator_wrapper
  File "anki.hooks", line 86, in repl
TypeError: _processMime_around_with_extended() got multiple values for argument '_old'
File "/home/anon/.local/share/Anki2/addons21/1410276506/const.py", line 22, in <module>
    from aqt import moduleDir
ImportError: cannot import name 'moduleDir' from 'aqt' (unknown location)

Pokemanki → trade

File "/home/anon/.local/share/Anki2/addons21/633922407/trades.py", line 237, in tradeFunction
    self.newTrades()
  File "/home/anon/.local/share/Anki2/addons21/633922407/trades.py", line 161, in newTrades
    randno = random.randint(0, len(deckmonlist)-1)
  File "random", line 338, in randint
  File "random", line 316, in randrange
ValueError: empty range for randrange() (0, 0, 0)

Add → “try to make a cloze card” and click Add → “First field can’t be empty” or the cloze {{c1::}} will appear
also, there isn’t an option to edit the image in browse

JS error /_addons/1103084694/web/init.js:32 Uncaught TypeError: Cannot read property 'childElementCount' of null
JS error /_addons/1103084694/web/save_field.js:129 Uncaught ReferenceError: $ is not defined
review_heatmap/libaddon/platform.py:45:isMac is deprecated: please use 'is_mac'
review_heatmap/libaddon/platform.py:45:isWin is deprecated: please use 'is_win'
libaddon/anki/configmanager.py:42:json is deprecated: please implement your own
libaddon/gui/labelformatter.py:51:'Qt.FindChildrenRecursively' will stop working. Please use 'Qt.FindChildOption.FindChildrenRecursively' instead.
addons21/review_heatmap/heatmap.py:36:json is deprecated: please implement your own
resources/anki21/icons_rc.py:3119:The Qt resource system no longer works on PyQt6. Use QDir.addSearchPath() or mw.addonManager.setWebExports() instead.
resources/anki21/web_rc.py:11786:The Qt resource system no longer works on PyQt6. Use QDir.addSearchPath() or mw.addonManager.setWebExports() instead.
Starting main loop...
addons21/review_heatmap/activity.py:161:schedVer is deprecated: please use 'sched_ver'
conf key heatmap should be fetched with col.get_config(), and saved with col.set_config()
conf key heatmap should be fetched with col.get_config(), and saved with col.set_config()
addons21/review_heatmap/activity.py:161:schedVer is deprecated: please use 'sched_ver'
Qt warning: QResource '/review_heatmap/web/d3.min.js' not found or is empty 
Qt warning: QResource '/review_heatmap/web/cal-heatmap.js' not found or is empty 
Qt warning: QResource '/review_heatmap/web/cal-heatmap.css' not found or is empty 
Qt warning: QResource '/review_heatmap/web/review-heatmap.js' not found or is empty 
Qt warning: QResource '/review_heatmap/web/review-heatmap.css' not found or is empty 
Qt warning: QResource '/review_heatmap/icons/left.svg' not found or is empty 
Qt warning: QResource '/review_heatmap/icons/circle.svg' not found or is empty 
Qt warning: QResource '/review_heatmap/icons/right.svg' not found or is empty 
Qt warning: QResource '/review_heatmap/icons/options.svg' not found or is empty 
Qt warning: QResource '/review_heatmap/icons/heart_bw.svg' not found or is empty 
Qt warning: QResource '/review_heatmap/web/d3.min.js' not found or is empty 
Qt warning: QResource '/review_heatmap/web/cal-heatmap.js' not found or is empty 
Qt warning: QResource '/review_heatmap/web/cal-heatmap.css' not found or is empty 
Qt warning: QResource '/review_heatmap/web/review-heatmap.js' not found or is empty 
Qt warning: QResource '/review_heatmap/web/review-heatmap.css' not found or is empty 
JS error /_anki/legacyPageData?id=140411001973056:118 Uncaught ReferenceError: initHeatmap is not defined
addons21/review_heatmap/activity.py:161:schedVer is deprecated: please use 'sched_ver'
Qt warning: QResource '/review_heatmap/web/d3.min.js' not found or is empty 
Qt warning: QResource '/review_heatmap/web/cal-heatmap.js' not found or is empty 
Qt warning: QResource '/review_heatmap/web/cal-heatmap.css' not found or is empty 
Qt warning: QResource '/review_heatmap/web/review-heatmap.js' not found or is empty 
Qt warning: QResource '/review_heatmap/web/review-heatmap.css' not found or is empty 
Qt warning: QResource '/review_heatmap/icons/left.svg' not found or is empty 
Qt warning: QResource '/review_heatmap/icons/circle.svg' not found or is empty 
Qt warning: QResource '/review_heatmap/icons/right.svg' not found or is empty 
Qt warning: QResource '/review_heatmap/icons/options.svg' not found or is empty 
Qt warning: QResource '/review_heatmap/icons/heart_bw.svg' not found or is empty 
Qt warning: QResource '/review_heatmap/web/d3.min.js' not found or is empty 
Qt warning: QResource '/review_heatmap/web/cal-heatmap.js' not found or is empty 
Qt warning: QResource '/review_heatmap/web/cal-heatmap.css' not found or is empty 
Qt warning: QResource '/review_heatmap/web/review-heatmap.js' not found or is empty 
Qt warning: QResource '/review_heatmap/web/review-heatmap.css' not found or is empty 
JS error /_anki/legacyPageData?id=140411001973056:118 Uncaught ReferenceError: initHeatmap is not defined

Tools → Special fields

  File "/home/anon/.local/share/Anki2/addons21/1102281552/dialog.py", line 357, in onFields
    FieldDialog(mw, fields, parent=self)
  File "/home/anon/.local/share/Anki2/addons21/1102281552/dialog.py", line 64, in __init__
    self.form.label_5.setParent(None)
AttributeError: 'Ui_Dialog' object has no attribute 'label_5'

Icons are missing

Qt warning: Cannot open file ':/icons/collection.svg', because: No such file or directory 
Qt warning: Cannot open file ':/icons/deck.svg', because: No such file or directory 
Qt warning: Cannot open file ':/icons/tag.svg', because: No such file or directory

Add → Ctrl+S or the Sym button → placing any symbol:
JS error /_anki/legacyPageData?id=140298631864816:1 Uncaught ReferenceError: wrap is not defined

“Add” → type any of the commands found in tools (Input Symbols options) → Add

JS error /_anki/legacyPageData?id=140379598323568:1 Uncaught TypeError: Cannot read property 'setMatchList' of undefined
JS error /_anki/legacyPageData?id=140379598323568:61 Uncaught ReferenceError: forEditorField is not defined
JS error /_anki/legacyPageData?id=140379598323568:1 Uncaught TypeError: Cannot read property 'setMatchList' of undefined

Add → “justify text and center it” and “cloze” don’t work:

addons21/396502676/__init__.py:45:model is deprecated: please use 'note_type'
JS error /_addons/396502676/main.js:11 Uncaught ReferenceError: $ is not defined

Notes:
Pop-up Dictionary (beta) - AnkiWeb is in Patreon, the current version that anking deploys is the old one, and is not working atm

can’t tell if put ALL due "learning" cards first (+modified v2 support) - AnkiWeb and Browser Resizer - AnkiWeb are working or not

Collapsible Fields - AnkiWeb partially integrated to anki (“Customize Field” don’t have “collapse by default”) (thanks for the awesome work @hgiesel)

Extended Tag Add/Edit Dialog - AnkiWeb, the ankingpalace configuration “crtl + 6” don’t work on browse because there is already a shortcut occupied by “flag6”, maybe changing to crtl + Y (it is close to 6, so previous users can adapt without changing the workflow)

Reminder to learn python to become a bug hunter master, thanks @ijgnd for the helpful and positivel msg in github and the guide on reddit

Fixed:
Fastbar- with nightmode support - AnkiWeb 2021-12-08
Image Style Editor - AnkiWeb 2021/12/17

2 Likes