By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,771 Members | 1,685 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,771 IT Pros & Developers. It's quick & easy.

Re: py2exe bug with email.MIMEText

P: n/a

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
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?


Aug 1 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.