|
From: Matthew H. <mat...@gm...> - 2024-11-03 01:27:42
|
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
|