> Every so many months I grab the newest version of pyinstaller from svn
> and run it on an application I'd like to make portable to see if it
> "just works". So far it hasn't, and there are usually a bunch of error
...
> The application is the Leo Editor
> http://webpages.charter.net/edreamleo/front.html
Okay, one month later and I'm taking another run at this, and have
made it a little farther through the swamp. I've svn up'd to current
pyinstaller.
my build command:
{{{
pyinstaller --out=..\_builds --onedir --noupx ^
--icon=b:\appsleo-editor\leo\Icons\LeoApp.ico ^
--log-level=DEBUG ^
b:\apps\leo-editor\launchLeo.py
}}}
And then when I run the output exe:
{{{
B:\code\_builds\dist>launchLeo\launchLeo.exe --debug
_MEIPASS2 is NULL
Extracting binaries
Executing self as child with Setting up to run child
Creating child process
Waiting for child process to finish...
_MEIPASS2 is B:\code\_builds\dist\launchLeo\
Already in the child - running!
manifestpath: B:\code\_builds\dist\launchLeo\launchLeo.exe.manifest
Activation context created
Activation context activated
B:\code\_builds\dist\launchLeo\python27.dll
Manipulating evironment
PYTHONPATH=B:/code/_builds/dist/launchLeo
importing modules from CArchive
extracted iu
extracted struct
extracted archive
Installing import hooks
outPYZ1.pyz
Running scripts
scanOptions: *** debug mode on
Traceback (most recent call last):
File "<string>", line 8, in <module>
File "..\_builds\build\pyi.win32\launchLeo\outPYZ1.pyz
\leo.core.runLeo", line
120, in run
File "..\_builds\build\pyi.win32\launchLeo\outPYZ1.pyz
\leo.core.runLeo", line
474, in doPostPluginsInit
File "..\_builds\build\pyi.win32\launchLeo\outPYZ1.pyz
\leo.core.runLeo", line
526, in createFrame
File "..\_builds\build\pyi.win32\launchLeo\outPYZ1.pyz
\leo.core.leoGlobals", l
ine 2262, in openWithFileName
File "..\_builds\build\pyi.win32\launchLeo\outPYZ1.pyz
\leo.core.leoGlobals", l
ine 2408, in openWrapperLeoFile
File "..\_builds\build\pyi.win32\launchLeo\outPYZ1.pyz
\leo.core.leoApp", line
623, in newLeoCommanderAndFrame
File "..\_builds\build\pyi.win32\launchLeo\outPYZ1.pyz
\leo.plugins.qtGui", lin
e 4043, in finishCreate
File "..\_builds\build\pyi.win32\launchLeo\outPYZ1.pyz
\leo.plugins.qtGui", lin
e 7200, in createFrame
File "..\_builds\build\pyi.win32\launchLeo\outPYZ1.pyz
\leo.plugins.qtGui", lin
e 2047, in construct
AssertionError
RC: -1 from launchLeo
OK.
Deactivating activation context
Releasing activation context
Done
Back to parent...
Freeing status for B:\code\_builds\dist\launchLeo\launchLeo.exe
}}}
And the corresponding code block in leo.plugins.gqtGui
(http://bazaar.launchpad.net/~leo-editor-team/leo-editor/trunk/view/
head:/leo/plugins/qtGui.py):
{{{
ui_description_file = g.app.loadDir + "/../plugins/" +
ui_file_name
# g.pr('DynamicWindw.__init__,ui_description_file)
assert g.os_path_exists(ui_description_file)
}}}
can you tell from this if there is something that needs to be changed
in the Leo code to make this work, or something added to the
pyinstaller .spec file?
thanks,
-matt
--
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.