On Fri, Apr 23, 2010 at 6:41 PM, James Chapman <ja...@uplinkzero.com> wrote:
> Hi there gurus and everyone else. This is my first post to this group, and
> I'm turning here because I'm stumped and search engines are not helping.
> I've used smtplib for a few things already and while wanting to use it again
> today, I'm having weird things happen.
<snip>
> ----------------
> srv1:~/python# ./email.py
> Traceback (most recent call last):
>   File "./email.py", line 3, in <module>
>     import smtplib
>   File "/usr/local/lib/python2.6/smtplib.py", line 46, in <module>
>     import email.utils
> ImportError: No module named utils
> ----------------

You've named your script email.py, which is shadowing the email
package from the standard library.

-- 
Jerry
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to