vrasneur/pyfasttext

pyfasttext ImportError on mac OS 10.14

Opened this issue · 3 comments

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?

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.

looks like this repo is dead..

@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.