Installing Python Bindings
...
offonoffoffonoff at gmail.com
Sun Sep 12 14:33:26 EDT 2010
(oops, hit the wrong reply button)
>> Looks like there is still activity with python bindings. I wasn't sure
>> because the website (http://parit.ca/projects/pythongnucash/) hasn't been
>> updates since 2008, and install instructions refer to gnucash 2.0.4 (I am
>> running gnucash 2.2.6)
>That's because it's been integrated into the gnucash sources.
[snip]
>There is no gnucash/Group.h anymore -- probably using older bindings?
I was thinking something like this would be the case. I am probably
trying to install the bindings from 2008. Is there a stable release,
or at least a more uptodate one? If find that source, it will
probably have more uptodate install instructions with it (for
instance, installing glib-dev was not mentioned in the directions I
have).
It would be very good to update
(http://parit.ca/projects/pythongnucash/) because it came up first in
google for several search attempts, and other search results mostly link
to it. If I hadn't decided to try to use
code that was probably abandoned, I would not have known this project
is still alive.
>You're probably better off pulling down 2.3.x and building from there.
I have other another project that relies on python 2.6, If necessary,
I guess I'll have to figure out how to have two different versions
installed.
thanks
On 9/10/10, Derek Atkins <warlord at mit.edu> wrote:
> Hi,
>
> "..." <offonoffoffonoff at gmail.com> writes:
>
>> Looks like there is still activity with python bindings. I wasn't sure
>> because the website (http://parit.ca/projects/pythongnucash/) hasn't been
>> updates since 2008, and install instructions refer to gnucash 2.0.4 (I am
>> running gnucash 2.2.6)
>
> That's because it's been integrated into the gnucash sources.
>
> [snip]
>> I moved all the files from gnucash-2.2.6/src/
>>
>> but what was that part about manually populating gnucash_c_headers? I
>> still
>> get this error:
>> $ python setup.py build
>> running build
>> running build_ext
>> building 'gnucash._gnucash_c_interface' extension
>> swigging gnucash/_gnucash_c_interface.i to
>> gnucash/_gnucash_c_interface_wrap.c
>> swig -python -Ignucash_c_headers -Ignucash_src_c_headers
>> -Ignucash_src_c_headers/engine -I/usr/include/glib-2.0
>> -I/usr/lib/glib-2.0/include -I/usr/include -I/usr/include/gnucash/ -o
>> gnucash/_gnucash_c_interface_wrap.c gnucash/_gnucash_c_interface.i
>> gnucash/glib.i:66: Error: Unable to find 'glib/glist.h'
>
> This looks like you don't have the glib dev package installed?
>
>> gnucash/_gnucash_c_interface.i:258: Error: Unable to find
>> 'gnucash/Group.h'
>
> There is no gnucash/Group.h anymore -- probably using older bindings?
>
>> /usr/include/gnucash/qofutil.h:54: Error: CPP #error ""No scanf format
>> string is known for LLD. Fix your ./configure so that the correct one is
>> detected!"". Use the -cpperraswarn option to continue swig processing.
>> error: command 'swig' failed with exit status 1
>
> This gets set from the gnucash configure script.
>
>> Where are these files supposed to be from? and I put them into a
>> directory
>> I create right next to /gnncash_src_c_headers?
>>
>> I am running Ubuntu 9.04
>> SWIG is most recent version in package manager
>> python is 2.6.2
>>
>> looking forward to playing with this.
>
> You're probably better off pulling down 2.3.x and building from there.
>
>> Elliot
>
> -derek
>
> --
> Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
> Member, MIT Student Information Processing Board (SIPB)
> URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
> warlord at MIT.EDU PGP key available
>
More information about the gnucash-devel
mailing list