You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
In the new beta of Krita (5.2beta1, appimage), the plugin display a message of error at loading (at the same time of the splash screen). The message looks like this:
And the inner part of the dialog I can copy/paste is:
TypeError
Python 3.10.7: /usr/bin/python3
Sat Aug 5 16:41:54 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.
/tmp/.mount_krita-GwEhQQ/usr/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 'reference.reference.ReferenceDocker'>
/home/deevad/.local/share/krita/pykrita/reference/reference.py in __init__(self=<reference.reference.ReferenceDocker object>)
173 fileName = Application.readSetting('referenceDocker', 'lastref', None)
174 if fileName is not None:
175 self.viewer.setImage(QImage(fileName))
176
177 def centerView(self):
self = <reference.reference.ReferenceDocker object>
self.viewer = <reference.reference.ReferenceViewer object>
self.viewer.setImage = <bound method ReferenceViewer.setImage of <reference.reference.ReferenceViewer object>>
global QImage = <class 'PyQt5.QtGui.QImage'>
fileName = '/home/deevad/references/palettes/00_palette-PC_ep38.png'
/home/deevad/.local/share/krita/pykrita/reference/reference.py in setImage(self=<reference.reference.ReferenceViewer object>, image=<PyQt5.QtGui.QImage object>)
55 def setImage(self, image=QImage()):
56 self.image = image
57 self.resetView()
58
59 def resetView(self):
self = <reference.reference.ReferenceViewer object>
self.resetView = <bound method ReferenceViewer.resetView of <reference.reference.ReferenceViewer object>>
/home/deevad/.local/share/krita/pykrita/reference/reference.py in resetView(self=<reference.reference.ReferenceViewer object>)
64 self.size().height() / self.image.size().height())
65 overflow = self.size() - (self.image.size() * self.zoom)
66 self.origin = QPoint(overflow.width() / 2, overflow.height() / 2)
67 self.update()
68
self = <reference.reference.ReferenceViewer object>
self.origin = PyQt5.QtCore.QPoint()
global QPoint = <class 'PyQt5.QtCore.QPoint'>
overflow = PyQt5.QtCore.QSize(407, 0)
overflow.width = <built-in method width of QSize object>
overflow.height = <built-in method height of QSize object>
TypeError: arguments did not match any overloaded call:
QPoint(): too many arguments
QPoint(int, int): argument 1 has unexpected type 'float'
QPoint(QPoint): argument 1 has unexpected type 'float'
__cause__ = None
__class__ = <class 'TypeError'>
__context__ = None
__delattr__ = <method-wrapper '__delattr__' of TypeError object>
__dict__ = {}
__dir__ = <built-in method __dir__ of TypeError object>
__doc__ = 'Inappropriate argument type.'
__eq__ = <method-wrapper '__eq__' of TypeError object>
__format__ = <built-in method __format__ of TypeError object>
__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__ = <built-in method __init_subclass__ of type object>
__le__ = <method-wrapper '__le__' of TypeError object>
__lt__ = <method-wrapper '__lt__' of TypeError object>
__ne__ = <method-wrapper '__ne__' of TypeError object>
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of TypeError object>
__reduce_ex__ = <built-in method __reduce_ex__ of TypeError object>
__repr__ = <method-wrapper '__repr__' of TypeError object>
__setattr__ = <method-wrapper '__setattr__' of TypeError object>
__setstate__ = <built-in method __setstate__ of TypeError object>
__sizeof__ = <built-in method __sizeof__ of TypeError object>
__str__ = <method-wrapper '__str__' of TypeError object>
__subclasshook__ = <built-in method __subclasshook__ of type object>
__suppress_context__ = False
__traceback__ = <traceback object>
args = ("arguments did not match any overloaded call:\n Q...t(QPoint): argument 1 has unexpected type 'float'",)
with_traceback = <built-in method with_traceback of TypeError object>
The above is a description of an error in a Python program. Here is
the original traceback:
Traceback (most recent call last):
File "/tmp/.mount_krita-GwEhQQ/usr/lib/krita-python-libs/krita/dockwidgetfactory.py", line 18, in createDockWidget
return self.klass()
File "/home/deevad/.local/share/krita/pykrita/reference/reference.py", line 175, in __init__
self.viewer.setImage(QImage(fileName))
File "/home/deevad/.local/share/krita/pykrita/reference/reference.py", line 57, in setImage
self.resetView()
File "/home/deevad/.local/share/krita/pykrita/reference/reference.py", line 66, in resetView
self.origin = QPoint(overflow.width() / 2, overflow.height() / 2)
TypeError: arguments did not match any overloaded call:
QPoint(): too many arguments
QPoint(int, int): argument 1 has unexpected type 'float'
QPoint(QPoint): argument 1 has unexpected type 'float'
The text was updated successfully, but these errors were encountered:
Hi,
In the new beta of Krita (5.2beta1, appimage), the plugin display a message of error at loading (at the same time of the splash screen). The message looks like this:
And the inner part of the dialog I can copy/paste is:
The text was updated successfully, but these errors were encountered: