|
From: Christofer B. <bog...@gm...> - 2020-08-13 09:32:47
|
Hi, I wanted to run QuantLib from my Python workplace, however failed to import the library with below error - *>>> import QuantLibTraceback (most recent call last): File "<stdin>", line 1, in <module> File "build/bdist.macosx-10.15-x86_64/egg/QuantLib/__init__.py", line 24, in <module> File "build/bdist.macosx-10.15-x86_64/egg/QuantLib/QuantLib.py", line 13, in <module> File "build/bdist.macosx-10.15-x86_64/egg/QuantLib/_QuantLib.py", line 7, in <module> File "build/bdist.macosx-10.15-x86_64/egg/QuantLib/_QuantLib.py", line 6, in __bootstrap__ImportError: dlopen(/Users/aa/Library/Caches/Python-Eggs/QuantLib_Python-1.16.1-py2.7-macosx-10.15-x86_64.egg-tmp/QuantLib/_QuantLib.so, 2): Symbol not found: __ZN8QuantLib10IborCouponC1ERKNS_4DateEdS3_S3_jRKN5boost10shared_ptrINS_9IborIndexEEEddS3_S3_RKNS_10DayCounterEb Referenced from: /Users/aa/Library/Caches/Python-Eggs/QuantLib_Python-1.16.1-py2.7-macosx-10.15-x86_64.egg-tmp/QuantLib/_QuantLib.so Expected in: /usr/local/lib/libQuantLib.0.dylib in /Users/aa/Library/Caches/Python-Eggs/QuantLib_Python-1.16.1-py2.7-macosx-10.15-x86_64.egg-tmp/QuantLib/_QuantLib.so* I used the syntax *pip install QuantLib-Python* when I installed QuantLib, the installation appears to be successful. Any help will be highly appreciated. Thanks, |