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
Download of 1.6 en model fails with ssl exception #920
Comments
Damn, looks like the SSL certificate might have expired! In the meantime, you can always download the models manually from the v1.6 release on GitHub (just drop the data directory into |
Fixed the certificate -- sorry for the delay. |
We still get this error and are unable to install models using python -m spacy.en.download all |
@sankethpb The For more info on the available models and new download commands, see the models documentation. |
I used the new command |
@sankethpb Hm, this is very strange – the downloader gets the model URLs from our models repo on GitHub (via SSL, but GitHub's certificate should be fine), and then uses pip to install them. Do you get the same error if you run this manually? pip install https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-1.2.0/en_core_web_sm-1.2.0.tar.gz If it still doesn't work, you can always just download the model archive manually via the browser and then point pip to the archive on your local file system. To load the model, you'll have to set up a shortcut link manually, or simply import the model as a module and call its import en_core_web_sm
nlp = en_core_web_sm.load() |
@ines I also tried to using pip install The short links didn't work for me (or maybe I did it wrong) since I use Spacy with RASA Nlu, finally I modified pip's download.py to ignore SSL verification and now it installed successfully. It's a bad workaround though. It would be great if it can be fixed. |
Well, the service is GitHub, and the software that's installing it is pip --- so I think it's almost certain that the problem is in your system. I think some Python versions were linked against an old version of OpenSSL, which didn't implement some SSL protocol correctly. I don't remember the details entirely. But I think if you update your Python and possibly your OpenSSL, it'll work correctly. |
I'm still seeing this issue. The following workaround fixed it from me
You may have to change the trusted host depending on what and were you are downloading. The |
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. |
When trying to download the en model with spacy 1.6(using
python -m spacy.en.download all
) the download fails with:The text was updated successfully, but these errors were encountered: