New toolkit and packaging test (round 2)

Finally got around to testing all my regular add-ons to see what’s broken. Please note that this is without extensive testing of all add-ons and is only just on loading anki. There are probably more breaks

@dae I will hold off on posting these on the respective githubs until you tell me that they are not fixable within Anki or subject to change with future betas. I’ll do what I can to help the community upgrade so please let me know how to best assist.

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’

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)

Searching PDF Reading Note-Taking in Add Dialog

File “/Users/Nick/Library/Application Support/Anki2/addons21/1781298089/src/dialogs/importing/quick_web_import.py”, line 482, in
class SearchBar(QWidget):
File “/Users/Nick/Library/Application Support/Anki2/addons21/1781298089/src/dialogs/importing/quick_web_import.py”, line 521, in SearchBar
def on_search_forward(self, direction= QWebEnginePage.FindFlag()):
TypeError: call() missing 1 required positional argument: ‘value’

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’

Field AutoComplete

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’

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)

Exam Notifier

File “/Users/Nick/Library/Application Support/Anki2/addons21/exam_notifier/libaddon/gui/basic/widgets/qkeygrabber.py”, line 43, in
from .qt import QDialog, QPushButton, QVBoxLayout, QLabel, Qt, QKeySequence
ImportError: cannot import name ‘QDialog’ from ‘exam_notifier.libaddon.gui.basic.widgets.qt’ (/Users/Nick/Library/Application Support/Anki2/addons21/exam_notifier/libaddon/gui/basic/widgets/qt.py)

Export Single Tag for Sharing

File “/Users/Nick/Library/Application Support/Anki2/addons21/export-tag/dialog.py”, line 224, in get_anking_menu
menu = a.menu()
AttributeError: ‘QAction’ object has no attribute ‘menu’

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)

Customize Background and Gear Icon

File “/Users/Nick/Library/Application Support/Anki2/addons21/zCustomback-45 update/gui_updatemanager.py”, line 416, in get_anking_menu
menu = a.menu()
AttributeError: ‘QAction’ object has no attribute ‘menu’

Image Occlusion

File “/Users/Nick/Library/Application Support/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’

Browser table editor side-by-side

File “/Users/Nick/Library/Application Support/Anki2/addons21/831846358/init.py”, line 175, in onSetupMenus
m = getMenu(self, “&View”)
File “/Users/Nick/Library/Application Support/Anki2/addons21/831846358/toolbar.py”, line 13, in getMenu
return a.menu()
AttributeError: ‘QAction’ object has no attribute ‘menu’

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’

Qt5 version

Searching PDF Reading

File “/Users/Nick/Library/Application Support/Anki2/addons21/1781298089/src/init.py”, line 121, in init_addon
aqt.editor._html += “”" “”"
AttributeError: module ‘aqt.editor’ has no attribute ‘_html’

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

4 Likes