I didn't realize that one-dir mode is the default and I see that this is not yet supported for mac though coming soon...
Switching to one-file mode makes it work. On Friday, June 3, 2011 10:46:47 PM UTC-4, Jeffrey O'Neill wrote: > > I'm using: > -- Snow Leopard > -- Python 2.7 (32 bit version from python.org) > -- PyInstaller 1.5 > > My python script is test.py and contains only > print "Hello World!" > > I do the following: > python Configure.py > python Makespec.py ~/OpenSTV/test.py > python Build.py test/test.spec > ./test/dist/test/test > and I get the expected result: > Hello World! > > Now I try to make an app using this page ( > http://www.pyinstaller.org/wiki/MacOsCompatibility) by adding the > following lines to the end of my spec file: > import sys > if sys.platform.startswith("darwin"): > app = BUNDLE(exe, > name=os.path.join('dist', 'test.app'), > version="1.0") > I then do this: > python Build.py test/test.spec > ./dist/test.app/Contents/MacOS/test > and the result is: > Error loading Python lib './dist/test.app/Contents/MacOS/.Python': > dlopen(./dist/test.app/Contents/MacOS/.Python, 10): image not found > > Can you help me make a .app file? > -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To view this discussion on the web visit https://groups.google.com/d/msg/pyinstaller/-/QnZNMTlKTk9VbVlK. 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.
