urllib.request.urlopen fails with https - SOLVED

Irv Kalb Irv at furrypants.com
Fri Mar 16 18:59:10 EDT 2018


Thank you, thank you, thank you.

That fixed it (at least on my computer, I'll see if I can do that at my school).

Irv


> On Mar 15, 2018, at 7:39 PM, Ned Deily <nad at python.org> wrote:
> 
> On 2018-03-14 18:04, Irv Kalb wrote:
>> File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 1320, in do_open
>>   raise URLError(err)
>> urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)>
> 
> If you are using Python 3.6 for macOS from a python.org installer, did
> you follow the instructions displayed in the installer ReadMe and also
> saved at:
> 
> /Applications/Python 3.6/ReadMe.rtf
> 
> to run the "Install Certificates.command" ?
> 
> Either double-click on it in the Finder or, from a shell command line, type:
> 
>   open "/Applications/Python 3.6/Install Certificates.command"
> 
> 
> Certificate verification and OpenSSL
> 
> **NEW** This variant of Python 3.6 now includes its own private copy of
> OpenSSL 1.0.2.  Unlike previous releases, the deprecated Apple-supplied
> OpenSSL libraries are no longer used.  This also means that the trust
> certificates in system and user keychains managed by the Keychain Access
> application and the security command line utility are no longer used as
> defaults by the Python ssl module.  For 3.6.0, a sample command script
> is included in /Applications/Python 3.6 to install a curated bundle of
> default root certificates from the third-party certifi package
> (https://pypi.python.org/pypi/certifi).  If you choose to use certifi,
> you should consider subscribing to the project's email update service to
> be notified when the certificate bundle is updated.
> 
> 
> -- 
> https://mail.python.org/mailman/listinfo/python-list
> 




More information about the Python-list mailing list