py2exe bug with email.MIMEText

Marcus.CM marcus at
Fri Aug 1 08:31:17 CEST 2008

There is a bug with py2exe when (at least under windows) when importing 

# example
import email
msg = email.MIMEText.MIMEText("dsafdafdasfA")
print "ok"

1. Save the text above and setup as
2. Run it and u can see "ok"
3. Create and run :  python py2exe
4. Run the testmime.exe and u will get error "Import error : No module 
name text"

# Example
from distutils.core import setup
import py2exe

Anyone knows the fix for this?

More information about the Python-list mailing list