By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,767 Members | 1,375 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,767 IT Pros & Developers. It's quick & easy.

poplib Q

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
"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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.