Problem with python bindings

Derek Atkins warlord at MIT.EDU
Mon Apr 13 10:54:25 EDT 2009

Hmm... If you do not enable to python bindings it should probably
still run swig "properly" but it definitely should not build any
of the code..  I'll go take a look at the build system.


Phil Longstaff <plongstaff at> writes:

> 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 
> gnucash_core.c.
> Phil
> 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
> _______________________________________________
> gnucash-devel mailing list
> gnucash-devel at

       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL:    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available

More information about the gnucash-devel mailing list