|
From: Luigi B. <lui...@gm...> - 2020-08-13 11:06:16
|
I don't think there is. You'll probably have to remove the *build/bdist.macosx-10.15-x86_64/egg/ *directory. To be sure you're not missing anything, you might also run "pip uninstall QuantLib-Python" first, then look for anything related to QuantLib in /usr/local/lib and its Python subdirectories. Once you clean them (but be careful to only clean stuff with "quantlib" in its name), you can run "pip install" again. Luigi On Thu, Aug 13, 2020 at 12:00 PM Christofer Bogaso < bog...@gm...> wrote: > Thanks Luigi. But, how can I clean that? Is there any specific syntax? > > On Thu, Aug 13, 2020 at 3:19 PM Luigi Ballabio <lui...@gm...> > wrote: > >> 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 >>> >> |