indiv-screenlets-dev team mailing list archive
-
indiv-screenlets-dev team
-
Mailing list archive
-
Message #00265
[Bug 701199] Re: SlideshowScreenlet crash on TypeError: integer argument expected, got float
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
--
You received this bug notification because you are a member of
Individual Screenlets Developers, which is subscribed to Individual
Screenlets.
https://bugs.launchpad.net/bugs/701199
Title:
SlideshowScreenlet crash on TypeError: integer argument expected, got
float
Status in Screenlets — individual widgets development:
Fix Released
Bug description:
SlideshowScreenlet crash on startup.
Ubuntu natty
Screenlets version : 0.1.3~bzr592+20110109213652~natty1
Screenlets-pack-all: 0.0.1~bzr738+20110109231342~natty1
REGISTER screenlet: SlideshowScreenlet
True
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/screenlets/__init__.py", line 1934, in expose
self.on_draw(ctx)
File "/usr/share/screenlets/screenlets-pack-all/Slideshow/SlideshowScreenlet.py", line 779, in on_draw
scaled_image_y)
File "/usr/lib/pymodules/python2.7/screenlets/drawing.py", line 464, in draw_scaled_image
pixbuf = gtk.gdk.pixbuf_new_from_file(pix).scale_simple(w,h,gtk.gdk.INTERP_HYPER)
TypeError: integer argument expected, got float
To manage notifications about this bug go to:
https://bugs.launchpad.net/indiv-screenlets/+bug/701199/+subscriptions