I recall that Active State Python binary does not include SSL because of export restriction. Try using normal python binary in http://python.org.
Russell Stewart wrote: > I'm trying to log into a secure IMAP4 server using imaplib, > and I'm getting a strange error. If I do the following (name > of mail server x'ed out in example): > > >>> import imaplib > >>> m = imaplib.IMAP4_SSL("mail.xxx.xxx") > > I get: > Traceback (most recent call last): > File "<stdin>", line 1, in ? > File "C:\Python24\lib\imaplib.py", line 1101, in __init__ > IMAP4.__init__(self, host, port) > File "C:\Python24\lib\imaplib.py", line 160, in __init__ > self.open(host, port) > File "C:\Python24\lib\imaplib.py", line 1114, in open > self.sslobj = socket.ssl(self.sock, self.keyfile, self.certfile) > AttributeError: 'module' object has no attribute 'ssl' > > Any ideas? I'm running Active State Python 2.4 in WinXP > SP2. > -- http://mail.python.org/mailman/listinfo/python-list