PizzaWaffles / Automatic-Youtube-Downloader

Python
95 stars 12 forks source link

Setup does not run under OSx. Error [SSL: CERTIFICATE_VERIFY_FAILED] #45

Open CoMb0BrEaKeR opened 5 years ago

CoMb0BrEaKeR commented 5 years ago

On Mac OS 10.14.6 with Python 3.7.4 after running
python setup.py selecting option 1 It begins to process and gets error

File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ssl.py", line 1139, in do_handshake self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076) During handling of the above exception, another exception occurred:

Then

File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 1319, in do_open raise URLError(err) urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)> An error occurred with downloading poetry

I tried the command on my windows 10 box and seems to progress normally.

The instruction "When installing make sure to click 'Add to PATH'". Is this the environment variable that needs to be set under windows? What Path needs to be set? Does this variable need to be set on a Linus box or OSX?

undaunt commented 4 years ago

Per here https://stackoverflow.com/questions/58280484/ssl-module-in-python-is-not-available-on-osx you likely need to reinstall Python on MacOS with Brew as the base MacOS version will cause this problem.

I'd recommend installing brew, Xtools (you'll be prompted in brew for this when you try to reinstall python), and python.

https://brew.sh/

Hope this helps. I was testing on my Mac earlier today and had the same issue. Path needs to be set on MacOS and Linux. You can append things to your path with:

PATH=/path/to/add/here/:$PATH