473,396 Members | 1,872 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,396 software developers and data experts.

poplib Q

Hi!

I want to connect to gmail but...
It requires SSL so I worte:
>>import poplib
server = poplib.POP3_SSL('pop.gmail.com',995)
Traceback (most recent call last):
File "<interactive input>", line 1, in ?
File "C:\Python24\lib\poplib.py", line 359, in __init__
self.sslobj = socket.ssl(self.sock, self.keyfile, self.certfile)
AttributeError: 'module' object has no attribute 'ssl'
>>>
what's with that?!
I found an old post to this group, and it connected the same way, only
it worked.
(I use PythonWin 2.4.3 on WinXP)

tia!
Jul 6 '06 #1
4 2179
"SuperHik" <ju************@gmail.comwrote in message
news:e8**********@ss408.t-com.hr...
Hi!

I want to connect to gmail but...
It requires SSL so I worte:
>>import poplib
>>server = poplib.POP3_SSL('pop.gmail.com',995)
Traceback (most recent call last):
File "<interactive input>", line 1, in ?
File "C:\Python24\lib\poplib.py", line 359, in __init__
self.sslobj = socket.ssl(self.sock, self.keyfile, self.certfile)
AttributeError: 'module' object has no attribute 'ssl'
>>>

what's with that?!
I found an old post to this group, and it connected the same way, only
it worked.
(I use PythonWin 2.4.3 on WinXP)

tia!
See if you have a socket.py file in your PYTHONPATH or local directory.

-- Paul
Jul 6 '06 #2
Paul McGuire wrote:
"SuperHik" <ju************@gmail.comwrote in message
news:e8**********@ss408.t-com.hr...
>Hi!

I want to connect to gmail but...
It requires SSL so I worte:
> >>import poplib
server = poplib.POP3_SSL('pop.gmail.com',995)
Traceback (most recent call last):
File "<interactive input>", line 1, in ?
File "C:\Python24\lib\poplib.py", line 359, in __init__
self.sslobj = socket.ssl(self.sock, self.keyfile, self.certfile)
AttributeError: 'module' object has no attribute 'ssl'
> >>>

what's with that?!
I found an old post to this group, and it connected the same way, only
it worked.
(I use PythonWin 2.4.3 on WinXP)

tia!

See if you have a socket.py file in your PYTHONPATH or local directory.

-- Paul
I did ofc, but I noticed something strange...
*my* socket module really doesn't have SSL object,
even tho it's listed in the documentation...
(not the online docs, but docs that came with my Python version)
ffs how can that be!

Jul 6 '06 #3
SuperHik:
I did ofc, but I noticed something strange...
*my* socket module really doesn't have SSL object,
even tho it's listed in the documentation...
(not the online docs, but docs that came with my Python version)
ffs how can that be!
You are probably using ActiveState's distribution which doesn't
include SSL due to encryption regulations. The python.org distribution
does include SSL and you may be able to copy _ssl.pyd into the
ActiveState installation.

Neil
Jul 6 '06 #4
Neil Hodgson wrote:
SuperHik:
>I did ofc, but I noticed something strange...
*my* socket module really doesn't have SSL object,
even tho it's listed in the documentation...
(not the online docs, but docs that came with my Python version)
ffs how can that be!

You are probably using ActiveState's distribution which doesn't
include SSL due to encryption regulations. The python.org distribution
does include SSL and you may be able to copy _ssl.pyd into the
ActiveState installation.

Neil
thank you!
grrr@regulations
Jul 7 '06 #5

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

Similar topics

1
by: Rybread | last post by:
Real quick, I have account X and I want a python script that goes in and looks for emails sent from Y and then to save them. i'm trying to go off the swen killer I have listed below (which i took...
2
by: brettk | last post by:
Hello All, Here's what I'm trying to do: I need to connect to a pop3 server, download all messages, and copy all of the attachments into a specific directory. The actual email message is...
2
by: Steve Greenland | last post by:
For the poplib.POP3 object, docs say: list() Request message list, result is in the form (response, ). If which is set, it is the message to list. But (I've folded the long line): Python...
0
by: Frank Churchill | last post by:
Has anyone used poplib and popfile together? I've tried everything I can think of to specify SRVR in poplib: "127.0.0.1:8081" "127.0.0.1,port=8081" "localhost:8081" "localhost,port=8081" ...
1
by: LJ | last post by:
Hello, I'm trying to monitor my gmail account to know when I have obtained a new email. It seems that once I have logged in, I should be able to call the stat() function repeatedly to see how...
3
by: EuGeNe Van den Bulke | last post by:
Hi there, I am trying to use the poplib library to get emails using the retr method. The small program bellow works but the message aren't flagged as read which puzzles me. I believe the pop...
1
by: erikcw | last post by:
Hi, I keep getting this error from poplib: (error_proto(-ERR EOF) line 121 poplib.py Does this mean the connection has timed out? What can I do to deal with it? Thanks! Erik
4
by: Jean-Claude Neveu | last post by:
Hello, I am writing a Python program to check email using POP3. I've tried the sample code from python.org, and it works great. In other words, the code below successfully prints out my emails....
2
by: SteveC | last post by:
Hello, I am trying to use POP3_SSL class of the poplib module to read email from my gmail account. I can connect just fine using the example here http://www.python.org/doc/lib/pop3-example.html...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.