[Tutor] smtplib help required

James Chapman james at uplinkzero.com
Sat Apr 24 01:52:21 CEST 2010


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 at python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100424/8ffb9cbe/attachment-0001.html>


More information about the Tutor mailing list