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

install_annotator.sh: problem installing spacy #10

Closed judithek closed 7 years ago

judithek commented 7 years ago

when running install_annotator.sh, I get the following message which is an error:

'spacy' is a package and cannot be directly executed

gabrielStanovsky commented 7 years ago

Maybe this is related to this issue. Although it shouldn't be a problem, as it should only happen in python 2.6, and you're using 2.7.

I tried pushing just now a different version of the spacy download. Can you try running the following command and let me know if it works:

python -c "from spacy import __main__; __main__.cli_download('en')"
judithek commented 7 years ago

the command above python -c "from spacy import __main__; __main__.cli_download('en')" does not work:

Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.7/dist-packages/spacy/init.py", line 5, in from .deprecated import resolve_model_name File "/usr/local/lib/python2.7/dist-packages/spacy/deprecated.py", line 8, in from .cli import download File "/usr/local/lib/python2.7/dist-packages/spacy/cli/init.py", line 1, in from .download import download File "/usr/local/lib/python2.7/dist-packages/spacy/cli/download.py", line 9, in from .link import link_package File "/usr/local/lib/python2.7/dist-packages/spacy/cli/link.py", line 4, in import pip File "/usr/lib/python2.7/dist-packages/pip/init.py", line 61, in from pip.vcs import git, mercurial, subversion, bazaar # noqa File "/usr/lib/python2.7/dist-packages/pip/vcs/mercurial.py", line 9, in from pip.download import path_to_url File "/usr/lib/python2.7/dist-packages/pip/download.py", line 25, in from requests.compat import IncompleteRead ImportError: cannot import name IncompleteRead

judithek commented 7 years ago

this seems to be an issue with my local setup (pip version not up to date, see e.g. http://stackoverflow.com/questions/27341064/how-do-i-fix-importerror-cannot-import-name-incompleteread)

updating pip for Python 2.7 seems to be not straightforward (first try did not work, since the current pip is owned by the OS)

gabrielStanovsky commented 7 years ago

Maybe you can use virtualenv to bypass this problem. I believe it deploys a user-owned version of pip.

judithek commented 7 years ago

I gave up on this Linux system and am currently testing on another one:

Description: Ubuntu 16.04.1 LTS
Release: 16.04
Codename: xenial
Python 2.7.12

here the current setup runs, so I close the issue