-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
How to fix CERTIFICATE_VERIFY_FAILED? #241
Comments
this has been reported a couple times, it sounds like a local network issue, but I would love to figure out the cause and see if there's a way it can be avoided. |
@KJworker where did you get yt.get from?
|
If you are on a mac, running 'Install Certificates.command' from /Applications/Python3.x should fix the error. It installs a set of default Root Certificates for the python ssl module by installing the certifi https://pypi.python.org/pypi/certifi |
Referencing what @yarodevuci said:
|
Hello, I'm experiencing this issue, too. Strange how it appeared all of a sudden. EDIT: I stand corrected, reporting my experience: I had a second, broken installation of OpenSSL that confused the python intepreter. Once removed the broken installation, python defaulted again to the system one - problem solved. It looks like that many instances of this error are caused by a broken OpenSSL installation. The issue happens on this line. I did a little bit of research on this, it seems that a possible solution could be forcing the certs path using the
Would such a patch make sense? I can open a PR it deemed useful |
I had the same bug, but this solution worked perfect for me! Thank you |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Thank you!! this resolved the issue. Saying the same things in different way... |
Not to be that guy, but this did not work for me. The 'Install Certificate' command was successful, but my SSL related errors persist. macOS 13.1. |
Works for me in 2023 as well |
nice |
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777)
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777)>
yt = YouTube('https://www.youtube.com/watch?v=AmIGXJ0HYHI')
video = yt.get("mp3","360p")
video.download("/Users/ken/Desktop/python_collection/youtubeCatch")
The text was updated successfully, but these errors were encountered: