spaCy icon indicating copy to clipboard operation
spaCy copied to clipboard

IOError: [Errno 2] No such file or directory: '/en_core_web_sm/en_core_web_sm-2.0.0a0/tagger/cfg'

Open irfan-zoefit opened this issue 9 years ago • 4 comments

I'm trying to run the spacy-nightly in a new environment for testing purpose. After installation when I try to run the following code as mention in the example,

import spacy
from spacy import displacy
try:
    unicode
except:
    unicode = str
text = unicode('But Google is starting from behind.')

nlp = spacy.load('en_core_web_sm')
doc = nlp(text)
displacy.serve(doc, style='ent')

I got the error:

IOError: [Errno 2] No such file or directory: '/home/irfan/PycharmProjects/nightly/.night/local/lib/python2.7/site-packages/en_core_web_sm/en_core_web_sm-2.0.0a0/tagger/cfg

Info about spaCy

  • Python version: 2.7.12
  • Platform: Linux-4.4.0-87-generic-x86_64-with-Ubuntu-16.04-xenial
  • spaCy version: 2.0.0a4

irfan-zoefit avatar Jul 25 '17 08:07 irfan-zoefit

Same problem. Same setup but using python3.

nikeqiang avatar Jul 25 '17 11:07 nikeqiang

Ah, damn, this was a bug in introduced in the recent alpha update (2.0.0a4). Sorry about that – pushing a new update in a minute that fixes this.

In the meantime, 2.0.0a0 should work fine:

pip install spacy-nightly==2.0.0a0

ines avatar Jul 25 '17 16:07 ines

Fixed in the latest update, 2.0.0a6!

ines avatar Jul 25 '17 18:07 ines

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[bot] avatar May 08 '18 18:05 lock[bot]