py2exe bug with email.MIMEText

M

Marcus.CM

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

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

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

# Example setup.py
from distutils.core import setup
import py2exe
setup(console=['testmime.py'])

Anyone knows the fix for this?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

About py2exe "bundle_files" setting? 9
Py2exe problem with pyqt+matplotlib 1
py2exe problem 1
Problem with smtplib and py2exe 3
py2exe 3
Py2exe and Module Error... 4
Py2exe issue 4
Tkinter vs. py2exe problem 5

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top