Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't import the library #28

Closed
JiayunLi opened this issue Feb 23, 2017 · 5 comments
Closed

Can't import the library #28

JiayunLi opened this issue Feb 23, 2017 · 5 comments

Comments

@JiayunLi
Copy link

Hi,

I am trying to install this library with pip install. The library seemed to be successfully installed. My cython is v 0.24.1. But when I tried to import pydensecrf.densecrf, I got .../pydensecrf/densecrf.so: undefined symbol: _ZTINSt8ios_base7failureB5cxx11E error.

I would really appreciate if anyone could help me with this?

@lucasb-eyer
Copy link
Owner

At first, this seems to be a problem with your system to me. ios_base::failure is part of the standard c++ library, and it not finding the symbol hints to a linking problem.
Maybe you have multiple compiler/linker versions or libstdc++ versions installed and are mixing them up somehow? You can use ldd densecrf.so to see what exact files are being linked and found at runtime.
I'm afraid there's not much more I can help unless I can reproduce the error myself.

@JiayunLi
Copy link
Author

Thanks! I am able to solve the problem by installing libgcc in the anaconda virtual environment.

@lucasb-eyer
Copy link
Owner

Awesome! If you would be so kind to give me the exact command you used to fix this, I could include it in the README and it might help others getting the same error.

@JiayunLi
Copy link
Author

Cool! I Google for similar problem, and found this one explosion/sense2vec#19 The solution they mentioned solved my problem.
To install libgcc, I used conda install libgcc

@lucasb-eyer
Copy link
Owner

Thank you! I'll close this issue then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants