Hi Chris , Ned and everyone else . I fixed the line 911 in py2app/build_app.py as recommended by Ned , then reinstalled py2app My printto100.app ( hello world app) does output the numbers to console, so it works fine
I however still cannot get the wxpython app to build correctly. I am trying it with a simple hello world styled app that pops up a Frame (source below). Running the built app with setup.p attached gives the same error as before : ImportError: '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload/wx/_core_.so' not found I am attaching the test source and the setup.py here . The app is 33M big and has the _core_s.so in the directory . So for some reason the app is looking for the _core_.so in the System folder instead of the app bundle location. ./Contents/Resources/lib/python2.5/lib-dynload/wx/_core_.so Thanks Hari ########## sayhello.py ########## #!/usr/bin/python import wx class MyFrame(wx.Frame): def __init__(self,*args,**kwds): kwds["size"] = (640,480) wx.Frame.__init__(self,*args,**kwds) self.Show() if __name__ == "__main__": ma = wx.PySimpleApp() f = MyFrame(None,-1,title="An App") ma.MainLoop() ############ setup.py ############ """ This is a setup.py script generated by py2applet Usage: python setup.py py2app """ from setuptools import setup APP = ['sayhello.py'] DATA_FILES = [] OPTIONS = {'argv_emulation': True, 'iconfile': './gzilla_ico_fin.icns'} setup( app=APP, data_files=DATA_FILES, options={'py2app': OPTIONS}, setup_requires=['py2app'], ) On Thu, Oct 8, 2009 at 3:40 PM, Christopher Barker <chris.bar...@noaa.gov> wrote: > Ned Deily wrote: >> >> Looks like it was caused by a one-line patch that was just added to >> py2app. Try reverting it by changing line 911 of >> py2app-0.4.2-py2.6.egg/py2app/build_app.py from: >> >> pydir = 'python%d.%d'%(info['version']) >> >> back to: >> >> pydir = 'python%d.%d'%(sys.version_info[:2]) > > yup -- that fixed it -- do you have SVN access to roll that back? > > Thanks, > > -CHB > > PS: the printo100 app works fine for me (output to the console), as does my > own app. > > > -- > Christopher Barker, Ph.D. > Oceanographer > > Emergency Response Division > NOAA/NOS/OR&R (206) 526-6959 voice > 7600 Sand Point Way NE (206) 526-6329 fax > Seattle, WA 98115 (206) 526-6317 main reception > > chris.bar...@noaa.gov > _______________________________________________ > Pythonmac-SIG maillist - pythonmac-...@python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig