Re: 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-tp983p985.html

I built the latest version from the TRUNK using the standard:

./configure
make build
sudo make install

Then with the SWIG libraries, same idea

build swig wrapper
python setup.py install

Luigi Ballabio wrote
On Sun, 2010-09-19 at 18:01 -0700, ElMariachi wrote:
> I just built and installed the QuantLib libraries and the Python SWIG
> bindings - here is the python console's output when trying import QuantLib:

What version did you build, and how?

Luigi


>
>
> >>> 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
>


--

Olmstead's Law:
After all is said and done, a hell of a lot more is said
than done.



------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
QuantLib-users mailing list
QuantLib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/quantlib-users