Re: [Pyobjc-dev] No Info.plist?
Brought to you by:
ronaldoussoren
From: Ronald O. <ron...@ma...> - 2008-03-23 07:56:26
|
On 22 Mar, 2008, at 21:41, Daniel Andersson wrote: > Hi people > > I'm using Leopard and wanted to give Python + PyObjC another go. > > Have built a small interface and saved it as a .nib-file. Now when I > try to run my main.py, I get: > $ python main.py > 2008-03-22 21:38:35.423 Python[460:613] No Info.plist file in > application bundle or no NSPrincipalClass in the Info.plist file, > exiting > > The examples found on the PyObjC website didn't work this way either. > My main.py DOES work when I run it through Xcode. Since I can't say > I'm a fan of Xcode, I'd like to be able to run it in iTerm (or through > TextMate). Is this possible? > > I've googled and googled, but haven't found any tutorials nor howtos > or anything like it covering PyObjC 2.0, so I'm here begging for > help :) If you use NIB's you must run your application as an .app bundle. There are two ways to build such a bundle: (1) use an Xcode project to build the project and (2) use py2app. The latter is used by all PyObjC examples, you can use "python setup.py py2app" to build the .app bundle. Ronald |