# Add-on issues with Anki 2.1.50 Beta

**URL:** <https://forums.ankiweb.net/t/add-on-issues-with-anki-2-1-50-beta/15631>\
**Category:** Beta Testing\
**Created:** [December 5, 2021, 12:14am UTC](https://forums.ankiweb.net/t/add-on-issues-with-anki-2-1-50-beta/15631 "2021-12-05T00:14:55Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [December 5, 2021, 12:14am UTC](https://forums.ankiweb.net/t/add-on-issues-with-anki-2-1-50-beta/15631/1 "2021-12-05T00:14:55Z")

</div>

Please post any add-on issue you encounter here. Some of them may require changes by the add-on author, but some may be fixable on Anki’s end.

Associated beta thread: [Anki 2.1.50 Beta](https://forums.ankiweb.net/t/anki-2-1-50-beta/15608)

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [December 4, 2021, 4:40am UTC](https://forums.ankiweb.net/t/add-on-issues-with-anki-2-1-50-beta/15631/2 "2021-12-04T04:40:26Z")

</div>

[taken from the previous packaging test thread - the ones marked “fixed” should already be fixed in beta 1]

Thanks for taking the time to gather those.

> [@New toolkit and packaging test (round 2)](https://forums.ankiweb.net/t/new-toolkit-and-packaging-test-round-2/14513/17):
>
> **Qt6 version:**  
> AMBOSS add-on
> 
> > File “/Users/Nick/Library/Application Support/Anki2/addons21/1044112126/sidepanel\_web.py”, line 137, in init  
> > self.settings().setAttribute(QWebEngineSettings.JavascriptCanOpenWindows, True)  
> > AttributeError: type object ‘QWebEngineSettings’ has no attribute ‘JavascriptCanOpenWindows’

Fixed.

> [@New toolkit and packaging test (round 2)](https://forums.ankiweb.net/t/new-toolkit-and-packaging-test-round-2/14513/17):
>
> Image Style Editor
> 
> > File “/Users/Nick/Library/Application Support/Anki2/addons21/1593969147/init.py”, line 13, in  
> > from aqt.qt import Qt, QWidget, QDesktopWidget, QHBoxLayout, QVBoxLayout, QLabel, QFrame, QLineEdit, QCheckBox, QPushButton  
> > ImportError: cannot import name ‘QDesktopWidget’ from ‘aqt.qt’ (unknown location)

- [Changes to Qt Widgets | Qt Widgets | Qt 6.12.0](https://doc.qt.io/qt-6/widgets-changes-qt6.html#qdesktopwidget-and-qapplication-desktop)

mw.app.primaryScreen() can probably be used as a replacement

> [@New toolkit and packaging test (round 2)](https://forums.ankiweb.net/t/new-toolkit-and-packaging-test-round-2/14513/17):
>
> Customize Keyboard Shortcuts
> 
> > File “/Users/Nick/Library/Application Support/Anki2/addons21/24411424/custom\_shortcuts.py”, line 101, in cs\_main\_setupShortcuts  
> > if scut.id() in id\_main\_config:  
> > AttributeError: ‘QShortcut’ object has no attribute ‘id’

This is in the Qt docs, so it may be an oversight on PyQt’s part. If the add-on author can’t work around it with a different approach, I’d recommend they report it on the PyQt mailing list.

> [@New toolkit and packaging test (round 2)](https://forums.ankiweb.net/t/new-toolkit-and-packaging-test-round-2/14513/17):
>
> Field AutoComplete  
> Export Single Tag for Sharing  
> Browser table editor side-by-side
> 
> > File “/Users/Nick/Library/Application Support/Anki2/addons21/511710206/dialog.py”, line 194, in get\_anking\_menu  
> > menu = a.menu()  
> > AttributeError: ‘QAction’ object has no attribute ‘menu’

Deprecated by Qt, so unlikely to ever come back to PyQt. The add-ons can likely work around it by storing a reference to the menu when it is created, and such an approach should work on older Anki versions as well.

> [@New toolkit and packaging test (round 2)](https://forums.ankiweb.net/t/new-toolkit-and-packaging-test-round-2/14513/17):
>
> Straight Reward
> 
> > File “/Users/Nick/Library/Application Support/Anki2/addons21/957961234/src/lib/logic.py”, line 1, in  
> > from PyQt5 import QtWidgets, Qt  
> > ImportError: cannot import name ‘Qt’ from ‘PyQt6’ (/Applications/Anki 2.1.50 qt6.app/Contents/MacOS/lib/PyQt6/init.py)

Fixed.

> [@New toolkit and packaging test (round 2)](https://forums.ankiweb.net/t/new-toolkit-and-packaging-test-round-2/14513/17):
>
> Review Heatmap
> 
> > File “/Users/Nick/Library/Application Support/Anki2/addons21/review\_heatmap/libaddon/gui/basic/widgets/qkeygrabber.py”, line 43, in  
> > from .qt import QDialog, QPushButton, QVBoxLayout, QLabel, Qt, QKeySequence  
> > ImportError: cannot import name ‘QDialog’ from ‘review\_heatmap.libaddon.gui.basic.widgets.qt’ (/Users/Nick/Library/Application Support/Anki2/addons21/review\_heatmap/libaddon/gui/basic/widgets/qt.py)

That error is fixed, but the add-on needs other work.

> [@New toolkit and packaging test (round 2)](https://forums.ankiweb.net/t/new-toolkit-and-packaging-test-round-2/14513/17):
>
> Fastbar
> 
> > File “/Users/Nick/Library/Application Support/Anki2/addons21/Fastbar- with nightmode support/fastbar.py”, line 152, in make\_and\_add\_toolbar  
> > tb.setToolButtonStyle(3)  
> > TypeError: setToolButtonStyle(self, Qt.ToolButtonStyle): argument 1 has unexpected type ‘int’

Should be

```python
    tb.setToolButtonStyle(Qt.ToolButtonStyle.ToolButtonTextUnderIcon)

```

> [@New toolkit and packaging test (round 2)](https://forums.ankiweb.net/t/new-toolkit-and-packaging-test-round-2/14513/17):
>
> **Qt5 version**
> 
> Searching PDF Reading

Changes are required in the add-on; I think the author is on top of it.

> [@New toolkit and packaging test (round 2)](https://forums.ankiweb.net/t/new-toolkit-and-packaging-test-round-2/14513/17):
>
> Fastbar
> 
> > File “aqt.hooks\_gen”, line 1030, in **call**  
> > File “/Users/Nick/Library/Application Support/Anki2/addons21/Fastbar- with nightmode support/fastbar.py”, line 183, in make\_and\_add\_toolbar  
> > if ExtendedTagAddon and ExTaDiNo:  
> > NameError: name ‘ExtendedTagAddon’ is not defined

I can’t reproduce this - maybe a different add-on is connected.

---

<div class="post-metadata">

**Author:** ![korkmaz](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/korkmaz/32/7484_2.png) [@korkmaz](https://forums.ankiweb.net/u/korkmaz)\
**Post date:** [December 4, 2021, 9:39pm UTC](https://forums.ankiweb.net/t/add-on-issues-with-anki-2-1-50-beta/15631/3 "2021-12-04T21:39:48Z")

</div>

Has anyone had this problem on review heatmap?

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/4/42a71b39ef87185e202545e2ae91943b9ce8856b.png)

---

<div class="post-metadata">

**Author:** ![NameLessGO](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/namelessgo/32/34298_2.png) [@NameLessGO](https://forums.ankiweb.net/u/NameLessGO)\
**Post date:** [December 4, 2021, 9:44pm UTC](https://forums.ankiweb.net/t/add-on-issues-with-anki-2-1-50-beta/15631/4 "2021-12-04T21:44:00Z")

</div>

Qt6: review heatmap is broken  
Qt5: works fine

---

<div class="post-metadata">

**Author:** ![korkmaz](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/korkmaz/32/7484_2.png) [@korkmaz](https://forums.ankiweb.net/u/korkmaz)\
**Post date:** [December 4, 2021, 9:47pm UTC](https://forums.ankiweb.net/t/add-on-issues-with-anki-2-1-50-beta/15631/5 "2021-12-04T21:47:40Z")

</div>

I’ll switch to Qt5, thanks again

---

<div class="post-metadata">

**Author:** ![NameLessGO](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/namelessgo/32/34298_2.png) [@NameLessGO](https://forums.ankiweb.net/u/NameLessGO)\
**Post date:** [December 4, 2021, 10:33pm UTC](https://forums.ankiweb.net/t/add-on-issues-with-anki-2-1-50-beta/15631/6 "2021-12-04T22:33:41Z")

</div>

will check add-ons for a organized report

---

<div class="post-metadata">

**Author:** ![tatsumoto](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/tatsumoto/32/5411_2.png) [@tatsumoto](https://forums.ankiweb.net/u/tatsumoto)\
**Post date:** [December 4, 2021, 10:46pm UTC](https://forums.ankiweb.net/t/add-on-issues-with-anki-2-1-50-beta/15631/7 "2021-12-04T22:46:32Z")

</div>

I get `NameError: name 'isWin' is not defined` when I try to run the beta. Please stop removing stuff that add-ons use.

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [December 5, 2021, 12:46am UTC](https://forums.ankiweb.net/t/add-on-issues-with-anki-2-1-50-beta/15631/8 "2021-12-05T00:46:14Z")

</div>

> [@NameLessGO](#):
>
> Qt6: review heatmap is broken

The add-on is using a feature that PyQt6 no longer supports, so action will be required on @glutanimate’s part here.

> [@tatsumoto](#):
>
> I get `NameError: name 'isWin' is not defined` when I try to run the beta. Please stop removing stuff that add-ons use.

We go to pains to try to keep things working, but can’t cover all cases. If you import the legacy name from the location it was defined in, like most add-ons do, it will work fine:

```auto
>>> from anki.utils import isWin
<string>:1:isWin is deprecated: please use 'is_win'

```

What won’t work is if the add-on is importing the legacy name from a different file that just happened to import the symbol for its own use, like `from aqt.editor import isWin`. It’s not practical to cover these cases, but they are thankfully rare. The add-on author could have exercised more care here, but the blame mostly lies on Python itself, which makes imports public by default, and makes it cumbersome to import something semi-privately.

---

<div class="post-metadata">

**Author:** ![NameLessGO](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/namelessgo/32/34298_2.png) [@NameLessGO](https://forums.ankiweb.net/u/NameLessGO)\
**Post date:** [December 5, 2021, 6:18am UTC](https://forums.ankiweb.net/t/add-on-issues-with-anki-2-1-50-beta/15631/9 "2021-12-05T06:18:05Z")

</div>

because i tested with the ./anki instead of installing anki, the A-F add-on compatibility report will be redone

H-L was tested with the anki installed

im sorry for the sloppy work, redo and then repost

---

<div class="post-metadata">

**Author:** ![ijgnd](https://avatars.discourse-cdn.com/v4/letter/i/bbe5ce/32.png) [@ijgnd](https://forums.ankiweb.net/u/ijgnd)\
**Post date:** [December 5, 2021, 9:55am UTC](https://forums.ankiweb.net/t/add-on-issues-with-anki-2-1-50-beta/15631/10 "2021-12-05T09:55:41Z")

</div>

> [@NameLessGO](#):
>
> the hyperlinks button disappears in the “Add” (didn’t got fixed in recent update)

Thanks for your help.

Strange. I don’t have this problem.

I assume you tested with the latest packaged betas from [https://apps.ankiweb.net/downloads/beta/](https://apps.ankiweb.net/downloads/beta/) or you’re running from source with a version younger than one week (i.e. with [this commit](https://github.com/ankitects/anki/commit/8edca4e6c154633f0797981640bd29716cc409bc))?

Maybe it’s an add-on conflict - some of my add-ons try to import other add-ons and then errors trickle down from other add-ons. To rule this out: could you disable all other add-ons and restart anki and check the add window again.

I assume you tested with the add hyperlink version I uploaded 7 hours ago for 2.1.50 - I write this because I think that [this problem](https://forums.ankiweb.net/t/first-run-after-anki-update-should-trigger-add-on-update-check/8396) still persists.

Also: If you find any other compatibility problems in my other add-ons please let me know.

&nbsp;

&nbsp;

Also: A fix for the fastbar add-on is coming, you can also manually apply these patches from github: [fixes for qt6 by ijgnd · Pull Request #14 · AnKing-VIP/Fastbar-with-nightmode-support · GitHub](https://github.com/ankipalace/Fastbar-with-nightmode-support/pull/14)

---

<div class="post-metadata">

**Author:** ![MIZMU](https://avatars.discourse-cdn.com/v4/letter/m/7993a0/32.png) [@MIZMU](https://forums.ankiweb.net/u/MIZMU)\
**Post date:** [December 5, 2021, 12:28pm UTC](https://forums.ankiweb.net/t/add-on-issues-with-anki-2-1-50-beta/15631/11 "2021-12-05T12:28:38Z")

</div>

[https://ankiweb.net/shared/info/1499032797](https://ankiweb.net/shared/info/1499032797)  
Does not change the time

---

<div class="post-metadata">

**Author:** ![NameLessGO](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/namelessgo/32/34298_2.png) [@NameLessGO](https://forums.ankiweb.net/u/NameLessGO)\
**Post date:** [December 5, 2021, 8:38pm UTC](https://forums.ankiweb.net/t/add-on-issues-with-anki-2-1-50-beta/15631/12 "2021-12-05T20:38:07Z")

</div>

about hyperlink add-on, sorry that was my mistake, everything is work flawless here  
_probably will need to check up on my eyes to see if it is working_

testing the add-ons one by one on the latest anki beta1, while checking for add-ons updates (possible Qt6 fixes)

about the pull request on Fastbar, amazing work @ijgnd

---

<div class="post-metadata">

**Author:** ![NameLessGO](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/namelessgo/32/34298_2.png) [@NameLessGO](https://forums.ankiweb.net/u/NameLessGO)\
**Post date:** [December 6, 2021, 3:54am UTC](https://forums.ankiweb.net/t/add-on-issues-with-anki-2-1-50-beta/15631/13 "2021-12-06T03:54:24Z")

</div>

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

- ( **Qt6** ) [Advanced Browser - AnkiWeb](https://ankiweb.net/shared/info/874215009) [**SORTING\_NORMAL needs to be renamed to SORTING\_ASCENDING**]

```auto
 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

```

- ( **Qt6** ) (Visual glitch): [Batch Editing - AnkiWeb](https://ankiweb.net/shared/info/291119185) and [Custom Background Image and Gear Icon - AnkiWeb](https://ankiweb.net/shared/info/1210908941)  
Browse → Edit → Batch edit…: icon is missing  
AnKIng → “Custom Background and Gear icon”: the logos/icons are missing

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

- ( **Qt5, Qt6** ) [Enhanced Cloze (for Anki 2.1) - AnkiWeb](https://ankiweb.net/shared/info/1990296174)  
Broke the ability to do cloze (Crtl + Shift + C or Crtl + Shift + Alt + C), affects all cloze related note type

```auto
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

```

- ( **Qt6** ) [Free Weekend - or Any Other Day - AnkiWeb](https://ankiweb.net/shared/info/742185195) [**due to changes in PyQt6**]  
access the add-on in the old deck options → shift + cog symbol

```auto
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'

```

- ( **Qt6** ) [Image Editor - AnkiWeb](https://ankiweb.net/shared/info/307397307) [**due to changes in PyQt6**]

```auto
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'

```

- ( **Qt5, Qt6** ) [Image Occlusion Enhanced for Anki 2.1 (alpha) - AnkiWeb](https://ankiweb.net/shared/info/1374772155) [**due to changes/removals in Anki’s APIs**]

```auto
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](https://ankiweb.net/shared/info/1214357311) [**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

```auto
 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'

```

- ( **Qt6** ) [(Legacy) Spelling Police™ - AnkiWeb](https://ankiweb.net/shared/info/1410276506) [**due to changes/removals in Anki’s APIs**]  
( [Looking for new maintainer](https://github.com/lovac42/SpellingPolice/issues/10))

```auto
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)

```

⁨

- ( **Qt5, Qt6** ) [Pokemanki - AnkiWeb](https://ankiweb.net/shared/info/633922407)

Pokemanki → trade

```auto
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)

```

- ( **Qt5, Qt6** ) [Resize images in editor - AnkiWeb](https://ankiweb.net/shared/info/1103084694)

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

```auto
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

```

- ( **Qt6** )[Review Heatmap](https://github.com/Glutanimate/review-heatmap/releases) [**due to changes in PyQt6**]

```auto
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

```

- ( **Qt5, Qt6** ) [Special Fields - AnkiWeb](https://ankiweb.net/shared/info/1102281552)

Tools → Special fields

```auto
  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'

```

- ( **Qt5? Qt6** ) [Straight Reward - AnkiWeb](https://ankiweb.net/shared/info/957961234)  
`JS error /_anki/js/editor.js:70 Uncaught (in promise) IndexSizeError: Failed to execute 'getRangeAt' on 'Selection': 0 is not a valid index.`

- ( **Visual glitch** ) ( **Qt5, Qt6** ) [Syllabus - Anki Statistics and Export by Tag and Deck - AnkiWeb](https://ankiweb.net/shared/info/668156440)

Icons are missing

```auto
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

```

- ( **Qt5, Qt6** ) [Symbols - AnkiWeb](https://ankiweb.net/shared/info/1461102936)

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

- ( **Qt5, Qt6** ) [Symbols As You Type - AnkiWeb](https://ankiweb.net/shared/info/2040501954)

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

```auto
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

```

- ( **Qt6** ) [Web Browser - Search terms, Import texts and images automatically - AnkiWeb](https://ankiweb.net/shared/info/864545277)  
in any card, right click and search in the web (Any option)  
`Unexpected event: it wasn't possible to complete the operation... addons21/864545277/awb-exception.`

- ( **Qt5, Qt6** ) [Wrapper meta-addon - AnkiWeb](https://ankiweb.net/shared/info/396502676)

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

```auto
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](https://ankiweb.net/shared/info/153625306) 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](https://ankiweb.net/shared/info/1807121582) and [Browser Resizer - AnkiWeb](https://ankiweb.net/shared/info/1435775540) are working or not

[Collapsible Fields - AnkiWeb](https://ankiweb.net/shared/info/1896168623) partially integrated to anki (“Customize Field” don’t have “collapse by default”) (thanks for the awesome work @hgiesel)

[Extended Tag Add/Edit Dialog - AnkiWeb](https://ankiweb.net/shared/info/1135507717), 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](https://youtu.be/rfscVS0vtbw) to become a bug hunter master, thanks @ijgnd for the helpful and positivel msg in github and the guide on [reddit](https://www.reddit.com/r/Anki/comments/ctmwmn/fastest_and_easiest_way_to_grasp_python_for/)

Fixed:  
[Fastbar- with nightmode support - AnkiWeb](https://ankiweb.net/shared/info/46611790) 2021-12-08  
[Image Style Editor - AnkiWeb](https://ankiweb.net/shared/info/1593969147) 2021/12/17

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [December 6, 2021, 9:28am UTC](https://forums.ankiweb.net/t/add-on-issues-with-anki-2-1-50-beta/15631/14 "2021-12-06T09:28:12Z")

</div>

> [@NameLessGO](#):
>
> ( **Qt6** ) [AMBOSS Official – Medical School Step & Shelf Study Resource - AnkiWeb](https://ankiweb.net/shared/info/1044112126) (Will be fixed in Beta 2)

Sorry, moving [this post](https://forums.ankiweb.net/t/add-on-issues-with-anki-2-1-50-beta/15631/2) from the previous thread here without comment was confusing. This add-on (to the extend that it loads - I did not test it fully) should already be working in beta 1. If it’s still giving you trouble, could you post the errors you’re getting, and confirm they’re not due to other add-ons?

> [@NameLessGO](#):
>
> - ( **Qt5** ) [Advanced Browser - AnkiWeb](https://ankiweb.net/shared/info/874215009)
> 
> ```auto
> "/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
> 
> ```

SORTING\_NORMAL needs to be renamed to SORTING\_ASCENDING.

Other errors posted above that are due to changes/removals in Anki’s APIs:

- image occlusion enhanced
- imageresizer
- spelling police

These issues look to be due to changes in PyQt6:

- free weekend
- image editor

---

<div class="post-metadata">

**Author:** ![NameLessGO](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/namelessgo/32/34298_2.png) [@NameLessGO](https://forums.ankiweb.net/u/NameLessGO)\
**Post date:** [December 6, 2021, 11:45pm UTC](https://forums.ankiweb.net/t/add-on-issues-with-anki-2-1-50-beta/15631/15 "2021-12-06T23:45:12Z")

</div>

sorry @dae used the ./anki instead of installing it on the A-F add-on compatibility report, and because of that, amboss was broken and hyperlink was without buttons

both: the amboss and hyperlink is working fine if you install the anki ( for the future beta testers, don’t use ./anki to test add-on compatibility)

For now will prioritize the A-F report then recheck the H-L (believe it was using the installed version, but will redo)

edit 1: tested the add-ons with the Qt6 version, nothing new, so merged the posts and typed dae comments in brackets […]  
Also merged Batch editing and customize backgrounds because they had the same problem

---

<div class="post-metadata">

**Author:** ![MIZMU](https://avatars.discourse-cdn.com/v4/letter/m/7993a0/32.png) [@MIZMU](https://forums.ankiweb.net/u/MIZMU)\
**Post date:** [December 7, 2021, 7:34pm UTC](https://forums.ankiweb.net/t/add-on-issues-with-anki-2-1-50-beta/15631/16 "2021-12-07T19:34:54Z")

</div>

[https://ankiweb.net/shared/info/1136455830](https://ankiweb.net/shared/info/1136455830)  
Skip button does not work

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [December 8, 2021, 11:51am UTC](https://forums.ankiweb.net/t/add-on-issues-with-anki-2-1-50-beta/15631/17 "2021-12-08T11:51:58Z")

</div>

Split this topic on December 8, 2021, 11:51am UTC

A post was merged into an existing topic: [Anki 2.1.50 Beta](https://forums.ankiweb.net/t/anki-2-1-50-beta/15608/54)

---

<div class="post-metadata">

**Author:** ![homocomputeris](https://avatars.discourse-cdn.com/v4/letter/h/bc8723/32.png) [@homocomputeris](https://forums.ankiweb.net/u/homocomputeris)\
**Post date:** [December 7, 2021, 8:30pm UTC](https://forums.ankiweb.net/t/add-on-issues-with-anki-2-1-50-beta/15631/18 "2021-12-07T20:30:32Z")

</div>

I’ve tried building Anki with QT6, which works fine but probably the reason of the error below.  
When I try to open AJT Pitch Accent options, I get:

```auto
Anki 2.1.50 (0de24122) Python 3.9.9 Qt 6.2.2 PyQt 6.2.2
Platform: Linux
Flags: frz=False ao=True sv=3
Add-ons, last update check: 2021-12-06 23:19:44
Possible reason: <U+2068>AJT Pitch Accent<U+2069>

Caught exception:
Traceback (most recent call last):
  File "/home/user/.local/share/Anki2/addons21/1225470483/options.py", line 240, in open_options
    dialog = SettingsDialog(mw)
  File "/home/user/.local/share/Anki2/addons21/1225470483/options.py", line 170, in __init__
    self.list_edits = self.create_list_edits()
  File "/home/user/.local/share/Anki2/addons21/1225470483/options.py", line 176, in create_list_edits
    'note_types': NoteTypesListEdit(self),
  File "/home/user/.local/share/Anki2/addons21/1225470483/options.py", line 132, in __init__
    super(NoteTypesListEdit, self). __init__ (
  File "/home/user/.local/share/Anki2/addons21/1225470483/options.py", line 65, in __init__
    self.list_widget = self.create_list_widget(items)
  File "/home/user/.local/share/Anki2/addons21/1225470483/options.py", line 71, in create_list_widget
    list_widget.setSizeAdjustPolicy(QListWidget.AdjustToContents)
AttributeError: type object 'QListWidget' has no attribute 'AdjustToContents'

```

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [December 8, 2021, 12:00pm UTC](https://forums.ankiweb.net/t/add-on-issues-with-anki-2-1-50-beta/15631/19 "2021-12-08T12:00:26Z")

</div>

The compat shims can’t cover cases where the enum was defined in a parent class. It needs to be changed to something like `QSizePolicy.AdjustToContents`.

---

<div class="post-metadata">

**Author:** ![matthayes](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/matthayes/32/225_2.png) [@matthayes](https://forums.ankiweb.net/u/matthayes)\
**Post date:** [December 9, 2021, 7:59am UTC](https://forums.ankiweb.net/t/add-on-issues-with-anki-2-1-50-beta/15631/20 "2021-12-09T07:59:26Z")

</div>

I recently updated the [Cloze Anything](https://github.com/matthayes/anki_cloze_anything) add-on to work with 2.1.49. I thought I’d test with the 2.1.50 beta and found a problem that seems related to calling the wrap JavaScript method. The wrapping text is no longer added. I’m guessing this is related to the error highlighted earlier in this thread: `Uncaught ReferenceError: wrap is not defined`. Was this function removed and if so what would be the new way to achieve this?

Here’s the code that is working in 2.1.49:

```auto
wrap_command = "wrap('((c{}::', '))');".format(next_cloze_num)
...
editor.web.evalWithCallback(wrap_command, callback)

```

[Next page](https://forums.ankiweb.net/t/add-on-issues-with-anki-2-1-50-beta/15631.md?page=2)
