GNOME Bugzilla – Bug 594651
layer.scale() with Python 2.5 raises RuntimeError
Last modified: 2016-05-06 12:43:23 UTC
Also affects GIMP 2.6.7. Unknown if it also affects other OSs. Issue not existing when using Python 2.6.2. Steps to reproduce: 1) Open GIMP, and open at least one image. 2) Run the following in the GIMP Python Console: img = gimp.image_list()[0] img = gimp.image_list()[0] lay1.scale(10,10) Expected results: Image scaled to w = h = 10px Actual results: >>> lay1.scale(100,100) Traceback (most recent call last):
+ Trace 217454
---- Additional info: This also happens when called with one or zero args... >>> lay1.scale() Traceback (most recent call last):
>>> lay1.scale(100) Traceback (most recent call last):
When the expected would be: >>> lay1.scale() Traceback (most recent call last): File "<input>", line 1, in <module> TypeError: Required argument 'width' (pos 1) not found >>> lay1.scale(10) Traceback (most recent call last): File "<input>", line 1, in <module> TypeError: Required argument 'height' (pos 2) not found
It happens with Python 2.5.4 (the latest 2.5 release), too.
Sounds like a bug in Python, doesn't it? I don't see why this is reported here.
Nah, it's our fault: commit 2182dec09bee12db007b28f0797dc111ea6a1ec2 Author: Manish Singh <yosh@gimp.org> Date: Fri Sep 11 12:55:25 2009 -0700 Bug 594651 - layer.scale() raises RuntimeError Add "interpolation" to kwlist for pygimp layer.scale()
Landed on both master and gimp-2-6.