Re: [Tutor] smtplib starttls() error
I have also looked in all the documentation python 2.4.3 files I downloaded and this points out that I should have install the socket.ssl() my question is that is how do I install the socket.ssl() thank you ennma On 1/8/07, olen88 <[EMAIL PROTECTED]> wrote: > Hello, > I was wondering if anyone could point me in the right direction > my system info: > Python 2.4.3 (#69, Apr 11 2006, 15:32:42) [MSC v.1310 32 bit (Intel)] on > win32 > > as the subject says. starttls() returns the following error, > > reply, null = session.starttls(); > File "C:\Python24\lib\smtplib.py", line 601, in starttls > sslobj = socket.ssl(self.sock, keyfile, certfile) > AttributeError: 'module' object has no attribute 'ssl' > > I tried, > > import socket > > socket.ssl(); > > same AttributeError exception was raised, so this confirmed that > socket.py has no ssl attribute. > > what can I do about this, some answers I digged up suggest > > http://mail.python.org/pipermail/python-list/2003-June/207802.html > > but I am hasty about this suggestion, and wishes to consult to you all > about what to do. > > Thank you > > ennma > > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] smtplib starttls() error
On 1/8/07, Olen <[EMAIL PROTECTED]> wrote: > I have also looked in all the documentation python 2.4.3 files I downloaded > and this points out that I should have install the socket.ssl() > my question is that is how do I install the > > socket.ssl() > > thank you > > ennma > On 1/8/07, olen88 <[EMAIL PROTECTED]> wrote: > > Hello, > > I was wondering if anyone could point me in the right direction > > my system info: > > Python 2.4.3 (#69, Apr 11 2006, 15:32:42) [MSC v.1310 32 bit (Intel)] on > > win32 > > > > as the subject says. starttls() returns the following error, > > > > reply, null = session.starttls(); > > File "C:\Python24\lib\smtplib.py", line 601, in starttls > > sslobj = socket.ssl(self.sock, keyfile, certfile) > > AttributeError: 'module' object has no attribute 'ssl' > > > > I tried, > > > > import socket > > > > socket.ssl(); > > > > same AttributeError exception was raised, so this confirmed that > > socket.py has no ssl attribute. > > > > what can I do about this, some answers I digged up suggest > > > > http://mail.python.org/pipermail/python-list/2003-June/207802.html > > > > but I am hasty about this suggestion, and wishes to consult to you all > > about what to do. > > > > Thank you > > > > ennma > > > > ___ > > Tutor maillist - Tutor@python.org > > http://mail.python.org/mailman/listinfo/tutor > > > ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] Fwd: smtplib starttls() error
-- Forwarded message -- From: Olen <[EMAIL PROTECTED]> Date: Jan 8, 2007 1:44 AM Subject: Re: [Tutor] smtplib starttls() error To: tutor@python.org I have also looked in all the documentation python 2.4.3 files I downloaded and this points out that I should have install the socket.ssl() my question is that is how do I install the socket.ssl() thank you ennma On 1/8/07, olen88 <[EMAIL PROTECTED]> wrote: > Hello, > I was wondering if anyone could point me in the right direction > my system info: > Python 2.4.3 (#69, Apr 11 2006, 15:32:42) [MSC v.1310 32 bit (Intel)] on > win32 > > as the subject says. starttls() returns the following error, > > reply, null = session.starttls(); > File "C:\Python24\lib\smtplib.py", line 601, in starttls > sslobj = socket.ssl(self.sock, keyfile, certfile) > AttributeError: 'module' object has no attribute 'ssl' > > I tried, > > import socket > > socket.ssl(); > > same AttributeError exception was raised, so this confirmed that > socket.py has no ssl attribute. > > what can I do about this, some answers I digged up suggest > > http://mail.python.org/pipermail/python-list/2003-June/207802.html > > but I am hasty about this suggestion, and wishes to consult to you all > about what to do. > > Thank you > > ennma > > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] smtplib starttls() error
Hi Kent and Terry, Correct I am using Active state python,and did not read the full information about installations. Thank you for for the information. I just need to confirm something, In python when we "upgrade" we essentially install a new version of python , and we would be needing to install what ever custom packages we have previously installed right? thank you once again Olen On 1/9/07, Terry Carroll <[EMAIL PROTECTED]> wrote: > On Tue, 9 Jan 2007, Kent Johnson wrote: > > > Are you using the standard Python installer from python.org or something > > else? SSL support is a build option. It is included in the standard > > Python for Windows v2.3.5 and 2.4.4. Can you upgrade to the standard > > 2.4.4 distribution and see if that works? > > I'm guessing that Olen is using Activestate's distribution, which does not > include SSL for export control reasons: > >ActivePython does not include SSL support. Why is this, and how can I >add it? > >Here is an answer on python-list while discussing the differences >between ActivePython and python.org's Python: > > >http://mail.python.org/pipermail/python-list/2005-December/315754.html >[http://mail.python.org/pipermail/python-list/2005-December/357227.html] > >... >- As Neil pointed out, ActivePython does not currently have SSL > bindings (the _ssl module) that python.org's Python builds do. We > are currently going through the legal hurdles so that we can > include those. I expect that by or before the Python 2.5 > timeframe we'll have _ssl in ActivePython. >... > >In the interim just plopping in the _ssl.pyd|so from either >python.org's build or from your own build into ActivePython's >lib-dynload directory will work to get ActivePython talking SSL. > > http://aspn.activestate.com/ASPN/docs/ActivePython/2.4/faq.html#ext_ssl > > > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor