Email in 2.6.4

Jean-Michel Pichavant jeanmichel at sequans.com
Mon May 24 09:19:33 EDT 2010


dirknbr wrote:
> I am trying to run
>
> from email.mime.text import MIMEText
>
> but I get an
>
> ImportError: No module named mime.text
>
> Since email was pre-installed how do I fix this?
>
> Dirk
>   
Did you make sure you didn't hide the standard email module by one of 
your own.
Check
print email.__file__
/usr/lib/python2.5/email/__init__.pyc

If the path is correct, you may want to look in the code, or if anything 
has changed in 2.6, I guess it is documented somewhere.

JM



More information about the Python-list mailing list