problem with python binding?
John (J5) Palmieri
johnp at redhat.com
Tue May 25 07:24:28 PDT 2004
On Mon, 2004-05-24 at 10:11, Toby Smith wrote:
> On Mon, 2004-05-24 at 23:36, John (J5) Palmieri wrote:
> > What version of Pyrex are you using? Also can you give me the lines
> > surrounding line 412 in your
> >
/var/tmp/portage/dbus-cvs-0.21.99/work/dbus-cvs/python/dbus_bindings.pyx
> > file. That file is generated at compile time.
> >
>
> version 0.8.2
Please upgrade to the latest Pyrex and try again. I believe it is
0.9.2.1 though I use 0.9. I should add that as a requirement in the
configure.in. Ask the gentoo devs to upgrade the portage tree if you
don't want to install by hand.
>
> if (address != None or _conn != None):
> self.__cinit__(c_address, c_conn)
>
> # hack to be able to pass in a c pointer to the constructor
> # while still alowing python programs to create a Connection
object
> --> cdef __cinit__(self, address, DBusConnection *_conn):
> cdef DBusError error
> dbus_error_init(&error)
> if _conn != NULL:
> self.conn = _conn
> dbus_connection_ref(self.conn)
>
> Toby
>
>
>
--
John (J5) Palmieri
Associate Software Engineer
Desktop Group
Red Hat, Inc.
Blog: http://martianrock.com
More information about the dbus
mailing list