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

Python error #28

Open
APersonCalledIsaac opened this issue Sep 25, 2024 · 6 comments
Open

Python error #28

APersonCalledIsaac opened this issue Sep 25, 2024 · 6 comments

Comments

@APersonCalledIsaac
Copy link

Error: Cannot connect to host storage.googleapis.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)')]

@Vault108
Copy link

What OS are you using?

@APersonCalledIsaac
Copy link
Author

MacOS

@Vault108
Copy link

#18
Try what @Kung-Fu-Stalin said

Error: Cannot connect to host storage.googleapis.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1002)')]

Set param ssl equal to False like: session.get(url, ssl=False)

@samogmx
Copy link

samogmx commented Sep 25, 2024

go to the Applications folder in Finder then to Python 3.12 folder and doubleclick on Install Certificates.command and re-run the script

@invictusaman
Copy link

IIn MacOS, you might need to install certificates separately. You can do this by running the Install Certificates.command script that comes with Python installations. You can find it in the Python installation directory (usually under /Applications/Python <version>/)

If you are still facing the issue, try uninstalling the Python program from Applications and run brew install python or you can use virtual environment pyenv.

You can find the certificate under /opt/homebrew/opt/python/libexec for ARM architecture. Simply run,

open /opt/homebrew/opt/python/libexec/Install\ Certificates.command

@Kale-Thungs
Copy link

IIn MacOS, you might need to install certificates separately. You can do this by running the Install Certificates.command script that comes with Python installations. You can find it in the Python installation directory (usually under /Applications/Python <version>/)

If you are still facing the issue, try uninstalling the Python program from Applications and run brew install python or you can use virtual environment pyenv.

You can find the certificate under /opt/homebrew/opt/python/libexec for ARM architecture. Simply run,

open /opt/homebrew/opt/python/libexec/Install\ Certificates.command

This fixed my issues from above

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

5 participants