poplib Q

SuperHik junkytownMAKNI at gmail.com
Thu Jul 6 14:29:10 EDT 2006


Paul McGuire wrote:
> "SuperHik" <junkytownMAKNI at gmail.com> wrote in message
> news:e8jj6q$bhg$1 at 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!




More information about the Python-list mailing list