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

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

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
True
Starter already exists.
DAEMON FOUND!
True
Launch MyIp
Logging output goes to: /home/tuxmatrix/.config/screenlets/MyIpScreenlet.log
REGISTER screenlet: MyIpScreenlet
True
Traceback (most recent call last):
  File "/usr/share/screenlets/screenlets-pack-basic/MyIp/MyIpScreenlet.py", line 135, in <module>
    screenlets.session.create_session(MyIpScreenlet)
  File "/usr/lib/pymodules/python2.7/screenlets/session.py", line 480, in create_session
    session.start()
  File "/usr/lib/pymodules/python2.7/screenlets/session.py", line 254, in start
    sl = self.screenlet(session=self, id=self.__get_next_id())
  File "/usr/share/screenlets/screenlets-pack-basic/MyIp/MyIpScreenlet.py", line 56, in __init__
    self.theme_name = "default"
  File "/usr/share/screenlets/screenlets-pack-basic/MyIp/MyIpScreenlet.py", line 72, in __setattr__
    screenlets.Screenlet.__setattr__(self, name, value)
  File "/usr/lib/pymodules/python2.7/screenlets/__init__.py", line 1057, in __setattr__
    self.update_shape()
  File "/usr/lib/pymodules/python2.7/screenlets/__init__.py", line 1713, in update_shape
    self.on_draw_shape(ctx)
  File "/usr/share/screenlets/screenlets-pack-basic/MyIp/MyIpScreenlet.py", line 131, in on_draw_shape
    self.on_draw(ctx)
  File "/usr/share/screenlets/screenlets-pack-basic/MyIp/MyIpScreenlet.py", 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/drawing.py", 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/screenlets-manager.py", line 1343, in <module>
    app.start()
  File "/usr/share/screenlets-manager/screenlets-manager.py", line 1308, in start
    gtk.main()
KeyboardInterrupt
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 screenlets.services.get_service_by_name: 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.
tuxmatrix@USS-StarGazer:~$

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