Python / C++ application D-Bus usage issues

Kip Warner kip at thevertigo.com
Fri Dec 14 19:04:24 PST 2012


On Tue, 2012-12-11 at 20:58 -0800, Thiago Macieira wrote:
> On terça-feira, 11 de dezembro de 2012 20.47.37, Kip Warner wrote:
> >                 # Initialize the remote proxy...
> >                 objectProxy = self._sessionBus.get_object(
> >                     DBUS_SERVICE_NAME, DBUS_OBJECT_PATH)
> >      
> [cut]
> >     The Python application prints the following on the console:
> >      
> >         ERROR:dbus.proxies:Introspect error
> > on :1.568:/com/myproject/MyObject: dbus.exceptions.DBusException:
> > org.freedesktop.DBus.Error.NoReply: Message did not receive a reply
> > (timeout by message bus)
> 
> That above is your mistake. You're trying to get from your C++ application the 
> description of an object that doesn't exist. In fact, your C++ application has 
> no concept of objects and will not reply to the request of information on them 
> (the Introspect call).
> 
> You do not need to get a proxy object. You simply need to send the signal.

I'm sorry, but I am very confused. Can you show me how this is suppose
to work? My C++ application and Python application only need to send
signals back and forth and do not need actual proxy objects. But the
code I have written uses APIs that all seem to require proxy objects or
interfaces.

How should what I showed you have suppose to have looked?

  <http://pastebin.com/EWyEe7BF>

> Indeed, you are doing it.
> 
> But I don't think you've even reached that point. Your application stopped 
> earlier.

I checked with a Python print statement right before the signal is
suppose to be fired off and it does reach that point.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20121214/d3c101c7/attachment.pgp>


More information about the dbus mailing list