Environment that I\'m having trouble on: Python 2.7.11 on Windows10 (patched up to date). Python installed via a msi. I\'ve checked PATH settings in settings, and it\'s set
Here's a workaround that worked for me (Python 3.5, Windows 10), and which doesn't require downgrading:
from backports import ssl
from imapclient import IMAPClient
context = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2)
server = IMAPClient('imap.gmail.com', ssl=True, ssl_context=context)
The above code was derived from the developer's workaround here, but I found I only needed the one line defining context to make it work. Specifying other SSL/TLS protocols also worked.