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 ImportError on mac OS 10.14 #46

Open
nazariyv opened this issue Nov 13, 2018 · 3 comments
Open

pyfasttext ImportError on mac OS 10.14 #46

nazariyv opened this issue Nov 13, 2018 · 3 comments

Comments

@nazariyv
Copy link

Hi,

This is quite frustrating now. I have spent numerous hours trying to fix the gcc issue when installing pyfasttext, when I noticed that it is a common error here. I fixed that. But now when I am trying to run my code I get the following error:

ImportError: dlopen(/anaconda3/envs/prometheus/lib/python3.6/site-packages/pyfasttext.cpython-36m-darwin.so, 2): Symbol not found: __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev Referenced from: /anaconda3/envs/prometheus/lib/python3.6/site-packages/pyfasttext.cpython-36m-darwin.so Expected in: flat namespace in /anaconda3/envs/prometheus/lib/python3.6/site-packages/pyfasttext.cpython-36m-darwin.so

and is caused by the first line here:

File "/anaconda3/envs/prometheus/lib/python3.6/site-packages/whatthelang/predict_lang.py", line 1, in <module> from pyfasttext import FastText

any ideas what the problem is here?

@nazariyv
Copy link
Author

What version of fasttext are you using guys? can it be upped to at least 0.8.2? This problem seems to have been fixed there.

@nazariyv
Copy link
Author

looks like this repo is dead..

@whiletruelearn
Copy link

@nazariyv can you create a new conda env and try to install cython first and then install pyfasttext. Also can you print the gcc version you are using.

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