dae
December 4, 2021, 4:40am
2
[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.
Fixed.
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)
mw.app.primaryScreen() can probably be used as a replacement
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.
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.
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.
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.
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
tb.setToolButtonStyle(Qt.ToolButtonStyle.ToolButtonTextUnderIcon)
Qt5 version
Searching PDF Reading
Changes are required in the add-on; I think the author is on top of it.
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.
6 Likes