[Tutor] SSL Error

Zachary Ware zachary.ware+pytut at gmail.com
Tue Jul 31 13:16:30 EDT 2018


On Tue, Jul 31, 2018 at 12:06 PM Alan Gauld via Tutor <tutor at python.org> wrote:
>
> On 31/07/18 03:52, Saket Mehrotra wrote:
>
> > error  ssl.PROTOCOL_SSLv23: OpenSSL.SSL.SSLv23_METHOD,
> > AttributeError: module 'ssl' has no attribute 'PROTOCOL_SSLv23'
>
> Are you sure you spelled the attribute correctly?
>
> Have you tried
>
>
> >>> import ssl
> >>> dir(ssl)
>
> Top see what the attribute names look like?
> Is PROTOCOL_SSLv23 one of them?

Also check `ssl.__file__` and make sure it is the standard library's
`ssl.py` (/usr/lib/python3.6/ssl.py or similar) and not a local file
of yours named `ssl.py`.

-- 
Zach


More information about the Tutor mailing list