Python Bindings
Gary Cramblitt
garycramblitt at comcast.net
Wed Aug 2 16:10:51 PDT 2006
Hello,
Trying to build and install the dbus python bindings from latest git.
python setup.py build
matched dbus_h_wrapper.h
output In file included from /usr/include/dbus-1.0/dbus/dbus-address.h:30,
from /usr/include/dbus-1.0/dbus/dbus.h:34,
from dbus/dbus_h_wrapper.h:2,
from <stdin>:1:
/usr/include/dbus-1.0/dbus/dbus-types.h:30:20: error: stddef.h: No such file
or directory
I was able to work around this by modifying these two lines in setup.py
includedirs_flag = ['-I.']
dbus_includes = ['.']
to
includedirs_flag = ['-I. -I/usr/lib/gcc-lib/i486-linux-gnu/3.3.6/include']
dbus_includes = ['.', '/usr/lib/gcc-lib/i486-linux-gnu/3.3.6/include']
but I'd rather know how to properly fix this.
python setup.py install
mostly worked except for this:
byte-compiling /usr/lib/python2.3/site-packages/dbus/service.py to service.pyc
File "/usr/lib/python2.3/site-packages/dbus/service.py", line 351
@method('org.freedesktop.DBus.Introspectable', in_signature='',
out_signature='s')
^
SyntaxError: invalid syntax
The caret is pointing to the "@" on my screen but email is wrapping it.
kde4 /home/share/src/dbus-python$ python -V
Python 2.3.5
kde4 /home/share/src/dbus-python$ pyrexc --version
Pyrex version 0.9.4.1
Any help with these problems appreciated. Thanks.
--
Gary Cramblitt (aka PhantomsDad)
More information about the dbus
mailing list