nadimkobeissi / mkbsd

Download all the wallpapers in MKBHD's "Panels" app
Do What The F*ck You Want To Public License
2.43k stars 180 forks source link

Python error #28

Open APersonCalledIsaac opened 1 day ago

APersonCalledIsaac commented 1 day ago

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 commented 1 day ago

What OS are you using?

APersonCalledIsaac commented 1 day ago

MacOS

Vault108 commented 1 day ago

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 commented 1 day ago

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 commented 1 day ago

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 commented 18 hours ago

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