Python bindings

Christoph Holtermann c.holtermann at gmx.de
Tue Feb 16 13:02:34 EST 2010


Hello !

I have tried to get the python bindings to work. They are very
unstable for me. When I execute

gnucash-env python

python starts fine. Then I try importing gnucash

>>> import gnucash

Here problems start as I sometimes get a Stack overflow
which kills python. I found no pattern. It just happens sometimes.
Most of the times actually. When importing gnucash worked there
are no further problems and everything works fine.

When instead of manually importing gnucash I import a module
which imports gnucash or if I start a program XXX by

gnucash-env python XXX.py

there is no chance to get things working. Just now I got the output :
* 18:56:25  WARN <gnc.backend.dbi> [qof_backend_module_init()]
GNC_DBD_DIR not set: using /usr/lib/dbd

then the execution finished. A second execution lead to:
* 18:58:01  WARN <gnc.backend.dbi> [qof_backend_module_init()]
GNC_DBD_DIR not set: using /usr/lib/dbd
ERROR: Stack overflow

A third:
* 18:58:25  WARN <gnc.backend.dbi> [qof_backend_module_init()]
GNC_DBD_DIR not set: using /usr/lib/dbd

The fourth was as the second and a fifth as the third.

So : Manually importing works sometimes and automatically importing does
never work.

Maybe you have some ideas about this weird behaviour.

best regards,

Christoph Holtermann


More information about the gnucash-devel mailing list