python binding error on macports
reubano
reubano at gmail.com
Sat Mar 3 07:13:13 EST 2012
gnucash-2.4.10 built from source with MacPorts 2.0.3 on MacOSX 10.7.2
$ gnucash-env python
> Python 2.7.1 (r271:86832, Jul 31 2011, 19:30:53)
> [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on
> darwin
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import gnucash.gnucash_core
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/opt/x11/lib/python2.7/site-packages/gnucash/__init__.py", line 6,
> in <module>
> from gnucash_core import *
> File "/opt/x11/lib/python2.7/site-packages/gnucash/gnucash_core.py",
> line 31, in <module>
> import gnucash_core_c
> File "/opt/x11/lib/python2.7/site-packages/gnucash/gnucash_core_c.py",
> line 25, in <module>
> _gnucash_core_c = swig_import_helper()
> File "/opt/x11/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:
> dlopen(/opt/x11/lib/python2.7/site-packages/gnucash/_gnucash_core_c.so,
> 2): Symbol not found: __cg_png_create_info_struct
> Referenced from:
> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
> Expected in: /opt/x11/lib/libpng14.14.dylib
> in
> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
>>>>
>
I overcame similar errors with:
/opt/x11/lib/libGIF.dylib
/opt/x11/lib/libJPEG.dylib
/opt/x11/lib/libTIFF.dylib
by symlinking to the corresponding dylib in /System/Library/Frameworks....
However, there is no libpng14.14.dylib in /System/Library/Frameworks.... so
I don't know what to do. Note: I received similar errors with these files
when building gnucash but those went away once I ran
export DYLD_FALLBACK_LIBRARY_PATH=/opt/x11/lib:
--
View this message in context: http://gnucash.1415818.n4.nabble.com/python-binding-error-on-macports-tp4441220p4441220.html
Sent from the GnuCash - Dev mailing list archive at Nabble.com.
More information about the gnucash-devel
mailing list