i use the following imports on my code: import smtplib from email.MIMEText import MIMEText
On Wed, Dec 16, 2009 at 8:13 AM, Laurent <[email protected]>wrote: > Can't help a lot but two ideas: > If you use pickle module, and email.mime.text is a pickle d strucutre, > then pyinstaller have no way to know that it needed to import > email.mime.text > so be sure to add "import email.mime.text" at te top of your script, > so pyinstaller will add it to the dependacy. > (I had this sort of issue with pickle...) > > If not a pickle issue, try anyway the import email.mime.text on top of > your script, just in case. > > On 2 déc, 19:53, forgaibdi <[email protected]> wrote: > > I am using a program that sends emails. While I am runing it under the > > extension .py it works fine when I turn it into an .exe using the > > trunk version it gives me this error when i run the .exe : > > > > Traceback (most recent call last): > > File "<string>", line 2, in <module> > > File "mail\build\pyi.win32\mail\outPYZ1.pyz/email", line 79, in > > __getattr__ > > File "C:\windowz\newproject\trunk\iu.py", line 458, in importHook > > raise ImportError, "No module named %s" % fqname > > ImportError: No module named email.mime.text > > > > What can I do to solve this? > > -- > > You received this message because you are subscribed to the Google Groups > "PyInstaller" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<pyinstaller%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/pyinstaller?hl=en. > > > -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pyinstaller?hl=en.
