Ciao, ho scritto una gui in wxpython per ffmpeg2theora.exe, adesso però vorrei includere il tutto in un unico file exe (ffmpeg2theora.exe + main.py) con pyinstaller. Ho trovato un esempio simile,
http://groups.google.com/group/pyinstaller/browse_thread/thread/2c39188973df7184 cosi ho modificato il file spec in questo modo: # -*- mode: python -*- a = Analysis([os.path.join(HOMEPATH,'support\\_mountzlib.py'), os.path.join(HOMEPATH,'support\\useUnicode.py'), 'main.py'], pathex=['C:\\Users\\io\\Desktop\\video_to_ogv']) pyz = PYZ(a.pure) a.datas += [('DATA','C:\\Users\\io\\Desktop\\video_to_ogv\\codec\ \ffmpeg2theora.exe', 'ONEFILE.exe')] exe = EXE( pyz, a.scripts, a.binaries, a.zipfiles, a.datas, name=os.path.join('dist', 'ONEFILE.exe'), debug=False, strip=False, upx=True, console=False , icon='C:\\Users\\io\\Desktop\\video_to_ogv\ \icone\\logo.ico') app = BUNDLE(exe, name=os.path.join('dist', 'ONEFILE.exe.app')) il file ffmpeg2theora.exe è incluso ora in ONEFILE.exe , l'ho capito dalle dimensioni di ONEFILE.exe con e senza a.datas += [('DATA','C:\\Users\\io\\Desktop\\video_to_ogv\\codec\ \ffmpeg2theora.exe', 'ONEFILE.exe')] ma quando vado a richiamare dalla gui il comando subprocess ffmpeg2theora.exe ho i seguenti errori: Traceback (most recent call last): File "<string>", line 262, in OnStart File "<string>", line 378, in startconvert File "C:\Users\io\Desktop\video_to_ogv\build\pyi.win32\ONEFILE \outPYZ1.pyz/subprocess", line 672, in __init__ File "C:\Users\io\Desktop\video_to_ogv\build\pyi.win32\ONEFILE \outPYZ1.pyz/subprocess", line 774, in _get_handles WindowsError: [Error 6] Handle non valido Potete aiutarmi?, ringranzio Giovanni Bajo per pyinstaller. Dam -- 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.
