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 <laurent.dufrec...@gmail.com>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 <senhor.abran...@gmail.com> 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 pyinstal...@googlegroups.com.
> To unsubscribe from this group, send email to
> pyinstaller+unsubscr...@googlegroups.com<pyinstaller%2bunsubscr...@googlegroups.com>
> .
> 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 pyinstal...@googlegroups.com.
To unsubscribe from this group, send email to 
pyinstaller+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pyinstaller?hl=en.


Reply via email to