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

pyfasttext import error #23

Closed
bananemure opened this issue Nov 1, 2017 · 3 comments
Closed

pyfasttext import error #23

bananemure opened this issue Nov 1, 2017 · 3 comments

Comments

@bananemure
Copy link

Hi I successfully installed pyfasttext in python 3.6 but at import I have this error:

ImportError Traceback (most recent call last)
in ()
----> 1 from pyfasttext import FastText

ImportError: /home/stephane.mbatchou/anaconda3/lib/python3.6/site-packages/pyfasttext.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZTINSt6thread6_StateE

Thanks

@vrasneur
Copy link
Owner

vrasneur commented Nov 1, 2017

Hi @bananemure,

I don't use Anaconda, but you can try the solution posted here:
https://github.com/salestock/fastText.py/issues/88#issuecomment-286429015

The command : conda install libgcc

Or maybe you can switch to another compiler using the CC environment variable?

@bananemure
Copy link
Author

Hi @vrasneur ,
I found that it wasn't working with python 3.6 but worked with python 3.5 ....
I also try to use libgcc and it worked fine in python 3.6
May be you should add this step in the documentation.
Thanks for your great contribution

@vrasneur
Copy link
Owner

vrasneur commented Nov 3, 2017

Okay, thanks!

I close the issue.

@vrasneur vrasneur closed this as completed Nov 3, 2017
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