QuantLib Python Bindings on OSX - Error after installation

Posted by ElMariachi on
URL: http://quantlib.414.s1.nabble.com/QuantLib-Python-Bindings-on-OSX-Error-after-installation-tp983.html

I just built and installed the QuantLib libraries and the Python SWIG bindings - here is the python console's output when trying import QuantLib:


>>> import QuantLib
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Frameworks/Python.framework/Versions/6.1/lib/python2.6/site-packages/QuantLib/__init__.py", line 19, in <module>
    from QuantLib import *
  File "/Library/Frameworks/Python.framework/Versions/6.1/lib/python2.6/site-packages/QuantLib/QuantLib.py", line 24, in <module>
    _QuantLib = swig_import_helper()
  File "/Library/Frameworks/Python.framework/Versions/6.1/lib/python2.6/site-packages/QuantLib/QuantLib.py", line 20, in swig_import_helper
    _mod = imp.load_module('_QuantLib', fp, pathname, description)
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/6.1/lib/python2.6/site-packages/QuantLib/_QuantLib.so, 2): Symbol not found: __ZN8QuantLib12SmileSection6updateEv
  Referenced from: /Library/Frameworks/Python.framework/Versions/6.1/lib/python2.6/site-packages/QuantLib/_QuantLib.so
  Expected in: flat namespace
 in /Library/Frameworks/Python.framework/Versions/6.1/lib/python2.6/site-packages/QuantLib/_QuantLib.so