This error appears but does not appear to be causing any trouble.
TypeError
Python 3.10.7: /usr/bin/python3
Mon Jul 15 21:27:36 2024
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/mugwah/.local/share/krita/pykrita/hclsliders/hclsliders.py in canvasChanged(self=<hclsliders.hclsliders.HCLSliders object>, canvas=<PyKrita.krita.Canvas object>)
1681 self.trc = self.profileTRC(self.document.colorProfile())
1682 self.color.resetColors()
1683 self.syntax.setText(“”)
1684 self.getKritaColors()
1685
self = <hclsliders.hclsliders.HCLSliders object>
self.getKritaColors = <bound method HCLSliders.getKritaColors of <hclsliders.hclsliders.HCLSliders object>>
/home/mugwah/.local/share/krita/pykrita/hclsliders/hclsliders.py in getKritaColors(self=<hclsliders.hclsliders.HCLSliders object>)
1174 rgb = tuple(foreground.componentsOrdered()[:3])
1175 trc = self.profileTRC(foreground.colorProfile())
1176 self.updateSyntax(rgb, trc)
1177 if trc != self.trc:
1178 rgb = Convert.rgbToTRC(rgb, self.trc)
self = <hclsliders.hclsliders.HCLSliders object>
self.updateSyntax = <bound method HCLSliders.updateSyntax of <hclsliders.hclsliders.HCLSliders object>>
rgb = (0.0, 1.0)
trc = ‘sRGB’
/home/mugwah/.local/share/krita/pykrita/hclsliders/hclsliders.py in updateSyntax(self=<hclsliders.hclsliders.HCLSliders object>, rgb=(0.0, 1.0), trc=‘sRGB’)
1603 def updateSyntax(self, rgb: tuple, trc: str):
1604 if self.notation == NOTATION[0]:
1605 self.text = Convert.rgbFToHexS(*rgb, trc)
1606 elif self.notation == NOTATION[1]:
1607 self.text = Convert.rgbFToOklabS(*rgb, trc)
self = <hclsliders.hclsliders.HCLSliders object>
self.text = ‘’
global Convert = <class ‘hclsliders.colorconversion.Convert’>
Convert.rgbFToHexS =
rgb = (0.0, 1.0)
trc = ‘sRGB’
TypeError: Convert.rgbFToHexS() missing 1 required positional argument: ‘trc’
cause = None
class = <class ‘TypeError’>
context = None
delattr = <method-wrapper ‘delattr’ of TypeError object>
dict = {}
dir =
doc = ‘Inappropriate argument type.’
eq = <method-wrapper ‘eq’ of TypeError object>
format =
ge = <method-wrapper ‘ge’ of TypeError object>
getattribute = <method-wrapper ‘getattribute’ of TypeError object>
gt = <method-wrapper ‘gt’ of TypeError object>
hash = <method-wrapper ‘hash’ of TypeError object>
init = <method-wrapper ‘init’ of TypeError object>
init_subclass =
le = <method-wrapper ‘le’ of TypeError object>
lt = <method-wrapper ‘lt’ of TypeError object>
ne = <method-wrapper ‘ne’ of TypeError object>
new =
reduce =
reduce_ex =
repr = <method-wrapper ‘repr’ of TypeError object>
setattr = <method-wrapper ‘setattr’ of TypeError object>
setstate =
sizeof =
str = <method-wrapper ‘str’ of TypeError object>
subclasshook =
suppress_context = False
traceback =
args = (“Convert.rgbFToHexS() missing 1 required positional argument: ‘trc’”,)
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/mugwah/.local/share/krita/pykrita/hclsliders/hclsliders.py”, line 1684, in canvasChanged
self.getKritaColors()
File “/home/mugwah/.local/share/krita/pykrita/hclsliders/hclsliders.py”, line 1176, in getKritaColors
self.updateSyntax(rgb, trc)
File “/home/mugwah/.local/share/krita/pykrita/hclsliders/hclsliders.py”, line 1605, in updateSyntax
self.text = Convert.rgbFToHexS(*rgb, trc)
TypeError: Convert.rgbFToHexS() missing 1 required positional argument: ‘trc’
=======================================
mugwah@mugwah-Ryzen:~/Desktop$ inxi
CPU: 8-core AMD Ryzen 7 3700X (-MT MCP-) speed/min/max: 2474/2200/3600 MHz
Kernel: 5.15.0-112-generic x86_64 Up: 11h 9m Mem: 4033.2/15918.9 MiB (25.3%)
Storage: 3.13 TiB (16.2% used) Procs: 376 Shell: Bash inxi: 3.3.13