python bindings & py3k

Gour gour at
Thu Aug 23 06:12:21 EDT 2012

On Thu, 23 Aug 2012 11:14:38 +0200
Gour <gour at> wrote:

> Considering that GC's configure does not have something like:
> --with-python=/path/
> option, I wonder if you can suggest what would be the least intrusive
> way to pass path to python2 as default python to be used while
> building?

Huh...I passed PYTHON=/path-to-2.7 in a build's wrong function. :-(

Now I was able to build GC wiht python bindings against python-2.7, but
here is what I get:

gour at atmarama ~ $ python2
Python 2.7.3 (default, Apr 24 2012, 00:00:54) 
[GCC 4.7.0 20120414 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gnucash
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/gnucash/", line 6, in <module>
    from gnucash_core import *
  File "/usr/lib/python2.7/site-packages/gnucash/", line 31, in <module>
    import gnucash_core_c
  File "/usr/lib/python2.7/site-packages/gnucash/", line 25, in <module>
    _gnucash_core_c = swig_import_helper()
  File "/usr/lib/python2.7/site-packages/gnucash/", line 21, in swig_import_helper
    _mod = imp.load_module('_gnucash_core_c', fp, pathname, description)
ImportError: /usr/lib/python2.7/site-packages/gnucash/ undefined symbol: _Py_FalseStruct

Any hint?

> Sincerely,
> Gour

One who restrains the senses of action but whose mind dwells on 
sense objects certainly deludes himself and is called a pretender. | Hlapicina (Croatia) | GPG: 52B5C810
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <>

More information about the gnucash-devel mailing list