gabrielStanovsky/unified-factuality

install_annotator.sh: problem installing spacy

judithek opened this issue · 5 comments

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

'spacy' is a package and cannot be directly executed

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')"

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

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)

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

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