MyIpScreenlet ... TypeError: integer argument expected, got float

Bug #946459 reported by RC Lages on 2012-03-04
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Individual Screenlets

Bug Description

After installing the package "screenlets" and run the widget "MyIP" in terminal, the application shows error after these messages, when canceled with ctrl-c and listed in the log file generated /home/tuxmatrix/.config/screenlets/MyIpScreenlet.log:

tuxmatrix@USS-StarGazer:~$ screenlets
Starter already exists.
Launch MyIp
Logging output goes to: /home/tuxmatrix/.config/screenlets/MyIpScreenlet.log
REGISTER screenlet: MyIpScreenlet
Traceback (most recent call last):
  File "/usr/share/screenlets/screenlets-pack-basic/MyIp/", line 135, in <module>
  File "/usr/lib/pymodules/python2.7/screenlets/", line 480, in create_session
  File "/usr/lib/pymodules/python2.7/screenlets/", line 254, in start
    sl = self.screenlet(session=self, id=self.__get_next_id())
  File "/usr/share/screenlets/screenlets-pack-basic/MyIp/", line 56, in __init__
    self.theme_name = "default"
  File "/usr/share/screenlets/screenlets-pack-basic/MyIp/", line 72, in __setattr__
    screenlets.Screenlet.__setattr__(self, name, value)
  File "/usr/lib/pymodules/python2.7/screenlets/", line 1057, in __setattr__
  File "/usr/lib/pymodules/python2.7/screenlets/", line 1713, in update_shape
  File "/usr/share/screenlets/screenlets-pack-basic/MyIp/", line 131, in on_draw_shape
  File "/usr/share/screenlets/screenlets-pack-basic/MyIp/", line 113, in on_draw
    while self.get_text_line_count(ctx,text,self.text_font,size) > 1:
  File "/usr/lib/pymodules/python2.7/screenlets/", line 77, in get_text_line_count
    self.p_fdesc.set_size(size * pango.SCALE)
TypeError: integer argument expected, got float
^CTraceback (most recent call last):
  File "/usr/share/screenlets-manager/", line 1343, in <module>
  File "/usr/share/screenlets-manager/", line 1308, in start
tuxmatrix@USS-StarGazer:~$ cat /home/tuxmatrix/.config/screenlets/MyIpScreenlet.log
CachingBackend: Loading instances from cache
Found a running session of MyIp, adding new instance by service.
Error in org.freedesktop.DBus.Error.ServiceUnknown: The name org.screenlets.MyIp was not provided by any .service files
Screenlet has already been added to /tmp/screenlets/screenlets.tuxmatrix.running
Loading instances in: /home/tuxmatrix/.config/screenlets/MyIp/default/
No instance(s) found in session-path, creating new one.

Summary: No IP number is displayed on the desktop or in the icon bar of the Unity Ubuntu 11.10. Where is the mistake?

Related branches

RC Lages (rclages) wrote :
Märt Põder (boamaod) wrote :

Fix committed in screenlets core revision 781, hopefully fixed screenlets will be built at Screenlets Dev PPA in next 24h.

Changed in indiv-screenlets:
status: New → Fix Committed
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers