In article 
<c776ad54-0663-4787-a883-a4fc72f36...@s9g2000yqd.googlegroups.com>,
 Bob <roberto.pagli...@gmail.com> 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,
 n...@acm.org

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

Reply via email to