[Twisted-Python] ANN: Twisted DBus 1.0

Tobias Oberstein tobias.oberstein at tavendo.de
Tue Jul 3 06:27:24 EDT 2012

> For anyone interested in taking a look, I've just released a native-Python
> implementation of the DBus protocol for Twisted. The intent of the
> implementation is to provide Twisted applications with a full-featured DBus API
> that is consistent with the rest of the framework and does not require the use
> of the glib reactor or libdbus Python bindings.

Cool! Also great work on the examples, tutorial and protocol overview!

I'm having problems with the desktop notification example though .. any hints?

oberstet at ubuntu10bld_klon0:~/scm/twisted_dbus/doc/tutorial_examples$ ~/python273/bin/python -V
Python 2.7.3
oberstet at ubuntu10bld_klon0:~/scm/twisted_dbus/doc/tutorial_examples$ uname -a
Linux ubuntu10bld_klon0 2.6.32-41-generic #91-Ubuntu SMP Wed Jun 13 11:44:43 UTC 2012 i686 GNU/Linux
oberstet at ubuntu10bld_klon0:~/scm/twisted_dbus/doc/tutorial_examples$ ~/python273/bin/python desktop_noficiation
Unhandled Error
Traceback (most recent call last):
  File "/home/oberstet/python273/lib/python2.7/site-packages/twisted/python/log.py", line 84, in callWithLogger
    return callWithContext({"system": lp}, func, *args, **kw)
  File "/home/oberstet/python273/lib/python2.7/site-packages/twisted/python/log.py", line 69, in callWithContext
    return context.call({ILogContext: newCtx}, func, *args, **kw)
  File "/home/oberstet/python273/lib/python2.7/site-packages/twisted/python/context.py", line 118, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/home/oberstet/python273/lib/python2.7/site-packages/twisted/python/context.py", line 81, in callWithContext
    return func(*args,**kw)
--- <exception caught here> ---
  File "/home/oberstet/python273/lib/python2.7/site-packages/twisted/internet/posixbase.py", line 614, in _doReadOrWrite
    why = selectable.doRead()
  File "/home/oberstet/python273/lib/python2.7/site-packages/twisted/internet/unix.py", line 169, in doRead
    fd = struct.unpack('i', ancillary[0][2])[0]
struct.error: unpack requires a string argument of length 4

This is on Twisted 12.1

More information about the Twisted-Python mailing list