can't send email
Ned Deily
nad at acm.org
Tue Sep 7 16:30:14 EDT 2010
In article
<c776ad54-0663-4787-a883-a4fc72f360a8 at s9g2000yqd.googlegroups.com>,
Bob <roberto.pagliari at 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,
nad at acm.org
More information about the Python-list
mailing list