That makes sense. Can I generalize this way? Include by name, in the buildapp() call, everything in my /usr/local/lib/wxPython-xxxxx/lib directory that is NOT a link ('l...' file), that is or might be relevant to the app. I tried that. The app still doesn't launch, so something else must be missing -- though now at least I'm not getting the Weird Alias errmsg. Any suggestion where/what it might be?
I've looked at py2app, and it looks promising. But there's zero documentation, and I just don't know enough to make it work. I'll keep trying. But if anyone can point me to any instructions, I'll be a lot happier.
Sorry, I'm afraid a lot of my questions are awfully simple OS-interface ones, and Mac-specific at that. Maybe I should move over to the Mac list.
Charles Hartman
==== quoted ============
I had a similar problem, which I solved by making sure I specified my libs
correctly. Here's the code I currently use:
wxPythonLib = '/usr/local/lib/wxPython-2.5.2.8/lib/'
...
buildapp (
name = 'Transana.app',
mainprogram = 'Transana.py',
semi_standalone = 1,
libs = [
# wxPythonLib + 'libwx_macd_core-2.5.1.dylib',
wxPythonLib + 'libwx_macd-2.5.2.dylib',
# wxPythonLib + 'libwx_macd_adv-2.5.1.dylib',
# wxPythonLib + 'libwx_macd_gizmos-2.5.1.dylib',
wxPythonLib + 'libwx_macd_gizmos-2.5.2.dylib',
# wxPythonLib + 'libwx_macd_gl-2.5.1.dylib',
# wxPythonLib + 'libwx_macd_html-2.5.1.dylib',
# wxPythonLib + 'libwx_macd_ogl-2.5.1.dylib',
# wxPythonLib + 'libwx_macd_stc-2.5.1.dylib',
wxPythonLib + 'libwx_macd_stc-2.5.2.dylib',
# wxPythonLib + 'libwx_macd_xrc-2.5.1.dylib',
# wxPythonLib + 'libwx_macd-2.5.1.rsrc',
wxPythonLib + 'libwx_macd-2.5.2.rsrc'
# wxPythonLib + 'libwx_base_carbond-2.5.1.dylib',
# wxPythonLib + 'libwx_base_carbond_net-2.5.1.dylib',
# wxPythonLib + 'libwx_base_carbond_xml-2.5.1.dylib',
],
includePackages = ['encodings'],
iconfile = 'images/Transana.icns',
files = allfiles,
)
As you can see, I use wxPython 2.5.2.8 rather than 2.5.2.7, and have a
number of libraries commented out as unnecessary for my build.
Hope this helps.
David