Eddie S wrote:
> I was just trying to make a simple cgi email form when I encountered
> this error.
> 
> Traceback (most recent call last):
>   File "/Users/eddie/Sites/python/email.py", line 4, in ?
>     import smtplib
>   File 
> "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/smtplib.py",
> line 49, in ?
>     from email.base64MIME import encode as encode_base64
> ImportError: No module named base64MIME
> 
> It says it can not find the module base64MIME. I also tried importing
> the module from the command line and that worked fine.

The problem is that your email.py module is shadowing the library email module. 
Python is looking for base64MIME in your module. Rename your email.py to 
something else and it should work.

Kent

-- 
http://www.kentsjohnson.com

_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to