bundlebuilder (Mac) question

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

···

Charles Hartman wrote:

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 --

check out the console, or launch from the command line, and you might get a helpful error message.

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.

yup. the Pythonmac-sig list is the one to take this to. Py2app has just been released, and the author wants bug reports. He expects it to work with wxPython, so if it doesn't he'll want to know, and be able to help. Ask on the macpython list, and you'll probably get what you need.

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer
                                         
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov