can't send email

Ned Deily nad at
Tue Sep 7 22:30:14 CEST 2010

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

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

 Ned Deily,
 nad at

More information about the Python-list mailing list