animator-video-reference icon indicating copy to clipboard operation
animator-video-reference copied to clipboard

TypeError: setValue(self ,int): arguement 1 has unexpected type 'float'

Open Ketsuiro opened this issue 2 years ago • 1 comments

I know very little about coding, so I do not know what this means but it is the error message I am presented with since updating to the 'krita-nightly-x64-5.2.0' build. The script used to work fine for me in the past. ┐(‘~`;)┌

TypeError
Python 3.10.7: C:\Program Files\Krita (x64)\bin\krita.exe
Wed Feb 15 23:46:07 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:\Users\user\AppData\Roaming\krita\pykrita\animationimporter\animationimporter.py in action_triggered(self=<animationimporter.animationimporter.Animationimporter object>)
  346 
  347 
  348 		self.dialog.fpsSpinbox.setValue(24.0)
  349 		self.dialog.fpsSpinbox.setSuffix(" FPS")
  350 
self = <animationimporter.animationimporter.Animationimporter object>
self.dialog = <PyQt5.QtWidgets.QDialog object>
self.dialog.fpsSpinbox = <PyQt5.QtWidgets.QSpinBox object>
self.dialog.fpsSpinbox.setValue = <built-in method setValue of QSpinBox object>
TypeError: setValue(self, int): 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 = ("setValue(self, int): argument 1 has unexpected type 'float'",)
    with_traceback = <built-in method with_traceback of TypeError object>

Ketsuiro avatar Feb 16 '23 04:02 Ketsuiro

Same, Linux running Krita 5.2.2 and Python 3.10.7

pick1 avatar Jul 19 '24 22:07 pick1