Python / C++ application D-Bus usage issues
Thiago Macieira
thiago at kde.org
Tue Dec 11 20:58:21 PST 2012
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.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Software Architect - Intel Open Source Technology Center
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20121211/4d3a5e59/attachment.pgp>
More information about the dbus
mailing list