[IronPython] POP3_SSL issue

Michael Foord fuzzyman at voidspace.org.uk
Wed Apr 16 21:35:46 CEST 2008


Kar, Sujit wrote:
> Michael,
>
> The full trace is:
>
> Traceback (most recent call last):
>   File , line 0, in <stdin>##76
>   File c:\python25\lib\poplib.py, line 359, in __init__
> AttributeError: 'module' object has no attribute 'ssl'
>
> If it is an extension module, then does that mean I cannot use IronPython to do this?
>   

Not using that standard library module as it is. You'd need to wrap a 
.NET SSL module to provide a similar interface - or use another .NET 
library to provide the POP3 SSL functionality you want.

Michael Foord
http://www.ironpythoninaction.com/
> Thanks for your help...
>
> Sujit
> -=-
>
>
> ________________________________________
> From: users-bounces at lists.ironpython.com [users-bounces at lists.ironpython.com] On Behalf Of Michael Foord [fuzzyman at voidspace.org.uk]
> Sent: Wednesday, April 16, 2008 3:03 PM
> To: Discussion of IronPython
> Subject: Re: [IronPython] POP3_SSL issue
>
> Kar, Sujit wrote:
>   
>> Hello,
>>
>> I am trying to access gmail via the POP3_SSL standard python library. Ironpython is installed & so is Python2.5 and site.py has the necessay path information. OS is Vista
>>
>> When I try to execute the following code in IronPython:
>>
>>    mbox = poplib.POP3_SSL("pop.gmail.com")
>>
>> I get an error message saying:
>>    AttributeError: 'module' object has no attribute 'ssl'
>>
>>
>>     
>
> What is the line of Python code associated with that error (it should be
> in the full traceback). I suspect that will give you a clue. :-)
>
> The answer is probably that Python uses a c extension module for ssl
> support.
>
> Michael Foord
> http://www.ironpythoninaction.com/
>
>   
>> If I use the python console installed with Python2.5, everything works just fine.
>>
>> Any ideas?
>>
>> I just started using python/ironpython, so please excuse any newbie mistakes.
>>
>> Thanks,
>> Sujit
>> -=-
>> _______________________________________________
>> Users mailing list
>> Users at lists.ironpython.com
>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>>
>>     
>
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>   




More information about the Ironpython-users mailing list