pyinstaller
Arlie
arlie.c at gmail.com
Sun Jun 21 20:48:29 EDT 2009
Newbie here using Python 2.6.2 on MS WinXP Pro SP3. I'm trying create
an frozen exec and was able to generate and exe file.
python D:\pyinstaller-1.3\Makespec.py -F myprog.py
python D:\pyinstaller-1.3\Build.py myprog.spec --paths=D:
\pyinstaller-1.3;D:\PROJECTS\pyproject
but when I ran "myprog.exe" i get this:
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "D:\pyinstaller-1.3\iu.py", line 312, in importHook
mod = _self_doimport(nm, ctx, fqname)
File "D:\pyinstaller-1.3\iu.py", line 398, in doimport
exec co in mod.__dict__
File "D:\PROJECTS\python.paging.system.client
\buildpaging_system_client\out1.p
yz/MySQLdb", line 19, in <module>
File "D:\pyinstaller-1.3\iu.py", line 312, in importHook
mod = _self_doimport(nm, ctx, fqname)
File "D:\pyinstaller-1.3\iu.py", line 382, in doimport
mod = director.getmod(nm)
File "D:\pyinstaller-1.3\iu.py", line 215, in getmod
mod = owner.getmod(nm)
File "D:\pyinstaller-1.3\iu.py", line 77, in getmod
mod = imp.load_module(nm, fp, attempt, (ext, mode, typ))
ImportError: _mysql: init failed
~~~
I have to source files namely:
myprog.py
mp3.py
This is the content of spec file:
a = Analysis([os.path.join(HOMEPATH,'support\\_mountzlib.py'),
os.path.join(HOMEPATH,'support\\useUnicode.py'), 'myprog.py'],
pathex=['D:\\PROJECTS\\pyproject'])
pyz = PYZ(a.pure)
exe = EXE( pyz,
a.scripts,
a.binaries,
name='myprog.exe',
debug=False,
strip=False,
upx=False,
console=True )
Please help.
More information about the Python-list
mailing list