|
From: Luigi B. <lui...@gm...> - 2024-11-04 10:38:26
|
Hi Matthew,
I assume you've changed something in the library so you can't just use
`pip install QuantLib`, correct?
May you post the exact commands you're using to build the library and
Python module? Thanks!
Luigi
On Sun, Nov 3, 2024 at 2:30 AM Matthew Hancock <mat...@gm...>
wrote:
> Hi QuantLib team,
>
> I am running into an issue building QuantLib-SWIG-1.36 on a Mac M1 running
> Mac OS 10.14. I am using an Anaconda version of Python 3.8.
>
> I can build QuantLib-1.36 with no issue (I added the --disabled-shared
> flag).
>
> However, when I build QuantLib-SWIG-1.36 and try to import the Python
> library, I get an import error:
>
> >>> import QuantLib
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File
> "/Users/matthew/opt/anaconda3/lib/python3.8/site-packages/QuantLib-1.36-py3.8-macosx-10.9-x86_64.egg/QuantLib/__init__.py",
> line 19, in <module>
> from .QuantLib import *
> File
> "/Users/matthew/opt/anaconda3/lib/python3.8/site-packages/QuantLib-1.36-py3.8-macosx-10.9-x86_64.egg/QuantLib/QuantLib.py",
> line 10, in <module>
> from . import _QuantLib
> ImportError:
> dlopen(/Users/matthew/opt/anaconda3/lib/python3.8/site-packages/QuantLib-1.36-py3.8-macosx-10.9-x86_64.egg/QuantLib/_
> QuantLib.abi3.so, 0x0002): symbol not found in flat namespace
> '__ZN8QuantLib12SmileSection6updateEv'
>
> Any help would be much appreciated, thanks!
>
> Best
> Matthew
>
> _______________________________________________
> QuantLib-users mailing list
> Qua...@li...
> https://lists.sourceforge.net/lists/listinfo/quantlib-users
>
|