smtplib.SMTP throw : 'Socket error: 10053 software caused connection abort'
I am using 'smtplib' module to send an email but getting exception... smtplib.SMTP( throw error : here is trace back snippet :- " smtp = smtplib.SMTP(self.server) File "D:\Python24\lib\smtplib.py", line 244, in __init__ (code, msg) = self.connect(host, port) File "D:\Python24\lib\smtplib.py", line 306, in connect raise socket.error, msg socket.error: (10053, 'Software caused connection abort')" thanks in adv, aberry -- View this message in context: http://www.nabble.com/smtplib.SMTP-throw-%3A-%27Socket-error%3A-10053-software-caused-connection-abort%27-tp21565011p21565011.html Sent from the Python - python-list mailing list archive at Nabble.com. -- http://mail.python.org/mailman/listinfo/python-list
Re: smtplib.SMTP throw : 'Socket error: 10053 software caused connection abort'
aberry wrote: > > I am using 'smtplib' module to send an email but getting exception... > > smtplib.SMTP( throw error : > > here is trace back snippet :- > > " smtp = smtplib.SMTP(self.server) > File "D:\Python24\lib\smtplib.py", line 244, in __init__ >(code, msg) = self.connect(host, port) > File "D:\Python24\lib\smtplib.py", line 306, in connect >raise socket.error, msg > socket.error: (10053, 'Software caused connection abort')" > > thanks in adv, > aberry > > problem resolved :) ... culprit was Anti Virus running on my Win XP machine... I disabled AV On Access scan... no Error and email sent rgds, aberry -- View this message in context: http://www.nabble.com/smtplib.SMTP-throw-%3A-%27Socket-error%3A-10053-software-caused-connection-abort%27-tp21565011p21579963.html Sent from the Python - python-list mailing list archive at Nabble.com. -- http://mail.python.org/mailman/listinfo/python-list
Re: python needs a tutorial for install and setup on a Mac
Switching between python version Lets assume you have python 2.4.x and now you installed 2.5.x.By default python path will point to 2.4.x. To switch to python 2.5.x, use following commands... cd /usr/bin sudo rm pythonw sudo ln -s "/Library/Frameworks/Python.framework/Versions/2.5/bin/pythonw" pythonw sudo rm python sudo ln -s pythonw python2.5 sudo ln -s python2.5 python this worked for me... do let me know if any1 has other way of doing... Rgds, aberry Vincent Davis wrote: > > I am running python on a mac and when I was getting going it was difficult > to setup information. Specifically how modify bash_profile, how pythonpath > works and how to set it up. how to switch between python versions. > How/where > to install modules if you have multiple installed versions. I am thinking > about this from perspective of a new pythoner (is there a word for a > person > who programs in python). I think many new pythoners may be like me and > don't > mess with the underling UNIX on a mac. > My question/suggestion is that there be a nice tutorial for this. I am > wiling to contribute much but I am still somewhat new to python and may > need > help with some details. Also where should this be posted, how do I post > it. > Do other think there is a need? Any willing to help? > But of course I may have missed a great tutorial out there if so I think > It > needs to be easier to findor I need to learn how to look. > > Thanks > Vincent > > -- > http://mail.python.org/mailman/listinfo/python-list > > -- View this message in context: http://www.nabble.com/python-needs-a-tutorial-for-install-and-setup-on-a-Mac-tp24135580p24146279.html Sent from the Python - python-list mailing list archive at Nabble.com. -- http://mail.python.org/mailman/listinfo/python-list
Re: python needs a tutorial for install and setup on a Mac
thanks for suggestion... what should I put in 'bashrc ' so that I can switch between different version. as python command will always point to one Python framework (lets either 2.4.x or 2.5.x). regards, aberry Diez B. Roggisch-2 wrote: > > aberry wrote: > >> >> Switching between python version >> Lets assume you have python 2.4.x and now you installed 2.5.x.By default >> python path will point to 2.4.x. To switch to python 2.5.x, use following >> commands... >> >> cd /usr/bin >> sudo rm pythonw >> sudo ln -s >> "/Library/Frameworks/Python.framework/Versions/2.5/bin/pythonw" >> pythonw >> sudo rm python >> sudo ln -s pythonw python2.5 >> sudo ln -s python2.5 python >> >> this worked for me... do let me know if any1 has other way of doing... > > Bad idea. It might break tools that need the /usr/bin/python to be the > system's python. > > a simple > > export PATH=/Library/.../bin:$PATH > > inside .bashrc should be all you need. > > Diez > -- > http://mail.python.org/mailman/listinfo/python-list > > -- View this message in context: http://www.nabble.com/python-needs-a-tutorial-for-install-and-setup-on-a-Mac-tp24135580p24146713.html Sent from the Python - python-list mailing list archive at Nabble.com. -- http://mail.python.org/mailman/listinfo/python-list
UnicodeDecodeError: problem when path contain folder start with character 'u
I am facing an error on Unicode decoding of path if it contain a folder/file name starting with character 'u' . Here is what I did in IDLE 1. >>> fp = "C:\\ab\\anil" 2. >>> unicode(fp, "unicode_escape") 3. u'C:\x07b\x07nil' 4. >>> fp = "C:\\ab\\unil" 5. >>> unicode(fp, "unicode_escape") 6. 7. Traceback (most recent call last): 8. File "", line 1, in 9. unicode(fp, "unicode_escape") 10. UnicodeDecodeError: 'unicodeescape' codec can't decode bytes in position 5-9: end of string in escape sequence 11. >>> Not sure whether I am doing something wrong or this is as designed behavior . any help appreciated Rgds, aberry -- View this message in context: http://www.nabble.com/UnicodeDecodeError%3A-problem-when-path-contain-folder-start-with-character-%27u-tp24146775p24146775.html Sent from the Python - python-list mailing list archive at Nabble.com. -- http://mail.python.org/mailman/listinfo/python-list
Re: UnicodeDecodeError: problem when path contain folder start withcharacter 'u
thanks all for help... actually this was in old code having 'unicode_escape' . i hope it was there to handle path which may contain localized chars... but removing unicode_escape' it worked fine... :) rgds, aberry Mark Tolonen-3 wrote: > > > "aberry" wrote in message > news:24146775.p...@talk.nabble.com... >> >> I am facing an error on Unicode decoding of path if it contain a >> folder/file >> name starting with character 'u' . >> >> Here is what I did in IDLE >> 1. >>> fp = "C:\\ab\\anil" >> 2. >>> unicode(fp, "unicode_escape") >> 3. u'C:\x07b\x07nil' >> 4. >>> fp = "C:\\ab\\unil" >> 5. >>> unicode(fp, "unicode_escape") >> 6. >> 7. Traceback (most recent call last): >> 8. File "", line 1, in >> 9. unicode(fp, "unicode_escape") >> 10. UnicodeDecodeError: 'unicodeescape' codec can't decode bytes in >> position >> 5-9: end of string in escape sequence >> 11. >>> >> >> Not sure whether I am doing something wrong or this is as designed >> behavior >> . >> any help appreciated > > What is your intent? Below gives a unicode strings with backslashes. No > need for unicode_escape here. > >>>> fp = "C:\\ab\\unil" >>>> fp > 'C:\\ab\\unil' >>>> print fp > C:\ab\unil >>>> unicode(fp) > u'C:\\ab\\unil' >>>> print unicode(fp) > C:\ab\unil >>>> u'C:\\ab\\unil' > u'C:\\ab\\unil' >>>> print u'C:\\ab\\unil' > C:\ab\unil > > > > -- > http://mail.python.org/mailman/listinfo/python-list > > -- View this message in context: http://www.nabble.com/UnicodeDecodeError%3A-problem-when-path-contain-folder-start-with-character-%27u-tp24146775p24164207.html Sent from the Python - python-list mailing list archive at Nabble.com. -- http://mail.python.org/mailman/listinfo/python-list