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

fix zip_downloader #267

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fix zip_downloader #267

wants to merge 1 commit into from

Conversation

lifan-yuan
Copy link

This update aims to solve the certificate verification problem in data downloading.
Currently, when automatically downloading data using DataManager, there raises an URL error:
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)>
This is caused by

with urllib.request.urlopen(remote_url) as fin:

When opening an https, urllib.request.urlopen automatically verifies the SSL certificate and then cause the error. This can be solved with help of the ssl library.

solving the certificate verification problem in data downloading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant