Python bindings

Julien PUYDT julien.puydt at
Fri Dec 24 00:35:23 PST 2004

Le jeudi 23 décembre 2004 à 16:02 -0500, John (J5) Palmieri a écrit :
> > Pure dbus is possible... once you know how to get a 'uint32' (and when I
> > think this isn't even used!)...
> Just send in an integer.  Wouldn't remote_object.ActivateService
> ("", 0); work?  You could also extract the
> MessageIter from the Message and use it's append_int32 method but that
> is all encapsulated for you. Post your code and I can be of more help
> here.

>>> import dbus
>>> bus = dbus.SessionBus ()
>>> service = bus.get_service ('org.freedesktop.DBus')
>>> object = service.get_object ('/org/freedesktop/DBus',
>>> object.ActivateService ('org.gnomemeeting.instance', 0)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.3/site-packages/", line 208, in __call__
    reply_message = self._connection.send_with_reply_and_block(message,
  File "dbus_bindings.pyx", line 557, in
dbus_bindings.DBusException: Argument 1 is specified to be of type
"uint32", but is actually of type "int32"

Don't hesitate to ask stupid questions: as I'm a beginner, I may have
missed even something blindingly obvious! ;-)

Snark on #gnomemeeting

More information about the dbus mailing list