gabrielStanovsky / unified-factuality

Code, data and models for the paper "Integrating Deep Linguistic Features in Factuality Prediction over Unified Datasets" (Stanovsky, Eckle-Kohler, Puzikov, Dagan and Gurevych ACL 2017)
MIT License
7 stars 0 forks source link

ImportError when running ./src/scripts/install_annotator.sh #3

Closed ypuzikov closed 7 years ago

ypuzikov commented 7 years ago

I tried running ./scripts/install_annotator.sh both with and without "sudo -E" and it did not work -- in both cases I get this:

ImportError: /home/puzikov@ukp.informatik.tu-darmstadt.de/opt/anaconda2/envs/env_experimental/lib/python2.7/site-packages/spacy/vocab.so: undefined symbol: _ZTINSt8ios_base7failureB5cxx11E

However, with "sudo -E" before I get the undefined symbol message I get the following ImportError:

~/tmp/unified-factuality/src/props-master ~/tmp/unified-factuality/src Traceback (most recent call last): File "setup.py", line 1, in from setuptools import setup, find_packages ImportError: No module named setuptools

The following helped, but should also be mentioned somewhere in README:

sudo apt-get install python-setuptools sudo easy_install pip

OS: x86_64 Ubuntu 16.04.1 LTS (xenial) Kernel: 4.4.0-75-generic

gabrielStanovsky commented 7 years ago

@ypuzikov You're right, setuptools and easy_install are needed. Since they're fairly widespread, I think I'll add these to a prerequisites section, and not install them automatically. Does that sounds reasonable?

What's the status after installing them? Did you encounter other errors?

ypuzikov commented 7 years ago

Does that sounds reasonable?

Totally!

What's the status after installing them? Did you encounter other errors?

Yes, I still get the first ImportError message:

ImportError: /home/puzikov@ukp.informatik.tu-darmstadt.de/opt/anaconda2/envs/env_experimental/lib/python2.7/site-packages/spacy/vocab.so: undefined symbol: _ZTINSt8ios_base7failureB5cxx11E

judithek commented 7 years ago

for me ./src/scripts/install_annotator.sh runs smoothly without error messages

testing on Ubuntu 14.04.5 LTS Release: 14.04 Codename: trusty Python 2.7.6 (default, Jun 22 2015, 17:58:13) [GCC 4.8.2] on linux2

ypuzikov commented 7 years ago

Found a solution here: https://github.com/explosion/sense2vec/issues/19

ypuzikov commented 7 years ago

Closing the issue.

gabrielStanovsky commented 7 years ago

Link doesn't work for me. Was that a local problem in your spacy installation?

ypuzikov commented 7 years ago

Sense2vec (also uses spaCy) issue:

TiesdeKok commented on 7 Dec 2016: 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.