python binding error on macports
John Ralls
jralls at ceridwen.us
Sat Mar 24 11:12:07 EDT 2012
On Mar 24, 2012, at 3:58 AM, reubano wrote:
>
> reubano wrote
>>
>> 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:
>>
>
> Anyone? I'd really like to try python on my mac.
It's a macports problem, not a Gnucash problem. Go bug them.
Regards,
John Ralls
More information about the gnucash-devel
mailing list