-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Update ch02.ipynb #403
Update ch02.ipynb #403
Conversation
I've added this peice to the code to handle ssl error on VSCode: ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Nice, I am glad it got resolved! |
I tried the solution above but it didn't work for me I am afraid. I had to create a context using SSLContext. Then using urllib I created a handler and an opener and then installed it globally only then Here is my code:
|
Thanks for sharing and sorry about the trouble. May I ask what version of Python you are/were using? I think Python versions below 3.10 may have some SSL issues and you'd either need to upgrade Python or update the underlying packages: pip install --upgrade certifi |
I've added this peice to the code to handle ssl error on VSCode:
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)