<div class="gmail_quote">On Fri, Nov 20, 2009 at 11:05 AM, Kev Dwyer <span dir="ltr"><<a href="mailto:kevin.p.dwyer@gmail.com">kevin.p.dwyer@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div>I ran your script on a CentOS vm (5.2 server 32bit, not quite the same as<br></div>
yours but also running python 2.4.3).  It ran without error.  So I<br>
suspect that either you have a rogue email module/package on your machine<br>
or there's something wrong with the python install.<br>
<br>
You could try:<br>
<br>
import email<br>
email.__version__<br>
<br>
My interpreter responds "3.0.1"  If you get a different response that<br>
suggests a dodgy module somewhere - try email.__file__ and see where it's<br>
located (my interpreter returns /usr/lib/python2.4/email/__init__.pyc).<br>
<br>
If the version number is "3.0.1" on your machine then I would check the<br>
contents of /usr/lib64/python2.4/email/.  Perhaps the base64MIME module<br>
is missing.<br></blockquote><div><br>>>> import email<br>>>> email.__version__<br>'3.0.1'<br>>>><br>[root@13gems cart]# ls /usr/lib64/python2.4/email/<br>base64MIME.py   Encoders.pyo    Generator.pyc  Iterators.py   MIMEAudio.pyo   MIMEMessage.pyc       MIMEText.py     Parser.pyo<br>
base64MIME.pyc  Errors.py       Generator.pyo  Iterators.pyc  MIMEBase.py     MIMEMessage.pyo       MIMEText.pyc    quopriMIME.py<br>base64MIME.pyo  Errors.pyc      Header.py      Iterators.pyo  MIMEBase.pyc    MIMEMultipart.py      MIMEText.pyo    quopriMIME.pyc<br>
Charset.py      Errors.pyo      Header.pyc     Message.py     MIMEBase.pyo    MIMEMultipart.pyc     _parseaddr.py   quopriMIME.pyo<br>Charset.pyc     FeedParser.py   Header.pyo     Message.pyc    MIMEImage.py    MIMEMultipart.pyo     _parseaddr.pyc  test<br>
Charset.pyo     FeedParser.pyc  __init__.py    Message.pyo    MIMEImage.pyc   MIMENonMultipart.py   _parseaddr.pyo  Utils.py<br>Encoders.py     FeedParser.pyo  __init__.pyc   MIMEAudio.py   MIMEImage.pyo   MIMENonMultipart.pyc  Parser.py       Utils.pyc<br>
Encoders.pyc    Generator.py    __init__.pyo   MIMEAudio.pyc  MIMEMessage.py  MIMENonMultipart.pyo  Parser.pyc      Utils.pyo<br></div></div><br>Any other ideas? <br>TIA,<br>V<br>