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

Spacy assumes data is already downloaded. #183

Closed
jamorton opened this issue Nov 16, 2015 · 4 comments
Closed

Spacy assumes data is already downloaded. #183

jamorton opened this issue Nov 16, 2015 · 4 comments

Comments

@jamorton
Copy link

Using spacy on Python 3.5 after installing with pip, I get this error:

>>> import spacy.en
>>> nlp = spacy.en.English()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "env/lib/python3.5/site-packages/spacy/language.py", line 193, in __init__
    vocab = self.default_vocab(data_dir)
  File "env/lib/python3.5/site-packages/spacy/language.py", line 148, in default_vocab
    get_lex_attr=get_lex_attr)
  File "spacy/vocab.pyx", line 56, in spacy.vocab.Vocab.from_dir (spacy/vocab.cpp:3461)
FileNotFoundError: [Errno 2] No such file or directory: 'env/lib/python3.5/site-packages/spacy/en/data/vocab/tag_map.json'

I assumed this was because I needed to download the English data:

(env) ➜ python -m spacy.en.download all
data already installed at /Users/jamorton/dev/bucket/env/lib/python3.5/site-packages/spacy/en, overwrite with --force

But spacy thinks it's already there.

I had to run download with --force to get it to work.

@jaksmid
Copy link

jaksmid commented Nov 23, 2015

Same issue, the workaround with --force worked.

@henningpeters
Copy link
Contributor

Meanwhile docs (https://spacy.io/) include --force flag, I think the issue can be closed?

@honnibal
Copy link
Member

This should be fixed in the new release, thanks to the revised model download and install system Henning has written.

@lock
Copy link

lock bot commented May 9, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators May 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants