After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 641259 - [abrt] gimp-2:2.6.11-1.fc14: py-slice.py:172:slice:TypeError: integer argument expected, got float
[abrt] gimp-2:2.6.11-1.fc14: py-slice.py:172:slice:TypeError: integer argumen...
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Plugins
2.6.11
Other Linux
: Normal normal
: ---
Assigned To: Nils Philippsen
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2011-02-02 16:09 UTC by Nils Philippsen
Modified: 2011-02-02 17:11 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Nils Philippsen 2011-02-02 16:09:39 UTC
Originally from Fedora, this is the downstream bugzilla ticket:
https://bugzilla.redhat.com/show_bug.cgi?id=667958

--- 8< ---
abrt version: 1.1.14
architecture: x86_64
cmdline: /usr/bin/python /usr/lib64/gimp/2.0/plug-ins/py-slice.py -gimp 16 14
-run 0
component: gimp
executable: /usr/lib64/gimp/2.0/plug-ins/py-slice.py
kernel: 2.6.35.10-74.fc14.x86_64
package: gimp-2:2.6.11-1.fc14
reason: py-slice.py:172:slice:TypeError: integer argument expected, got float
release: Fedora release 14 (Laughlin)
time: 1294403616
uid: 500

backtrace
-----
py-slice.py:172:slice:TypeError: integer argument expected, got float

Traceback (most recent call last):
  • File "/usr/lib64/gimp/2.0/python/gimpfu.py", line 692 in response
    dialog.res = run_script(params)
  • File "/usr/lib64/gimp/2.0/python/gimpfu.py", line 353 in run_script
    return apply(function, params)
  • File "/usr/lib64/gimp/2.0/plug-ins/py-slice.py", line 117 in pyslice
    left, right, top, bottom, i, j, ""))
  • File "/usr/lib64/gimp/2.0/plug-ins/py-slice.py", line 172 in slice
    temp_image.crop(right - left, bottom - top, left, top)
TypeError: integer argument expected, got float

Local variables in innermost frame:
src: 'slice_1_0.jpg'
right: 1000
image_path: '/home/james/Desktop/images'
bottom: 28
postfix: ''
top: 28.0
j: 0
temp_drawable: <gimp.Layer 'Background'>
filename: '/home/james/Desktop/images/slice_1_0.jpg'
i: 1
image_basename: 'slice'
image: <gimp.Image 'latam_quebarato_filhotes2.jpg'>
drawable: None
temp_image: <gimp.Image 'Untitled'>
image_extension: 'jpg'
left: 0

[...]

Package: gimp-2:2.6.11-1.fc14
Architecture: x86_64
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
1.i tried to slice any image
2.
3.


Comment
-----
used gimp, tried to slice an image, got a message error and no sliced image

[...]
Comment 1 Nils Philippsen 2011-02-02 17:11:49 UTC
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.