Re: [Pyobjc-dev] Trying to build WebServicesTool app OS X 10.2.2 (seed)
Brought to you by:
ronaldoussoren
From: <bb...@ma...> - 2002-10-31 05:06:30
|
On Wednesday, October 30, 2002, at 11:38 PM, Stephen Steiner wrote: >> Or set the PythonBinPath user default to point to the python >> interpreter binary that you want to use [that has pyobjc installed >> within its site-packages]. > > Where would I find the 'PythonBinPath' user default (doc?)? It is mentioned in the bin-python-main.m file; it defaults to /usr/bin/python. As long as you can do the following, it should "just work" without setting that default. [bumbox:~] bbum% /usr/bin/python Python 2.2 (#1, 07/14/02, 23:25:09) [GCC Apple cpp-precomp 6.14] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> from Foundation import * >>> x = NSMutableArray.array() >>> x () >>> > > When I run from within PB I get: > > [Switching to process 2631 thread 0xb03] > warning: ppc_frame_chain_valid: stack pointer from 0xbffffb1c to > 0x1000 grows upward; assuming invalid Because of the way the control is transferred to the python interpreter, you can't directly run the application under GDB. This limitation will go away once Apple ships a complete build of Python [the left out the ability to embed the interpreter into a binary and, as such, we have to execve() to pass control to the interpreter... this breaks gdb in the traditional sense]. See the mailing list archive if you want to run with gdb. Try just running the app from within PB -- not running it in the debugger. b.bum |