AW: Re: [Debia/LXDE] Sephora 0.2-1

Michele Renda michele.renda at gmail.com
Tue Mar 10 16:34:48 CET 2009


On 10/03/2009 15:49, ueli.peter at bluewin.ch wrote:
> Hi
> I wrote an mail direct to you and this has been solved with newest version of sephora (0.2.2-1). Thanks again!
> Main usage for me is activating GPRS, this works perfect!!
> There are two new (minor) problems:
>
> Clicking USB:
>
> Traceback (most recent call last):
>    File "/usr/lib/python2.5/site-packages/sephora.py", line 158, in<lambda>
>      toggle.connect('clicked', lambda button, name: self.activate_page(name), name)
>    File "/usr/lib/python2.5/site-packages/sephora.py", line 180, in activate_page
>      tabs_widgets[name] = self.create_page(name)
>    File "/usr/lib/python2.5/site-packages/sephora.py", line 196, in create_page
>      section = self.build_page(name)
>    File "/usr/lib/python2.5/site-packages/sephora.py", line 685, in build_page
>      select.set_active(self.device.get_power_control().get_usb_host().get_power());
>    File "/var/lib/python-support/python2.5/dbus/proxies.py", line 140, in __call__
>      **keywords)
>    File "/var/lib/python-support/python2.5/dbus/connection.py", line 622, in call_blocking
>      message, timeout)
> dbus.exceptions.DBusException: org.freedesktop.DBus.Python.ValueError: Traceback (most recent call last):
>    File "/var/lib/python-support/python2.5/dbus/service.py", line 702, in _message_cb
>      retval = candidate_method(self, *args, **keywords)
>    File "/var/lib/python-support/python2.5/framework/subsystems/odeviced/powercontrol.py", line 74, in GetPower
>      return self.getPower()
>    File "/var/lib/python-support/python2.5/framework/subsystems/odeviced/powercontrol.py", line 49, in getPower
>      return int( readFromFile( self.powernode ) )
> ValueError: invalid literal for int() with base 10: 'N/A'
>    
I have something similar:
mdbus -s org.freesmartphone.odeviced 
/org/freesmartphone/Device/PowerControl/UsbHost GetPower

What it show out?
To me it give:
/org/freesmartphone/Device/PowerControl/UsbHost: GetPower failed: 
org.freedesktop.DBus.Python.ValueError

May be it is the same problem?


>
> and Clicking Power
>
> Traceback (most recent call last):
>    File "/usr/lib/python2.5/site-packages/sephora.py", line 158, in<lambda>
>      toggle.connect('clicked', lambda button, name: self.activate_page(name), name)
>    File "/usr/lib/python2.5/site-packages/sephora.py", line 180, in activate_page
>      tabs_widgets[name] = self.create_page(name)
>    File "/usr/lib/python2.5/site-packages/sephora.py", line 196, in create_page
>      section = self.build_page(name)
>    File "/usr/lib/python2.5/site-packages/sephora.py", line 996, in build_page
>      label_source.set_text(_(self.device.get_power_supply().get_bat().get_power_status()))
> AttributeError: 'Base' object has no attribute 'get_bat'
>
>
>    

Ops... I think the latest modification on fso-framework removed the 
method GetBat.
I will upgrade Sephora.

Thank you for your report, it was very very useful!




More information about the community mailing list