View Single Post
Saturn's Avatar
Posts: 1,648 | Thanked: 2,122 times | Joined on Mar 2007 @ UNKLE's Never Never Land
#358
Hi,

hope it's useful..

Code:
Nokia-N800-23-14:/usr/lib/hildon-desktop# python test.py
Traceback (most recent call last):
  File "test.py", line 14, in <module>
    cProfile.run('main()', 'main_prof')
  File "/usr/lib/python2.5/cProfile.py", line 29, in run
  File "/usr/lib/python2.5/cProfile.py", line 135, in run
  File "/usr/lib/python2.5/cProfile.py", line 140, in runctx
  File "<string>", line 1, in <module>
  File "test.py", line 6, in main
    p = advanced_power()
  File "ap/advanced_power.py", line 148, in __init__
  File "ap/advanced_power.py", line 319, in load_theme
  File "ap/advanced_power.py", line 358, in set_custom_icon_theme
  File "ap/advanced_power.py", line 362, in update_button_state
  File "ap/advanced_power.py", line 306, in redraw_button
UnboundLocalError: local variable 'new_button' referenced before assignment
Nokia-N800-23-14:/usr/lib/hildon-desktop#
EDIT::

rerun it and now got a longer message:

Code:
Nokia-N800-23-14:/usr/lib/hildon-desktop# python test.py
/usr/lib/hildon-desktop/advanced_power.py:1020: GtkWarning: Attempting to add a widget with type GtkImage to a container of type GtkAlignment, but the widget is already inside a container of type GtkAlignment, the GTK+ FAQ at http://www.gtk.org/faq/ explains how to reparent a widget.
Traceback (most recent call last):
  File "test.py", line 14, in <module>
    cProfile.run('main()', 'main_prof')
  File "/usr/lib/python2.5/cProfile.py", line 29, in run
  File "/usr/lib/python2.5/cProfile.py", line 135, in run
  File "/usr/lib/python2.5/cProfile.py", line 140, in runctx
  File "<string>", line 1, in <module>
  File "test.py", line 6, in main
    p = advanced_power()
  File "ap/advanced_power.py", line 151, in __init__
  File "ap/advanced_power.py", line 658, in create_menu
  File "ap/advanced_power.py", line 588, in _add_upd_item
  File "ap/advanced_power.py", line 469, in get_os_version
  File "/usr/lib/python2.5/site-packages/dbus/proxies.py", line 140, in __call__
    **keywords)
  File "/usr/lib/python2.5/site-packages/dbus/connection.py", line 607, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.TypeError: Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/dbus/service.py", line 739, in _message_cb
    _method_reply_return(connection, message, method_name, signature, *retval)
  File "/usr/lib/python2.5/site-packages/dbus/service.py", line 252, in _method_reply_return
    reply.append(signature=signature, *retval)
TypeError: Don't know how which D-Bus type to use to encode type "NoneType"

Nokia-N800-23-14:/usr/lib/hildon-desktop#

Last edited by Saturn; 2009-10-21 at 21:09. Reason: added more info
 

The Following User Says Thank You to Saturn For This Useful Post: