I just installed the latest Krita and suddenly it has this pop-up. The software works fine btw, but I’m curious with this pop-up tho. What does this mean?
I’ll put the codes below.
AttributeError
Python 3.10.7: C:\Program Files\Krita (x64)\bin\krita.exe
Wed Oct 25 22:47:40 2023
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
C:\Program Files\Krita (x64)\lib\krita-python-libs\krita\dockwidgetfactory.py in createDockWidget(self=<krita.dockwidgetfactory.DockWidgetFactory object>)
14 super(DockWidgetFactory, self).__init__(_id, _dockPosition)
15 self.klass = _klass
16
17 def createDockWidget(self):
18 return self.klass()
self = <krita.dockwidgetfactory.DockWidgetFactory object>
self.klass = <class 'bulinotes.bulinotes.BuliNotesDocker'>
C:\Users\User\AppData\Roaming\krita\pykrita\bulinotes\bulinotes.py in __init__(self=<bulinotes.bulinotes.BuliNotesDocker object>)
92 self.setWindowTitle(PLUGIN_MENU_ENTRY)
93 if checkKritaVersion(*REQUIRED_KRITA_VERSION):
94 self.__ui=BNUiDocker(self, PLUGIN_MENU_ENTRY, EXTENSION_ID, PLUGIN_VERSION)
95 self.setWidget(self.__ui)
96 else:
self = <bulinotes.bulinotes.BuliNotesDocker object>
self.__ui undefined
global BNUiDocker = <class 'bulinotes.bn.bnuidocker.BNUiDocker'>
global PLUGIN_MENU_ENTRY = 'Buli Notes'
global EXTENSION_ID = 'pykrita_bulinotes'
global PLUGIN_VERSION = '0.4.0b'
C:\Users\User\AppData\Roaming\krita\pykrita\bulinotes\bn\bnuidocker.py in __init__(self=<bulinotes.bn.bnuidocker.BNUiDocker object>, docker=<bulinotes.bulinotes.BuliNotesDocker object>, bnName='Buli Notes', bnId='pykrita_bulinotes', bnVersion='0.4.0b', parent=None)
61
62 uiFileName = os.path.join(os.path.dirname(__file__), 'resources', 'bnuidocker.ui')
63 loadXmlUi(uiFileName, self)
64
65 self.__initialize()
global loadXmlUi = <function loadXmlUi>
uiFileName = r'C:\Users\User\AppData\Roaming\krita\pykrita\bulinotes\bn\resources\bnuidocker.ui'
self = <bulinotes.bn.bnuidocker.BNUiDocker object>
C:\Users\User\AppData\Roaming\krita\pykrita\bulinotes\pktk\modules\utils.py in loadXmlUi(fileName=r'C:\Users\User\AppData\Roaming\krita\pykrita\bulinotes\bn\resources\bnuidocker.ui', parent=<bulinotes.bn.bnuidocker.BNUiDocker object>)
198 # Parse XML file and retrieve all object for which an icon is set
199 tree = ET.parse(fileName)
200 for nodeParent in tree.getiterator():
201 for nodeChild in nodeParent:
202 if 'name' in nodeChild.attrib and nodeChild.attrib['name'] == 'icon':
nodeParent undefined
tree = <xml.etree.ElementTree.ElementTree object>
tree.getiterator undefined
AttributeError: 'ElementTree' object has no attribute 'getiterator'
__cause__ = None
__class__ = <class 'AttributeError'>
__context__ = None
__delattr__ = <method-wrapper '__delattr__' of AttributeError object>
__dict__ = {}
__dir__ = <built-in method __dir__ of AttributeError object>
__doc__ = 'Attribute not found.'
__eq__ = <method-wrapper '__eq__' of AttributeError object>
__format__ = <built-in method __format__ of AttributeError object>
__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__ = <built-in method __init_subclass__ of type object>
__le__ = <method-wrapper '__le__' of AttributeError object>
__lt__ = <method-wrapper '__lt__' of AttributeError object>
__ne__ = <method-wrapper '__ne__' of AttributeError object>
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of AttributeError object>
__reduce_ex__ = <built-in method __reduce_ex__ of AttributeError object>
__repr__ = <method-wrapper '__repr__' of AttributeError object>
__setattr__ = <method-wrapper '__setattr__' of AttributeError object>
__setstate__ = <built-in method __setstate__ of AttributeError object>
__sizeof__ = <built-in method __sizeof__ of AttributeError object>
__str__ = <method-wrapper '__str__' of AttributeError object>
__subclasshook__ = <built-in method __subclasshook__ of type object>
__suppress_context__ = False
__traceback__ = <traceback object>
args = ("'ElementTree' object has no attribute 'getiterator'",)
name = 'getiterator'
obj = <xml.etree.ElementTree.ElementTree object>
with_traceback = <built-in method with_traceback of AttributeError object>
The above is a description of an error in a Python program. Here is
the original traceback:
Traceback (most recent call last):
File "C:\Program Files\Krita (x64)\lib\krita-python-libs\krita\dockwidgetfactory.py", line 18, in createDockWidget
return self.klass()
File "C:\Users\User\AppData\Roaming\krita\pykrita\bulinotes\bulinotes.py", line 94, in __init__
self.__ui=BNUiDocker(self, PLUGIN_MENU_ENTRY, EXTENSION_ID, PLUGIN_VERSION)
File "C:\Users\User\AppData\Roaming\krita\pykrita\bulinotes\bn\bnuidocker.py", line 63, in __init__
loadXmlUi(uiFileName, self)
File "C:\Users\User\AppData\Roaming\krita\pykrita\bulinotes\pktk\modules\utils.py", line 200, in loadXmlUi
for nodeParent in tree.getiterator():
AttributeError: 'ElementTree' object has no attribute 'getiterator'
