IMAP4_SSL error

Russell Stewart nospam at
Thu Jan 5 05:47:17 CET 2006

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("")

I get:
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
   File "C:\Python24\lib\", line 1101, in __init__
     IMAP4.__init__(self, host, port)
   File "C:\Python24\lib\", line 160, in __init__, port)
   File "C:\Python24\lib\", 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

Russell Stewart   |  E-Mail: diamond at
UNM CS Department |  WWW:

"The great thing about standards in the computer
industry is that there are so many to choose from"
                              --Spotted on Slashdot

More information about the Python-list mailing list