PDA

View Full Version : email.MIMEText giving problem with py2exe


ashokd001
03-03-2009, 04:37 PM
Hi ,

i am using
from email.MIMEText import MIMEText

Only script is running fine.
But when i made exe by py2exe it is giving this below error.

Traceback (most recent call last):
File "Mymail.py", line 4, in <module>
File "email\__init__.pyc", line 79, in __getattr__
ImportError: No module named text


How to solve?

sidzanuff
05-14-2010, 09:03 AM
Hello,

i had similar problem and found out that changing from
from email import MIMEText
to
from email import *
helps ;)