472,143 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,143 software developers and data experts.

Re: py2exe bug with email.MIMEText


After some debugging, i found the solution is to :-

import email
import email.mime.text
import email.iterators
import email.generator
import email.utils

Marcus.CM wrote:
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

Anyone knows the fix for this?


Aug 1 '08 #1
0 865

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Mark Hahn | last post: by
3 posts views Thread by Alberto Vera | last post: by
9 posts views Thread by Ernesto | last post: by
20 posts views Thread by Chris Withers | last post: by
3 posts views Thread by Erik Johnson | last post: by
2 posts views Thread by Torsten Bronger | last post: by
reply views Thread by Marcus.CM | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.