-
-
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
[SSL: CERTIFICATE_VERIFY_FAILED] when executing python -m spacy.en.download #507
Comments
Same here, I've tried to download the archive and place it in the corresponding directory, hopping the command would check there before downloading it.. Is there a way to work around that issue? |
+1 Same error for me |
Alright, so this should be fixed now — try again? We've been moving the site over to new servers and fixing the SSL certificate to finally address the model downloading issues. The problem was that @honnibal was using CloudFlare's "flexible" SSL option. We now got rid of that and installed a certificate from Let's Encrypt (which is great, btw!) Make sure to flush your DNS cache before you reload and try again: Alternatively, you can also use Google Public DNS, which has already updated. That's also what we used for debugging internally for the past few hours. Unfortunately, the DNS is still propagating and seems to be taking forever (see here for the current status). |
👍 |
All working fine. Thank you 👍 On 26 September 2016 at 23:17, Ines Montani [email protected]
|
I still get the error ... how can this be :( |
What version are you using? |
I'm using Python 2.7.9, pip 9.0.1 and spacy 1.3.0 |
I tried again today, and this time it worked! |
I'm getting the same thing using py 2.7.12 and pip 9.0.1. I've tried all the remedies above, to no avail. Any other ideas? Error below. Many thanks for any help. python -m spacy.en.download |
I have the same issue / similar issue. Python 2.7.13 |
@rebera It's possible that the proxy is the issue here – we'll investigate. In general, problems like these should all be fixed with the v2.0 release. We'll be able to ship much smaller models as binaries along with the release and retire the current model download process. This should also give you more control over how you want to handle the model downloads. |
@ines Thanks for the fast reply. Is there a way to download the for the language package and locally install it until V2.0 is available? |
I got the same error with latest spacy version, latest pip and python 3.6.0 |
Getting a similar (but not same) issue that I've documented on SO .. http://stackoverflow.com/questions/41725166/installing-spacy-ssl-certificate-error Instructions for a workaround would be appreciated until the fix is pushed (i.e downloading the tar file through a URL, unzipping, etc manually). |
Same issue.
-on python-3.6.0 and pip3 |
This issue can be fixed by this walkthrough (it's for Mac): but in general - it's simply to update |
@yakudzam Fixed, Thanks! |
Hi, |
@ozone3 try to update |
@yakudzam Thanks for sharing your solution! The Python/SSL thing really seems to be a recurring source of problems and unfortunately, there's currently no easy way for us to provide a link to download the models from the browser. So I can't wait to finally release 2.0 and retire the sputnik package manager for good. As I said above, the plan is to attach the models as binary data to the GitHub releases. The models will also be significantly smaller. |
Hi,
@ines, is there any quick fix for it? I'm using Windows 10 with Python 3.5.2. Can I manually download models and use them? |
Hey! I was just experimenting with SSL options and eureka! Found a hacky solution.
Now it's going to ignore all SSL errors globally. It's still a hack and must never be used in production cases. |
@AliFlux Thanks for sharing & sorry again about this mess. But, the good news are, the models are now available to download from GitHub – either from your browser, or however else you want to do it. This also means we'll be able to retire Sputnik (and the S3 infrastructure) with the next release 🎉 Here's the info I posted in #798 and #711 the other day (forgot to update this thread as well, sorry): After trying out different solutions, we decided to simply attach the models as archive files to the latest release. The files are still quite large (between 500 and ~700MB), but they can now be downloaded via the browser. ➡️ https://github.com/explosion/spaCy/releases/tag/v1.6.0 Here's how to install the models manually:
cc: @jordipala, @Threynaud, @suchitagarwal, @preziotte, @timohausmann, @zang0, @rebera, @ashishsingal1, @ozone3, @DeeAnG |
That's awesome! Thanks for doing this. |
Thanks ines! |
hi, @ines i use spacy behind the proxy, and have to unpack the archive manually, but always encounter such exception: how to fix it? |
I am still getting this error. Please help me resolve this! |
@ines Are the models on the 1.6.0 release correct? I tried downloading the English model and unpacking it.
Setting the data path appears to show the model with spacy info but i will not load.
|
|
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. |
Hi,
I am receiving the error pasted bellow when executing the command 'python -m spacy.en.download'
File "/usr/local/lib/python3.5/runpy.py", line 184, in _run_module_as_main "__main__", mod_spec) File "/usr/local/lib/python3.5/runpy.py", line 85, in _run_code exec(code, run_globals) File "/root/.virtualenvs/jordipala_pfc/lib/python3.5/site-packages/spacy/en/download.py", line 13, in <module> plac.call(main) File "/root/.virtualenvs/jordipala_pfc/lib/python3.5/site-packages/plac_core.py", line 328, in call cmd, result = parser.consume(arglist) File "/root/.virtualenvs/jordipala_pfc/lib/python3.5/site-packages/plac_core.py", line 207, in consume return cmd, self.func(*(args + varargs + extraopts), **kwargs) File "/root/.virtualenvs/jordipala_pfc/lib/python3.5/site-packages/spacy/en/download.py", line 9, in main download('en', force) File "/root/.virtualenvs/jordipala_pfc/lib/python3.5/site-packages/spacy/download.py", line 24, in download package = sputnik.install(about.__title__, about.__version__, about.__models__[lang]) File "/root/.virtualenvs/jordipala_pfc/lib/python3.5/site-packages/sputnik/__init__.py", line 37, in install index.update() File "/root/.virtualenvs/jordipala_pfc/lib/python3.5/site-packages/sputnik/index.py", line 84, in update index = json.load(session.open(request, 'utf8')) File "/root/.virtualenvs/jordipala_pfc/lib/python3.5/site-packages/sputnik/session.py", line 43, in open r = self.opener.open(request) File "/usr/local/lib/python3.5/urllib/request.py", line 466, in open response = self._open(req, data) File "/usr/local/lib/python3.5/urllib/request.py", line 484, in _open '_open', req) File "/usr/local/lib/python3.5/urllib/request.py", line 444, in _call_chain result = func(*args) File "/usr/local/lib/python3.5/urllib/request.py", line 1297, in https_open context=self._context, check_hostname=self._check_hostname) File "/usr/local/lib/python3.5/urllib/request.py", line 1256, in do_open raise URLError(err) urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:645)>
I've tried in three differents machines.
The text was updated successfully, but these errors were encountered: