SlideshowScreenlet crash on TypeError: integer argument expected, got float
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Individual Screenlets |
Fix Released
|
Medium
|
Unassigned |
Bug Description
SlideshowScreenlet crash on startup.
Ubuntu natty
Screenlets version : 0.1.3~bzr592+
Screenlets-
REGISTER screenlet: SlideshowScreenlet
True
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/share/
scaled_image_y)
File "/usr/lib/
pixbuf = gtk.gdk.
TypeError: integer argument expected, got float
Changed in indiv-screenlets: | |
status: | New → Fix Committed |
Changed in indiv-screenlets: | |
importance: | Undecided → Medium |
Changed in indiv-screenlets: | |
status: | Fix Committed → Fix Released |
Probably down to a change in Python 2.7. Up until 2.6, if you passed a float to a function that was defined as taking an int, the float would automatically be converted, though possibly with a DeprecationWarnng. In 2.7 (and Python 3000) it's now a TypeError. So, you have to put in an explicit conversion to int wherever this occurs.
There are quite a lot of packages affected by this!
Dave