when start Krita appears this error:
AttributeError
Python 3.8.5: /usr/bin/python3
Tue Dec 22 12:34:57 2020
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
/home/chancho/.local/share/krita/pykrita/kritapluginpiemenu/PieMenuExtension.py in createActions(self=<kritapluginpiemenu.PieMenuExtension.PieMenuExtension object>, window=<PyKrita.krita.Window object>)
33 self.actionsList = ActionsList(self.qWin)
34
35 self.settings = Settings(self.actionsList, self.qWin)
36 self.settings.menusChanged.connect(self.updateMenus)
37 self.menus = self.settings.menus
self = <kritapluginpiemenu.PieMenuExtension.PieMenuExtension object>
self.settings undefined
global Settings = <class ‘kritapluginpiemenu.Settings.Settings’>
self.actionsList = <kritapluginpiemenu.ActionsList.ActionsList object>
self.qWin = <PyQt5.QtWidgets.QMainWindow object>
/home/chancho/.local/share/krita/pykrita/kritapluginpiemenu/Settings.py in init(self=<kritapluginpiemenu.Settings.Settings object>, actionsList=<kritapluginpiemenu.ActionsList.ActionsList object>, parent=<PyQt5.QtWidgets.QMainWindow object>)
44
45 self.settingsFormLayout = QFormLayout()
46 self.settingsFormLayout.setAlignment(Qt.AlignLeft | Qt.AlignTop)
47 self.groupBox = QGroupBox(“Pie Menu Settings”)
48 self.groupBox.setStyleSheet(“QGroupBox {font-size: 16px; text-decoration: underline;}”)
self = <kritapluginpiemenu.Settings.Settings object>
self.settingsFormLayout = <PyQt5.QtWidgets.QFormLayout object>
self.settingsFormLayout.setAlignment =
global Qt = <module ‘PyQt5.Qt’ from ‘/usr/lib/python3/dist-packages/PyQt5/Qt.cpython-38-x86_64-linux-gnu.so’>
Qt.AlignLeft undefined
Qt.AlignTop undefined
AttributeError: module ‘PyQt5.Qt’ has no attribute ‘AlignLeft’
cause = None
class = <class ‘AttributeError’>
context = None
delattr = <method-wrapper ‘delattr’ of AttributeError object>
dict = {}
dir =
doc = ‘Attribute not found.’
eq = <method-wrapper ‘eq’ of AttributeError object>
format =
ge = <method-wrapper ‘ge’ of AttributeError object>
getattribute = <method-wrapper ‘getattribute’ of AttributeError object>
gt = <method-wrapper ‘gt’ of AttributeError object>
hash = <method-wrapper ‘hash’ of AttributeError object>
init = <method-wrapper ‘init’ of AttributeError object>
init_subclass =
le = <method-wrapper ‘le’ of AttributeError object>
lt = <method-wrapper ‘lt’ of AttributeError object>
ne = <method-wrapper ‘ne’ of AttributeError object>
new =
reduce =
reduce_ex =
repr = <method-wrapper ‘repr’ of AttributeError object>
setattr = <method-wrapper ‘setattr’ of AttributeError object>
setstate =
sizeof =
str = <method-wrapper ‘str’ of AttributeError object>
subclasshook =
suppress_context = False
traceback =
args = (“module ‘PyQt5.Qt’ has no attribute ‘AlignLeft’”,)
with_traceback =
The above is a description of an error in a Python program. Here is
the original traceback:
Traceback (most recent call last):
File “/home/chancho/.local/share/krita/pykrita/kritapluginpiemenu/PieMenuExtension.py”, line 35, in createActions
self.settings = Settings(self.actionsList, self.qWin)
File “/home/chancho/.local/share/krita/pykrita/kritapluginpiemenu/Settings.py”, line 46, in init
self.settingsFormLayout.setAlignment(Qt.AlignLeft | Qt.AlignTop)
AttributeError: module ‘PyQt5.Qt’ has no attribute ‘AlignLeft’





. I should learn python as well. There’s little time
), but now I’m ready I think 