Trying introspect with python bindings

Tako Schotanus quintesse at
Sun Mar 13 11:51:06 PST 2005

Using the latest CVS version I changed the 
(which might be renamed to to try to let it return 
the introspection data for the DBus object but without any luck. This is 
what the (extra) code looks like:

   dbus_info = dbus_service.get_object('/org/freedesktop/DBus', 
   introspect = dbus_info.Introspect()
   print str(introspect)

and this is what it returns:

   Traceback (most recent call last):
     File "", line 25, in ?
       introspect = dbus_info.Introspect()
     File "/home/tako/projects/dbus/dbus/python/", line 235, in 
       reply_message = 
self._connection.send_with_reply_and_block(message, 5000)
     File "/home/tako/projects/dbus/dbus/python/dbus_bindings.pyx", line 
524, in dbus_bindings.Connection.send_with_reply_and_block
       raise DBusException, error.message
   dbus_bindings.DBusException: org.freedesktop.DBus does not understand 
message Introspect

it does not give an error in the first line asking the object for its 
interface so I assume DBus implements it (it should, shouldn't it? ;-)).

Does anybody have any idea why this doesn't work?


More information about the dbus mailing list