Installing Python Bindings

Christoph Holtermann c.holtermann at gmx.de
Thu Sep 16 06:44:23 EDT 2010


 Hi !

I have read your Odyssee in installing. It´s a pity that it didn´t work.
With OpenSUSE and after some while trying everything workes
fine for me now. Scripting capabilities for gnucash are very use-
ful for me, even though they are not stable yet, not well documented,
difficult to install ;-)
I use the svn branch, my updatescript for svn looks like this :

localdir=/usr/local/src/gnucash/gnucash_svn
svn up http://svn.gnucash.org/repo/gnucash/trunk $localdir
cd $localdir
make clean
./autogen.sh
./configure --enable-ofx --enable-aqbanking --enable-python-bindings --enable-dbi --enable-compile-warnings --enable-debug --prefix=/usr
make
sudo make install

The problems with finding the needed dependencies arise often
when trying to compile something new. It´s a bit tedious but after
some work it´s usually possible to work that out. I don´t know about
your specific problems here unfortunately.

About the scripting :
It´s possible to access your data while gnucash is not running, so
it´s not possilbe to run scripts out of gnucash or in parallel. Until
now everything I tried to do with my scripts was possible, even
though not every possibility is implemented for python bindings yet.
But I didn´t cross that border yet.

These were just some thoughts. Good luck, if you want to try some
further.

Bye,

Christoph Holtermann

Am 16.09.2010 06:43, schrieb ...:
>>> gnucash: error while loading shared libraries: libgnc-qof.so.1: cannot
>>> open
>>> shared object file: No such file or directory
>> This would seem to imply a missing library.  maybe a remnant from an older
>> build?  try:
>>
>> sudo make uninstall
>>
>> Also make sure you don't have a gnucash package installed through apt.
>>
>>
> Thanks.  I uninstalled and deleted and moved the build directory outside of
> sudo only write zone.  I freshly cloned the repo and again ran
>
> ./autogen.sh
> ./configure --enable-python-bindings
>
> Somehow i didn't make it through configure this time.   I got
> ====
> checking for guile - 1.6.7 <= version < 99.99.99... yes: 1.6.8
> checking for guile - 1.8.0 <= version < 99.99.99... no: 1.6.8
> checking for SLIB support... configure: error:
>
>    Cannot find SLIB.  Are you sure you have it installed?
>    See http://bugzilla.gnome.org/show_bug.cgi?id=347922
>    and http://bugzilla.gnome.org/show_bug.cgi?id=483631
> ====
>
> With apt-get I tried removing guile-1.6, guile1.6 dev and slib packages and
> then reinstalling them.  no fix.  I installed guile1.8 and guile1.8dev.  no
> fix
>
> The advise contained within those links is so widely varied and esoteric
> that I could not tell if there was actually a way to solve this if for some
> reason guile and slib aren't by default cooperating.
>
> I tried comment 20: https://bugzilla.gnome.org/show_bug.cgi?id=347922#c20
>
> elbiot at elbitop:/usr/share$ sudo guile -c "(use modules (ice-9 slib))
> (require 'new-catalog)"
> ERROR: Unbound variable: use
> elbiot at elbitop:/usr/share$ sudo guile -c "(use modules (ice-9 slib))
> (require 'printf)"
> ERROR: Unbound variable: usenk this is the end
>
> I think this is the end of the line for me unless there is a simple,
> straightforward fix. gnu cash will be excellent once it has working
> scripting capability.  But until that day comes I guess I'll look into
> another program that has working scripting.
> _______________________________________________
> gnucash-devel mailing list
> gnucash-devel at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel



More information about the gnucash-devel mailing list