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

[E053] Could not read config.cfg #7453

Closed
SapiensSuwan opened this issue Mar 16, 2021 · 4 comments
Closed

[E053] Could not read config.cfg #7453

SapiensSuwan opened this issue Mar 16, 2021 · 4 comments
Labels
install Installation issues

Comments

@SapiensSuwan
Copy link

my code

!pip install https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-2.2.0/en_core_web_sm-2.2.0.tar.gz
!pip install pyresparser
data_words_nostops = remove_stopwords(abs_words)
data_words_bigrams = make_bigrams(data_words_nostops)
nlp = spacy.load('en_core_web_sm', disable=['parser', 'ner'])

Error I've got

OSError: [E053] Could not read config.cfg from /Users/suwanlong/opt/anaconda3/lib/python3.8/site-packages/en_core_web_sm/en_core_web_sm-2.3.1/config.cfg

Your Environment

  • Operating System: Mac OS
  • Python Version Used: anaconda python 3.8
  • spaCy Version Used: 3.0.5

I have tried

pip install -U pip setuptools wheel pip install -U spacy python -m spacy download en_core_web_sm

$!python -m spacy download en_core_web_sm import spacy nlp = spacy.load("en_core_web_sm")

All of them are not working for my case.

Any ideas? thanks!

@svlandeg svlandeg added the install Installation issues label Mar 16, 2021
@svlandeg
Copy link
Member

Hi! The 2.2.0 model is incompatible with spaCy v3. You can check your models and installation with

python -m spacy validate

So I'm afraid you'll either have to downgrade spaCy to 2.2.4 to work with this particular model, or download a new model, e.g. https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.0.0/en_core_web_sm-3.0.0.tar.gz

@SapiensSuwan
Copy link
Author

@svlandeg
Copy link
Member

Happy to hear it!

@github-actions
Copy link
Contributor

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
install Installation issues
Projects
None yet
Development

No branches or pull requests

2 participants