473,395 Members | 1,368 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

IMAP4_SSL error

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.

--
Russell Stewart | E-Mail: di*****@swcp.com
UNM CS Department | WWW: http://www.russell-stewart.net

"The great thing about standards in the computer
industry is that there are so many to choose from"
--Spotted on Slashdot
Jan 5 '06 #1
1 3774
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.

Jan 5 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: deko | last post by:
I use this convention frequently: Exit_Here: Exit Sub HandleErr: Select Case Err.Number Case 3163 Resume Next Case 3376 Resume Next
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
2
by: Dave | last post by:
First to admit I'm a newbie at Python, IMAP, or SSL. And it's been a long time since I've posted anything to a Usenet group. But I've spent countless hours spinning my wheels on this one, so I...
2
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.