On Thu, 23 Aug 2012 11:14:38 +0200
Gour <[email protected]> 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@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/__init__.py", line 6, in 
<module>
    from gnucash_core import *
  File "/usr/lib/python2.7/site-packages/gnucash/gnucash_core.py", line 31, in 
<module>
    import gnucash_core_c
  File "/usr/lib/python2.7/site-packages/gnucash/gnucash_core_c.py", line 25, 
in <module>
    _gnucash_core_c = swig_import_helper()
  File "/usr/lib/python2.7/site-packages/gnucash/gnucash_core_c.py", line 21, 
in swig_import_helper
    _mod = imp.load_module('_gnucash_core_c', fp, pathname, description)
ImportError: /usr/lib/python2.7/site-packages/gnucash/_gnucash_core_c.so: 
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.

http://www.atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810

Attachment: signature.asc
Description: PGP signature

_______________________________________________
gnucash-devel mailing list
[email protected]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Reply via email to