[Tutor] smtplib help required
malaclypse2 at gmail.com
Sat Apr 24 01:39:37 CEST 2010
On Fri, Apr 23, 2010 at 6:41 PM, James Chapman <james at 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.
> 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.
More information about the Tutor