aboSamoor / polyglot

Multilingual text (NLP) processing toolkit
http://polyglot-nlp.com
Other
2.31k stars 337 forks source link

Can't run polyglot with conda python 3.4/3.5 environment #97

Open bakarov opened 7 years ago

bakarov commented 7 years ago

I have an issue like this one: #78. Yes, I've already downgraded conda environment from 3.5 to 3.4, and I still have the same error. Installation of pycld2 didn't helped.

anaconda3/lib/python3.4/site-packages/_icu.cpython-34m.so: undefined symbol: _ZTIN6icu_5514LEFontInstanceE

This error appears on import polyglot.text, but import polyglot works for me.

Also, import polyglot.text polyglot for Python 2.7 without conda doesn't raise the error, but I can't even download the polyglot embeddings because of the same error.

bakarov commented 7 years ago

As I've turned out, after uninstalling conda polyglot works fine, so it's definitely a conflict with conda. Is there a way to fix it without uninstalling conda?

IbrahimGashaw commented 7 years ago

I have the same problem. I have tried by uninstalling conda but it is not working import polyglot.text /home/ibro/anaconda3/bin/python /home/ibro/anaconda3/lib/python3.5/site-packages/polyglot/tokenize/base.py Traceback (most recent call last): File "/home/ibro/anaconda3/lib/python3.5/site-packages/polyglot/tokenize/base.py", line 6, in from icu import Locale, BreakIterator File "/home/ibro/anaconda3/lib/python3.5/site-packages/icu.py", line 37, in from docs import File "/home/ibro/anaconda3/lib/python3.5/site-packages/docs.py", line 23, in from _icu import ImportError: /home/ibro/anaconda3/lib/python3.5/site-packages/_icu.cpython-35m-x86_64-linux-gnu.so: undefined symbol: _ZTIN6icu_5514LEFontInstanceE

mvadood commented 7 years ago

I've got the exact same problem too..

alissonmsales commented 7 years ago

Same here too!

marzenakrp commented 7 years ago

Same here, any ways of getting polygot work with conda?

jamesdj commented 7 years ago

Same here. Seems like a couple of other issues are duplicates.

alexgarel commented 7 years ago

I would advise opening a ticket on the conda project, as they are the one packaging polyglot, it's their responsibility.