-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Model download returns 0 on failure #1714
Comments
Thanks – good point, I didn't even realise the Btw, if you're downloading models as part of an automated process, you can also just run import en_core_web_sm
nlp = en_core_web_sm.load() In some cases, it might be a little nicer to get a more "native" |
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. |
While building a Docker image containing spaCy, there was an issue downloading the basic model with
python -m spacy download en
:ReadTimeoutError: HTTPSConnectionPool(host='github-production-release-asset-2e65be.s3.amazonaws.com', port=443): Read timed out.
The download returned 0 so the build continued. Next, while building an Rasa NLU model, it couldn't find the model (as you might expect):
IOError: Can't find model 'en'
So I thought, if the download doesn't report failure, maybe I should use the
validate
command to make sure there's a model present before continuing the build? Butvalidate
also returns 0 when no models are present:I would expect the download tool to return non-zero when it fails to finish downloading a model.
Your Environment
The text was updated successfully, but these errors were encountered: