On Tue, Jul 31, 2018 at 12:06 PM Alan Gauld via Tutor <tutor@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 _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor