pysurvival icon indicating copy to clipboard operation
pysurvival copied to clipboard

Error message : ImportError: dlopen, ... Symbol not found...

Open azephyrr opened this issue 4 years ago • 2 comments

Hi, When I try to copy the code and run it from the tutorial page https://square.github.io/pysurvival/tutorials/credit_risk.html , the pysurvival package is successfully installed. But when I run this code:

from pysurvival.utils.display import correlation_matrix

it shows the error message as follow:

ImportError: dlopen(/Users/ju/opt/anaconda3/lib/python3.7/site-packages/pysurvival/models/_non_parametric.cpython-37m-darwin.so, 2): Symbol not found: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4 Referenced from: /Users/ju/opt/anaconda3/lib/python3.7/site-packages/pysurvival/models/_non_parametric.cpython-37m-darwin.so Expected in: /usr/lib/libstdc++.6.dylib in /Users/ju/opt/anaconda3/lib/python3.7/site-packages/pysurvival/models/_non_parametric.cpython-37m-darwin.so

After that, I have uninstalled and reinstalled pysurvival several times from either Spider/Anaconda or command line, it was still failed.

My laptop is MacBook Pro (13-inch, 2019, Two Thunderbolt 3 ports), version 10.15.7 (19H2) IDE: Spyder

How can I solve it? Thank you!

azephyrr avatar Nov 27 '20 17:11 azephyrr

running into the same problem.

My Mac is Mac OS Catalina 10.15.7

lianyi avatar Dec 22 '20 00:12 lianyi

Update: My problem was fixed by creating a new conda env with python=3.8.5, hope that helps.

lianyi avatar Dec 22 '20 00:12 lianyi