[MacPorts] #33896: gnucash python bindings import error
#33896: gnucash python bindings import error --------------------------------------------+------------------------------- Reporter: reubano@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: gnucash, python, libJPEG.dylib | Port: gnucash --------------------------------------------+------------------------------- gnucash-2.4.10 built from source with MacPorts 2.0.4 on MacOSX 10.7.2 I get the following error when trying to use gnucash python bindings {{{ gnucash-env ipython }}} {{{ Python 2.7.1 (r271:86832, Jul 31 2011, 19:30:53) Type "copyright", "credits" or "license" for more information. IPython 0.12 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object', use 'object??' for extra details. In [1]: import gnucash.gnucash_core --------------------------------------------------------------------------- ImportError Traceback (most recent call last) /Users/reubano/<ipython-input-1-d3675276f3f3> in <module>() ----> 1 import gnucash.gnucash_core /opt/x11/lib/python2.7/site-packages/gnucash/__init__.py in <module>() 4 # instead of 5 # >>> from gnucash.gnucash_core import thingy ----> 6 from gnucash_core import * 7 ## @file 8 # @brief helper file for the importing of gnucash /opt/x11/lib/python2.7/site-packages/gnucash/gnucash_core.py in <module>() 29 # @ingroup python_bindings 30 ---> 31 import gnucash_core_c 32 33 from function_class import \ /opt/x11/lib/python2.7/site-packages/gnucash/gnucash_core_c.py in <module>() 23 fp.close() 24 return _mod ---> 25 _gnucash_core_c = swig_import_helper() 26 del swig_import_helper 27 else: /opt/x11/lib/python2.7/site-packages/gnucash/gnucash_core_c.py in swig_import_helper() 19 if fp is not None: 20 try: ---> 21 _mod = imp.load_module('_gnucash_core_c', fp, pathname, description) 22 finally: 23 fp.close() ImportError: dlopen(/opt/x11/lib/python2.7/site- packages/gnucash/_gnucash_core_c.so, 2): Symbol not found: __cg_jpeg_resync_to_restart Referenced from: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO Expected in: /opt/x11/lib/libJPEG.dylib in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO }}} I received similar errors when building gnucash but those went away once I ran {{{ export DYLD_FALLBACK_LIBRARY_PATH=/opt/x11/lib: }}} The current error appears whether I have DYLD_FALLBACK_LIBRARY_PATH set or not. Additionally, I was able to work around this (and a similar error in libTIFF.dylib) by symlinking to the corresponding dylib in /System/Library/Frameworks.... However, I then reached the following {{{ In [1]: import gnucash.gnucash_core --------------------------------------------------------------------------- ImportError Traceback (most recent call last) /Users/reubano/<ipython-input-1-d3675276f3f3> in <module>() ----> 1 import gnucash.gnucash_core /opt/x11/lib/python2.7/site-packages/gnucash/__init__.py in <module>() 4 # instead of 5 # >>> from gnucash.gnucash_core import thingy ----> 6 from gnucash_core import * 7 ## @file 8 # @brief helper file for the importing of gnucash /opt/x11/lib/python2.7/site-packages/gnucash/gnucash_core.py in <module>() 29 # @ingroup python_bindings 30 ---> 31 import gnucash_core_c 32 33 from function_class import \ /opt/x11/lib/python2.7/site-packages/gnucash/gnucash_core_c.py in <module>() 23 fp.close() 24 return _mod ---> 25 _gnucash_core_c = swig_import_helper() 26 del swig_import_helper 27 else: /opt/x11/lib/python2.7/site-packages/gnucash/gnucash_core_c.py in swig_import_helper() 19 if fp is not None: 20 try: ---> 21 _mod = imp.load_module('_gnucash_core_c', fp, pathname, description) 22 finally: 23 fp.close() 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 }}} and there is no libpng14.14.dylib in /System/Library/Frameworks. I also rebuilt the libs using the +universal variants as well. -- Ticket URL: <https://trac.macports.org/ticket/33896> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33896: gnucash python bindings import error -------------------------------+-------------------------------------------- Reporter: reubano@… | Owner: dports@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: gnucash -------------------------------+-------------------------------------------- Changes (by macsforever2000@…): * keywords: gnucash, python, libJPEG.dylib => * owner: macports-tickets@… => dports@… -- Ticket URL: <https://trac.macports.org/ticket/33896#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33896: gnucash python bindings import error -------------------------------+-------------------------------------------- Reporter: reubano@… | Owner: dports@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: gnucash -------------------------------+-------------------------------------------- Comment(by dports@…): The gnucash port doesn't build python bindings; how did you install them? -- Ticket URL: <https://trac.macports.org/ticket/33896#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33896: gnucash: add support for building python bindings -------------------------------+-------------------------------------------- Reporter: reubano@… | Owner: dports@… Type: enhancement | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: gnucash -------------------------------+-------------------------------------------- Changes (by dports@…): * status: new => assigned * type: defect => enhancement -- Ticket URL: <https://trac.macports.org/ticket/33896#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33896: gnucash: add support for building python bindings --------------------------------+------------------------------------------- Reporter: reubano@… | Owner: dports@… Type: enhancement | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Resolution: fixed | Keywords: Port: gnucash | --------------------------------+------------------------------------------- Changes (by dports@…): * status: assigned => closed * resolution: => fixed Comment: Added +python27 variant in r95009 -- Ticket URL: <https://trac.macports.org/ticket/33896#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33896: gnucash: add support for building python bindings --------------------------------+------------------------------------------- Reporter: reubano@… | Owner: dports@… Type: enhancement | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Resolution: | Keywords: Port: gnucash | --------------------------------+------------------------------------------- Changes (by reubano@…): * status: closed => reopened * resolution: fixed => Comment: gnucash @2.4.10_2+dbi+hbci+ofx+python27 (active) {{{ reubano@tokpro [~]$ /opt/x11/bin/gnucash-env ipython Python 2.7.1 (r271:86832, Jul 31 2011, 19:30:53) Type "copyright", "credits" or "license" for more information. IPython 0.12 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object', use 'object??' for extra details. In [1]: import gnucash.gnucash_core --------------------------------------------------------------------------- ImportError Traceback (most recent call last) /Users/reubano/<ipython-input-1-d3675276f3f3> in <module>() ----> 1 import gnucash.gnucash_core /opt/x11/lib/python2.7/site-packages/gnucash/__init__.py in <module>() 4 # instead of 5 # >>> from gnucash.gnucash_core import thingy ----> 6 from gnucash_core import * 7 ## @file 8 # @brief helper file for the importing of gnucash /opt/x11/lib/python2.7/site-packages/gnucash/gnucash_core.py in <module>() 29 # @ingroup python_bindings 30 ---> 31 import gnucash_core_c 32 33 from function_class import \ /opt/x11/lib/python2.7/site-packages/gnucash/gnucash_core_c.py in <module>() 23 fp.close() 24 return _mod ---> 25 _gnucash_core_c = swig_import_helper() 26 del swig_import_helper 27 else: /opt/x11/lib/python2.7/site-packages/gnucash/gnucash_core_c.py in swig_import_helper() 19 if fp is not None: 20 try: ---> 21 _mod = imp.load_module('_gnucash_core_c', fp, pathname, description) 22 finally: 23 fp.close() ImportError: dlopen(/opt/x11/lib/python2.7/site- packages/gnucash/_gnucash_core_c.so, 2): Symbol not found: __cg_jpeg_resync_to_restart Referenced from: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO Expected in: /opt/x11/lib/libJPEG.dylib in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO }}} -- Ticket URL: <https://trac.macports.org/ticket/33896#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33896: gnucash: add support for building python bindings --------------------------------+------------------------------------------- Reporter: reubano@… | Owner: dports@… Type: enhancement | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Resolution: | Keywords: Port: gnucash | --------------------------------+------------------------------------------- Comment(by reubano@…): followed instructions from [http://wiki.gnucash.org/wiki/Python_Bindings] -- Ticket URL: <https://trac.macports.org/ticket/33896#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33896: gnucash: add support for building python bindings --------------------------------+------------------------------------------- Reporter: reubano@… | Owner: dports@… Type: enhancement | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Resolution: | Keywords: Port: gnucash | --------------------------------+------------------------------------------- Comment(by dports@…): Try it without the `gnucash-env`, just `ipython` -- Ticket URL: <https://trac.macports.org/ticket/33896#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33896: gnucash: add support for building python bindings --------------------------------+------------------------------------------- Reporter: reubano@… | Owner: dports@… Type: enhancement | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Resolution: | Keywords: Port: gnucash | --------------------------------+------------------------------------------- Comment(by reubano@…): Thanks, that works. Awesome! -- Ticket URL: <https://trac.macports.org/ticket/33896#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33896: gnucash: add support for building python bindings --------------------------------+------------------------------------------- Reporter: reubano@… | Owner: dports@… Type: enhancement | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Resolution: fixed | Keywords: Port: gnucash | --------------------------------+------------------------------------------- Changes (by dports@…): * status: reopened => closed * resolution: => fixed Comment: Cool, glad to hear it! -- Ticket URL: <https://trac.macports.org/ticket/33896#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33896: gnucash: add support for building python bindings --------------------------+---------------------- Reporter: reubano@… | Owner: dports@… Type: enhancement | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Resolution: fixed | Keywords: Port: gnucash | --------------------------+---------------------- Comment (by nb@…): Hello, The problem seem to have reappear. There's no variant python27 and python bindings are unavailable. So I reopen this bug. Here are somme informations: $ port variants gnucash-devel[[BR]] gnucash-devel has the variants: dbi: Adds dbi backend support [+]hbci: AqBanking/HBCI support[[BR]] [+]ofx: OFX support $ port variants gnucash[[BR]] gnucash has the variants: dbi: Adds dbi backend support [+]hbci: AqBanking/HBCI support[[BR]] [+]ofx: OFX support so python27 is neither in gnucash nor in gnucash devel. I'm very new to OsX, so I don't know what to do now. I would like to use the python code I wrote on my debian, I'm leaving for a MacBook. Thanks in advance Regards nb -- Ticket URL: <https://trac.macports.org/ticket/33896#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X
#33896: gnucash: add support for building python bindings --------------------------+---------------------- Reporter: reubano@… | Owner: dports@… Type: enhancement | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Resolution: | Keywords: Port: gnucash | --------------------------+---------------------- Changes (by nb@…): * status: closed => reopened * resolution: fixed => -- Ticket URL: <https://trac.macports.org/ticket/33896#comment:11> MacPorts <http://www.macports.org/> Ports system for OS X
#33896: gnucash: add support for building python bindings --------------------------+---------------------- Reporter: reubano@… | Owner: dports@… Type: enhancement | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Resolution: fixed | Keywords: Port: gnucash | --------------------------+---------------------- Changes (by ryandesign@…): * cc: nb@… (added) * status: reopened => closed * resolution: => fixed Comment: This ticket was resolved 2 years ago, but the variant was subsequently removed because it stopped working. See #43254 for the current status of this variant. -- Ticket URL: <https://trac.macports.org/ticket/33896#comment:12> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts