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

Problem installing #19

Closed
alxbar opened this issue Oct 28, 2016 · 4 comments
Closed

Problem installing #19

alxbar opened this issue Oct 28, 2016 · 4 comments

Comments

@alxbar
Copy link

alxbar commented Oct 28, 2016

when I try to install via pip install -e git+git://github.com/spacy-io/sense2vec.git#egg=sense2vec
or via pip install sense2vec, I get following error message

>>> import sense2vec
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/alex/anaconda2/lib/python2.7/site-packages/sense2vec/__init__.py", line 2, in <module>
    from .vectors import VectorMap
ImportError: /home/alex/anaconda2/lib/python2.7/site-packages/sense2vec/vectors.so: undefined symbol: _ZTINSt8ios_base7failureB5cxx11E

I am using ubuntu 16.04 and python 2.7 with anaconda 4.2.9. (installed requirements-all.txt)
the problem did not occur on a mac sierra 10.12.1

@TiesdeKok
Copy link

I actually get a similar error but when trying to use SpaCy:

ImportError: /home/ties/anaconda3/lib/python3.5/site-packages/spacy/tokenizer.cpython-35m-x86_64-linux-gnu.so: undefined symbol: _ZTINSt8ios_base7failureB5cxx11E

I am also using ubuntu 16.04 but with Python 3.5 (Anaconda).

Have you figured out how to solve it?

@TiesdeKok
Copy link

After a bit of Googling I found the answer, it has to do with the version of libgcc in the Anaconda environment.

The error is solved after running conda install libgcc in the anaconda environment.

@alxbar
Copy link
Author

alxbar commented Dec 7, 2016

For me it just suddenly started working, I think I eventually have installed libgcc.

Yes I tried it also on my other PC (same setup same problem) and conda install libgcc solved the issue, thanks :).

@alxbar alxbar closed this as completed Dec 7, 2016
@atremblay
Copy link

atremblay commented Feb 21, 2017

I have the same problem even with libgcc. Created a new env with conda

conda create -n spacy python=3.5 ipython

and then install spacy (1.6.0) with pip (conda still has version 0.101.0)

pip install spacy

But I still get this error.

In [1]: import spacy
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-c080f6458562> in <module>()
----> 1 import spacy

/home/alexis/anaconda3/envs/spacy/lib/python3.5/site-packages/spacy/__init__.py in <module>()
      4 from .about import __version__
      5
----> 6 from . import en
      7 from . import de
      8 from . import zh

/home/alexis/anaconda3/envs/spacy/lib/python3.5/site-packages/spacy/en/__init__.py in <module>()
      6 from ..util import match_best_version
      7 from ..util import get_data_path
----> 8 from ..language import Language
      9 from ..lemmatizer import Lemmatizer
     10 from ..vocab import Vocab

/home/alexis/anaconda3/envs/spacy/lib/python3.5/site-packages/spacy/language.py in <module>()
     15
     16
---> 17 from .tokenizer import Tokenizer
     18 from .vocab import Vocab
     19 from .tagger import Tagger

ImportError: /home/alexis/anaconda3/envs/spacy/lib/python3.5/site-packages/spacy/tokenizer.cpython-35m-x86_64-linux-gnu.so: undefined symbol: _ZTINSt8ios_base7failureB5cxx11E

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

3 participants