[Pyobjc-dev] Three issues with PyObjC under Snow Leopard
Brought to you by:
ronaldoussoren
From: David E. <dav...@gm...> - 2009-10-05 03:59:34
|
(1) `http://pyobjc.sourceforge.net/downloads.html tells me that I can update my pyobjc (currently the one that came with the Snow Leopard install DVD) to 2.2b1 with the command line "easy_install pyobjc=2.2b1". But when I try it I get the error message "error: Not a URL, existing file, or requirement spec: 'pyobjc=2.2b1'". Are the update instructions misleading or do I have a misconfiguration somewhere? (2) I have some apps I wrote using pyobjc under Leopard that broke when I moved to Snow Leopard. The simplest is the one in http://www.ics.uci.edu/~eppstein/LaTeX_Unicodifier.dmg.gz (that's the app bundle but because it's Python the source is inside, and is quite short). I don't want to ask anyone to debug my code for me, but I'm at a bit of a loss: when I run it (either the app as I built it for 10.5, or the same xcode project recompiled for a 10.6 intel target) I get a mysterious message "10/4/09 8:28:13 PM LaTeX Unicodifier[13914] <type 'exceptions.TypeError'>: Need 0 arguments, got 1" on the console and it doesn't work: the UI appears, cmd-Q quits, but the actual app that's supposed to be running the UI isn't there. I imagine that somewhere there's a method that needs a signature and doesn't have one, or something simple like that, but I can't seem to figure out how to get xcode to show me who's raising the uncaught exception... (3) In an attempt to get around (2), I tried making a setup.py following the example of http://pyobjc.sourceforge.net/examples/pyobjc-framework-Cocoa/AppKit/CocoaBindings/CurrencyConvBinding/source--setup.py.html in order to create an app using py2app instead of xcode. But this, too, fails, with an error message ... creating build/bdist.macosx-10.6-universal/python2.6-standalone/app/lib-dynload creating build/bdist.macosx-10.6-universal/python2.6-standalone/app/Frameworks error: Multiple targets not currently supported Is there some parameter I need to set to get py2app to work or is this also irredeemably broken? |