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