Re: [Pyobjc-dev] using objc.inject
Brought to you by:
ronaldoussoren
From: Ronald O. <ron...@ma...> - 2009-08-11 10:45:44
|
On 29 Jul, 2009, at 18:18, Daniel Ashbrook wrote: > Re: "does anyone use objc.inject" from a few months ago, I think I > would like to. I'm hoping to get at the internals of a program and > extract some hard-to-get-at information. However, trying the > InjectInterpreter example code doesn't seem to work, so any hints > would be appreciated. Doing: > > sudo python test.py 71755 > > (where 7155 is the pid of TextEdit) returns without comment, but > prints to the system log: > > TextEdit[71755]: InjectInterpreterPlugin has encountered a fatal > error, and will now terminate. > TextEdit[71755]: An uncaught exception was raised during execution of > the main script:^M^MSystemError: NULL result without error in > PyObject_Call^M^MThis may mean that an unexpected error has occurred, > or that you do not have all of the dependencies for this bundle. > [0x0-0x48d48d].com.apple.TextEdit[71755]: Traceback (most recent call > last): > [0x0-0x48d48d].com.apple.TextEdit[71755]: File "/tmp/ > InjectInterpreter/dist/InjectInterpreterPlugin.plugin/Contents/ > Resources/__boot__.py", line 23, in <module> > [0x0-0x48d48d].com.apple.TextEdit[71755]: > _run('InjectInterpreterPlugin.py') > [0x0-0x48d48d].com.apple.TextEdit[71755]: File "/tmp/ > InjectInterpreter/dist/InjectInterpreterPlugin.plugin/Contents/ > Resources/__boot__.py", line 20, in _run > [0x0-0x48d48d].com.apple.TextEdit[71755]: execfile(path, > globals(), globals()) > [0x0-0x48d48d].com.apple.TextEdit[71755]: File "/tmp/ > InjectInterpreter/dist/InjectInterpreterPlugin.plugin/Contents/ > Resources/InjectInterpreterPlugin.py", line 187, in <module> > [0x0-0x48d48d].com.apple.TextEdit[71755]: class > PyInterpreter(NSTextView): > [0x0-0x48d48d].com.apple.TextEdit[71755]: SystemError: NULL result > without error in PyObject_Call > > Any hints? Not really. Debugging objc.inject is a pain, especially because it is very lowlevel code and I haven't written the code myself. And anyway, I'll remove it before the next release. In theory it should be possible to take the relevant code and create a separate project for it. Ronald > > Thanks, > > > dan > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and > focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |