IMAP4_SSL error

Dody Suria Wijaya dodysw at gmail.com
Thu Jan 5 08:55:42 EST 2006


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.
> 



More information about the Python-list mailing list