Is there a possible regression in the latest pyinstaller/develop branch? I keep getting _MEIPASS2 being set to a single (random) character, and then it can't dlopen(Python), because the path to it is wrong.
OSX, latest version of pyinstaller/develop as of tonight. Log is attached below. 4/9/13 10:15:09 PM [0x0-0xff17f08].SampleMacApp[49215] LOADER: executable is /Users/macapple/Dropbox/CurveExpertPro/src/stuff/MacApp/pyi/dist/SampleMacApp.app/Contents/MacOS/SampleMacApp 4/9/13 10:15:09 PM [0x0-0xff17f08].SampleMacApp[49215] LOADER: homepath is /Users/macapple/Dropbox/CurveExpertPro/src/stuff/MacApp/pyi/dist/SampleMacApp.app/Contents/MacOS 4/9/13 10:15:09 PM [0x0-0xff17f08].SampleMacApp[49215] LOADER: _MEIPASS2 is a 4/9/13 10:15:09 PM [0x0-0xff17f08].SampleMacApp[49215] LOADER: archivename is /Users/macapple/Dropbox/CurveExpertPro/src/stuff/MacApp/pyi/dist/SampleMacApp.app/Contents/MacOS/SampleMacApp 4/9/13 10:15:09 PM [0x0-0xff17f08].SampleMacApp[49215] LOADER: Already in the child - running user's code. 4/9/13 10:15:09 PM [0x0-0xff17f08].SampleMacApp[49215] LOADER: Python library: a/Python 4/9/13 10:15:09 PM [0x0-0xff17f08].SampleMacApp[49215] Error loading Python lib 'a/Python': dlopen(a/Python, 10): image not found 4/9/13 10:15:09 PM [0x0-0xff17f08].SampleMacApp[49215] LOADER: executable is /Users/macapple/Dropbox/CurveExpertPro/src/stuff/MacApp/pyi/dist/SampleMacApp.app/Contents/MacOS/SampleMacApp 4/9/13 10:15:09 PM [0x0-0xff17f08].SampleMacApp[49215] LOADER: homepath is /Users/macapple/Dropbox/CurveExpertPro/src/stuff/MacApp/pyi/dist/SampleMacApp.app/Contents/MacOS 4/9/13 10:15:09 PM [0x0-0xff17f08].SampleMacApp[49215] LOADER: _MEIPASS2 is NULL 4/9/13 10:15:09 PM [0x0-0xff17f08].SampleMacApp[49215] LOADER: archivename is /Users/macapple/Dropbox/CurveExpertPro/src/stuff/MacApp/pyi/dist/SampleMacApp.app/Contents/MacOS/SampleMacApp 4/9/13 10:15:09 PM [0x0-0xff17f08].SampleMacApp[49215] LOADER: Extracting binaries 4/9/13 10:15:09 PM [0x0-0xff17f08].SampleMacApp[49215] LOADER: Executing self as child 4/9/13 10:15:09 PM [0x0-0xff17f08].SampleMacApp[49215] LOADER: Back to parent 4/9/13 10:15:09 PM [0x0-0xff17f08].SampleMacApp[49215] LOADER: Doing cleanup 4/9/13 10:15:09 PM [0x0-0xff17f08].SampleMacApp[49215] LOADER: Freeing archive status for /Users/macapple/Dropbox/CurveExpertPro/src/stuff/MacApp/pyi/dist/SampleMacApp.app/Contents/MacOS/SampleMacApp 4/9/13 10:15:09 PM com.apple.launchd.peruser.501[103] ([0x0-0xff17f08].SampleMacApp[49215]) Exited with exit code: 255 On Mon, Apr 8, 2013 at 8:31 AM, Daniel Hyams <[email protected]> wrote: > > > > On Mon, Apr 8, 2013 at 4:21 AM, Martin Zibricky <[email protected]>wrote: > >> Daniel Hyams píše v Ne 07. 04. 2013 v 20:15 -0400: >> > I've added the ability for the bootloader to watch for OpenDocument >> > Apple events; this lets the bootloader intercept the events and add >> > the relevant incoming files to sys.argv. This lets apps that are run >> > via a double-click of an associated data file function correctly. The >> > only files modified are bootloader/common/main.c and a small change to >> > "wscript". >> >> > Anyway, I'd like to issue a pull request, but I'm not sure which >> > branch to issue against. The version of pyinstaller that I modified >> > to add the patch to is matysek's "develop" branch. So, that one >> > would be the easiest, but I realize that if I issue against that, >> > matysek would have to pull it, and then it might eventually make it >> > into the regular pyinstaller develop branch. Note that the main.c >> > source code between matysek/pyinstaller and pyinstaller/pyinstaller >> > looks very different. >> >> It should not look much different. I try to regularly merge my changes >> to pyinstaller develop branch. The following merge request are my only >> changes that are missing in pyinstaller develop branch: >> >> https://github.com/pyinstaller/pyinstaller/pull/48 >> >> > You're right; they aren't much different...I was incorrectly basing my > comments on your branch as it existed back in February...I should have > checked back up on it before posting. I'll issue a pull request in > pyinstaller/develop when I get a chance. > > As for a description and docs, I'll put that with the pull request so that > everything will be in one place. Basically, it's a reproduction of the > argv_emulation feature in py2app. > > -- > Daniel Hyams > [email protected] > -- Daniel Hyams [email protected] -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pyinstaller?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
