D'Oh!

Of course! 
I feel like a right pillock now.

Cheers for that though.

--
James

At Saturday, 24-04-2010 on 0:39 Jerry Hill wrote:

On Fri, Apr 23, 2010 at 6:41 PM, James Chapman  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.

> ----------------
> srv1:~/python# ./email.py
> Traceback (most recent call last):
>   File "./email.py", line 3, in 
>     import smtplib
>   File "/usr/local/lib/python2.6/smtplib.py", line 46, in 
>     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


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

Reply via email to