Hi,

I've installed pyinstaller trunk and some problem are fixed but
running the executable I got another error when the program call a
method ".as_string()" of  module MIMEMultipart:

Traceback (most recent call last):
  File "<string>", line 93, in <module>
  File "<string>", line 71, in Send
  File "c:\Python25\pyinstaller\Email_Sender\build\pyi.win32\Email_Sender\outPYZ
1.pyz/email.message", line 128, in as_string
  File "c:\Python25\pyinstaller\Email_Sender\build\pyi.win32\Email_Sender\outPYZ
1.pyz/email", line 79, in __getattr__
  File "C:\Python25\pyinstaller\iu.py", line 443, in importHook
    raise ImportError, "No module named %s" % fqname
ImportError: No module named email.generator

Many thanks
Roberto Lorenzi




2009/2/24 Giovanni Bajo <[email protected]>:
>
> On 2/24/2009 1:29 PM, roby-L wrote:
>> Hi to all:
>>
>> After compiling my python script with pyinstaller 1.2 or 1.3, when I
>> run the executable file, I got a error message like this:
>> Traceback (most recent call last):
>>   File "<string>", line 18, in <module>
>>   File "C:\Python25\pyinstaller_1.3\iu.py", line 312, in importHook
>>     mod = _self_doimport(nm, ctx, fqname)
>>   File "C:\Python25\pyinstaller_1.3\iu.py", line 398, in doimport
>>     exec co in mod.__dict__
>>   File "c:\Python25\pyinstaller_1.3\Utenti\buildUtenti\out1.pyz/
>> Pannello_Mail",
>> line 6, in <module>
>>   File "C:\Python25\pyinstaller_1.3\iu.py", line 312, in importHook
>>     mod = _self_doimport(nm, ctx, fqname)
>>   File "C:\Python25\pyinstaller_1.3\iu.py", line 398, in doimport
>>     exec co in mod.__dict__
>>   File "c:\Python25\pyinstaller_1.3\Utenti\buildUtenti\out1.pyz/
>> email.mime.multi
>> part", line 9, in <module>
>>   File "C:\Python25\pyinstaller_1.3\iu.py", line 312, in importHook
>>     mod = _self_doimport(nm, ctx, fqname)
>>   File "C:\Python25\pyinstaller_1.3\iu.py", line 398, in doimport
>>     exec co in mod.__dict__
>>   File "c:\Python25\pyinstaller_1.3\Utenti\buildUtenti\out1.pyz/
>> email.mime.base"
>> , line 13, in <module>
>>
>> AttributeError: 'module' object has no attribute 'Message'
>>
>> and these are the module imported into the script:
>>
>> import smtplib
>> from email.mime.multipart import MIMEMultipart
>> from email.mime.base import MIMEBase
>> from email.mime.text import MIMEText
>> from email import Encoders
>>
>> How I can fit this problem (of course, the script runnings correct
>> when interpreted)?
>
> This is fixed in PyInstaller trunk. I suggest you to upgrade.
> --
> Giovanni Bajo
> Develer S.r.l.
> http://www.develer.com
>
> >
>

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

Reply via email to