As discussed I’ll post the bug I encountered here.
From what I gathered from the scripting error it says it has something to do with a brush, to be clear I wasn’t using that brush at the time so to me it’s strange that the error would mention it.
Reproduction of the issue was easy, I only needed to attempt to edit the note I had written (screenshots below).
OS: windows 10
Krita version: 5.0 beta 1
Script error text:
KeyError
Python 3.8.1: C:\Program Files\Krita (x64)\bin\krita.exe
Mon Oct 4 21:52:41 2021
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:\Users\arjen\AppData\Roaming\krita\pykrita\bulinotes\bn\bnuidocker.py in __editNote(self=<bulinotes.bn.bnuidocker.BNUiDocker object>, index=False)
105 selectedItem=self.tvNotes.selectedItems()
106 if not selectedItem[0].locked():
107 BNNoteEditor.edit(selectedItem[0])
108 else:
109 if selectedItem[0].windowPostIt():
global BNNoteEditor = <class ‘bulinotes.bn.bnnotes.BNNoteEditor’>
BNNoteEditor.edit =
selectedItem = [<BNNote({2ab2878b-44da-4237-9641-f130c2b066cb}, testing note, False, False, False)>]
C:\Users\arjen\AppData\Roaming\krita\pykrita\bulinotes\bn\bnnotes.py in edit(note=<BNNote({2ab2878b-44da-4237-9641-f130c2b066cb}, testing note, False, False, False)>)
1019 def edit(note):
1020 “”“Open a dialog box to edit note”“”
1021 dlgBox = BNNoteEditor(note)
1022
1023 returned = dlgBox.exec()
dlgBox undefined
global BNNoteEditor = <class ‘bulinotes.bn.bnnotes.BNNoteEditor’>
note = <BNNote({2ab2878b-44da-4237-9641-f130c2b066cb}, testing note, False, False, False)>
C:\Users\arjen\AppData\Roaming\krita\pykrita\bulinotes\bn\bnnotes.py in init(self=<bulinotes.bn.bnnotes.BNNoteEditor object>, note=<BNNote({2ab2878b-44da-4237-9641-f130c2b066cb}, testing note, False, False, False)>, name=‘Buli Notes’, parent=None)
1067 self.__saveViewConfig()
1068 self.__buildUi()
1069 self.__initViewConfig()
1070
1071 def __buildUi(self):
self = <bulinotes.bn.bnnotes.BNNoteEditor object>
self.__initViewConfig undefined
C:\Users\arjen\AppData\Roaming\krita\pykrita\bulinotes\bn\bnnotes.py in __initViewConfig(self=<bulinotes.bn.bnnotes.BNNoteEditor object>)
1220 def __initViewConfig(self):
1221 “”“Initialise view for Scratchpad”“”
1222 self.__actionSelectBrush.presetChooser().setCurrentPreset(self.__allBrushesPreset[self.__note.scratchpadBrushName()])
1223 self.__activeView.setCurrentBrushPreset(self.__allBrushesPreset[self.__note.scratchpadBrushName()])
1224 self.__activeView.setForeGroundColor(ManagedColor.fromQColor(self.__note.scratchpadBrushColor(), self.__activeView.canvas()))
self = <bulinotes.bn.bnnotes.BNNoteEditor object>
self.__actionSelectBrush undefined
self.__allBrushesPreset undefined
self.__note undefined
KeyError: ‘b) Basic-5 Size’
cause = None
class = <class ‘KeyError’>
context = None
delattr = <method-wrapper ‘delattr’ of KeyError object>
dict = {}
dir =
doc = ‘Mapping key not found.’
eq = <method-wrapper ‘eq’ of KeyError object>
format =
ge = <method-wrapper ‘ge’ of KeyError object>
getattribute = <method-wrapper ‘getattribute’ of KeyError object>
gt = <method-wrapper ‘gt’ of KeyError object>
hash = <method-wrapper ‘hash’ of KeyError object>
init = <method-wrapper ‘init’ of KeyError object>
init_subclass =
le = <method-wrapper ‘le’ of KeyError object>
lt = <method-wrapper ‘lt’ of KeyError object>
ne = <method-wrapper ‘ne’ of KeyError object>
new =
reduce =
reduce_ex =
repr = <method-wrapper ‘repr’ of KeyError object>
setattr = <method-wrapper ‘setattr’ of KeyError object>
setstate =
sizeof =
str = <method-wrapper ‘str’ of KeyError object>
subclasshook =
suppress_context = False
traceback =
args = (‘b) Basic-5 Size’,)
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 “C:\Users\arjen\AppData\Roaming\krita\pykrita\bulinotes\bn\bnuidocker.py”, line 107, in __editNote
BNNoteEditor.edit(selectedItem[0])
File “C:\Users\arjen\AppData\Roaming\krita\pykrita\bulinotes\bn\bnnotes.py”, line 1021, in edit
dlgBox = BNNoteEditor(note)
File “C:\Users\arjen\AppData\Roaming\krita\pykrita\bulinotes\bn\bnnotes.py”, line 1069, in init
self.__initViewConfig()
File “C:\Users\arjen\AppData\Roaming\krita\pykrita\bulinotes\bn\bnnotes.py”, line 1222, in __initViewConfig
self.__actionSelectBrush.presetChooser().setCurrentPreset(self.__allBrushesPreset[self.__note.scratchpadBrushName()])
KeyError: ‘b) Basic-5 Size’