In article 
<[email protected]>,
 Bob <[email protected]> wrote:
>[...]
> The error I get is this
> 
> python email.py
> Traceback (most recent call last):
>   File "email.py", line 2, in <module>
>     import smtplib
>   File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/
> python2.6/smtplib.py", line 46, in <module>
>     import email.utils
>   File "/Users/Bob/Code/email.py", line 5, in <module>
>     from email.mime.text import MIMEText
> ImportError: No module named mime.text

Your module email.py is hiding the standard library's email package.  
Rename your file from email.py to something that doesn't conflict.

-- 
 Ned Deily,
 [email protected]

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to