[sugar] odd dbus sugar error

John J5 Palmieri johnp
Tue Aug 15 23:30:08 EDT 2006


This could be a D-Bus Python issue.  I changed the way we execute
methods some time ago.  I'll take a look but it should be a simple patch
to the ProxyObject or ProxyMethod classes.

On Wed, 2006-08-16 at 01:08 +0200, Marco Pesenti Gritti wrote:
> Marco Pesenti Gritti wrote:
> > Dan Williams wrote:
> >> Marco,
> >>
> >> I'm not seeing this after a rawhide update when clicking the 'Share'
> >> button for a web activity:
> >>
> >> Traceback (most recent call last):
> >>   File 
> >> "/home/dcbw/Development/olpc/sugar-jhbuild/build/lib/python2.4/site-packages/sugar/logger.py", 
> >> line 55, in _log
> >>     self._messages, timeout = 1000)
> >> TypeError: log() got an unexpected keyword argument 'timeout'
> >>
> >> Relevant code snippet is this:
> >>
> >>         self._console.log(self._console_id, self._levels,
> >>                           self._messages, timeout = 1000)
> >>
> >> In this case, log() is a D-Bus method.  'timeout' should be a supported
> >> keyword for the dbus python bindings.  However, it doesn't seem to be
> >> getting picked up as a keyword argument through all the dbus python
> >> binding __getattr__ magic.  I'll try to investigate more, wondering if
> >> you had any ideas right away.
> >>
> >>   
> >
> > I checked in a fix. For the shell process we are actually using the 
> > console object itself rather than the dbus service, so we can't pass 
> > the timeout arg for that case.
> 
> There is actually still a dbus error... it doesn't stop things to work 
> though.
> 
> Strange one... It looks like after I start an activity (and the activity 
> send some messages to the console), the first message the presence 
> service try to send to the console cause this traceback:
> 
> Traceback (most recent call last):
>   File "/home/marco/sugar-jhbuild/source/sugar/sugar/logger.py", line 
> 58, in _log
>     self._messages, timeout = 1000)
>   File "/usr/lib/python2.4/site-packages/dbus/proxies.py", line 102, in 
> __call__
>     reply_message = self._connection.send_with_reply_and_block(message, 
> timeout)
>   File "dbus_bindings.pyx", line 455, in 
> dbus_bindings.Connection.send_with_reply_and_block
> DBusException: Did not receive a reply. Possible causes include: the 
> remote application did not send a reply, the message bus security policy 
> blocked the reply, the reply timeout expired, or the network connection 
> was broken.
> 
> The method has been successfully invoked though, apparently. Also the 
> subsequent invocations works fine.
> 
> Not sure what is going on, needs more investigation.
> 
> Marco
> _______________________________________________
> Sugar mailing list
> Sugar at laptop.org
> http://mailman.laptop.org/mailman/listinfo/sugar
-- 
John (J5) Palmieri <johnp at redhat.com>



More information about the Sugar-devel mailing list