Problem with python bindings

Phil Longstaff plongstaff at
Sun Apr 12 17:03:37 EDT 2009

Without "--enable-python-bindings", SWIG_PYTHON_OPTS in src/optional/python-
bindings/Makefile is the null string.  In this case, the swig command creating 
gnucash_core.c from gnucash_core.i seems to create tcl bindings.  In my case, 
I hadn't enabled the python bindings, but "make check" still required 


On April 6, 2009 03:02:02 pm Christian Stimming wrote:
> Am Montag, 6. April 2009 14:31 schrieb Phil Longstaff:
> > I'm running into a compilation problem with the python bindings.
> >
> > gnucash_core.c is looking for tcl.h using the line "#include <tcl.h>". 
> > On my distro (kubuntu 9.04 beta), the tcl8.4-dev package puts tcl.h into
> > /usr/include/tcl8.4/tcl.h.  I don't see that the python-bindings Makefile
> > system allows for alternative paths to that file.
> I don't know why your gnucash_core.c requests <tcl.h> - mine does not.
> Also, your other problem with <datetime.h> is running fine here, because it
> includes the correct path to the include/python2.5 directory (I'm using
> python 2.5 over here).
> Sounds to me your SWIG might not fully or correctly support your installed
> python version?
> Regards,
> Christian

More information about the gnucash-devel mailing list