|
From: Luigi B. <lui...@gm...> - 2020-08-13 09:49:19
|
Hello,
from the fact the traceback starts from "
*build/bdist.macosx-10.15-x86_64/egg/"* and the fact it refers to
*/usr/local/lib/libQuantLib.0.dylib,* it looks to me like it's importing a
version you tried to compile rather than the one you installed with pip.
If that's the case, I'd try cleaning that one up.
Hope this helps,
Luigi
On Thu, Aug 13, 2020 at 11:35 AM Christofer Bogaso <
bog...@gm...> wrote:
> 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,
> _______________________________________________
> QuantLib-users mailing list
> Qua...@li...
> https://lists.sourceforge.net/lists/listinfo/quantlib-users
>
|