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

urllib2.URLError: #138

Open
jvhagey opened this issue May 13, 2022 · 0 comments
Open

urllib2.URLError: #138

jvhagey opened this issue May 13, 2022 · 0 comments

Comments

@jvhagey
Copy link

jvhagey commented May 13, 2022

Hi,

I am running srst2 v0.2.0 in a conda environment and when I run getmlst.py --species "Escherichia coli#1" got the following error:

urllib2.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:727)>

I found this error in the quay.io containers v0.2.0 I tried as well.

This can be fixed by adding:

import ssl to line27 and changing the following at line197:

if __name__ == '__main__':
	ssl._create_default_https_context = ssl._create_unverified_contex
	main()

Not sure why this is happening, but hopefully someone else finds it helpful.

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

No branches or pull requests

1 participant