winpdb with mod_wsgi, TurboGears

36 views
Skip to first unread message

Kent

unread,
Apr 22, 2011, 12:19:51 PM4/22/11
to Winpdb
Something happens (I saw another post correlating peak rules) which
causes line rpdb2.py 6462:

self.m_code_context = self.m_core.m_code_contexts[self.m_frame.f_code]

to raise a KeyError trying to get code.

This may be just a symptom of another problem that causes this state,
but do you have any idea what might be causing this?


[Fri Apr 22 12:05:46 2011] [error] kb exception encode: Traceback
(most recent call last):
[Fri Apr 22 12:05:46 2011] [error] File "/home/rarch/tg2env/lib/
python2.6/site-packages/TurboJson-1.2.1.1-py2.6.egg/turbojson/
jsonsupport.py", line 47, in render
[Fri Apr 22 12:05:46 2011] [error] output =
self.encoder.encode(info)
[Fri Apr 22 12:05:46 2011] [error] File "/home/rarch/tg2env/lib/
python2.6/site-packages/simplejson-2.1.1-py2.6-linux-x86_64.egg/
simplejson/encoder.py", line 214, in encode
[Fri Apr 22 12:05:46 2011] [error] chunks = self.iterencode(o,
_one_shot=True)
[Fri Apr 22 12:05:46 2011] [error] File "/home/rarch/tg2env/lib/
python2.6/site-packages/simplejson-2.1.1-py2.6-linux-x86_64.egg/
simplejson/encoder.py", line 282, in iterencode
[Fri Apr 22 12:05:46 2011] [error] return _iterencode(o, 0)
[Fri Apr 22 12:05:46 2011] [error] File "/home/rarch/tg2env/lib/
python2.6/site-packages/TurboJson-1.2.1.1-py2.6.egg/turbojson/
jsonify.py", line 157, in default
[Fri Apr 22 12:05:46 2011] [error] return jsonify(obj)
[Fri Apr 22 12:05:46 2011] [error] File "/home/rarch/tg2env/lib/
python2.6/site-packages/TurboJson-1.2.1.1-py2.6.egg/turbojson/
jsonify.py", line 18, in jsonify
[Fri Apr 22 12:05:46 2011] [error] @abstract()
[Fri Apr 22 12:05:46 2011] [error] File "<peak.util.decorators.wrap
wrapping peak.rules.core._regenerate at 0x2AB92C03C668>", line 14, in
_regenerate
[Fri Apr 22 12:05:46 2011] [error] return __func(self)
[Fri Apr 22 12:05:46 2011] [error] File "/home/rarch/tg2env/lib/
python2.6/site-packages/PEAK_Rules-0.5a1.dev_r2582-py2.6.egg/peak/
rules/core.py", line 392, in _regenerate
[Fri Apr 22 12:05:46 2011] [error] func.func_code =
self.engine._generate_code()
[Fri Apr 22 12:05:46 2011] [error] File "/home/rarch/tg2env/lib/
python2.6/site-packages/PEAK_Rules-0.5a1.dev_r2582-py2.6.egg/peak/
rules/predicates.py", line 362, in _generate_code
[Fri Apr 22 12:05:46 2011] [error] return
smig.generate(self.build_root(memo)).func_code
[Fri Apr 22 12:05:46 2011] [error] File "/home/rarch/tg2env/lib/
python2.6/site-packages/PEAK_Rules-0.5a1.dev_r2582-py2.6.egg/peak/
rules/predicates.py", line 383, in build_root
[Fri Apr 22 12:05:46 2011] [error]
to_bits([len(self.signatures)])-1, frozenset(self.all_exprs), memo
[Fri Apr 22 12:05:46 2011] [error] File "<peak.util.decorators.wrap
wrapping peak.rules.indexing.build at 0x2AB92CB13488>", line 14, in
build
[Fri Apr 22 12:05:46 2011] [error] return __func(self, cases,
exprs, memo)
[Fri Apr 22 12:05:46 2011] [error] File "/home/rarch/tg2env/lib/
python2.6/site-packages/PEAK_Rules-0.5a1.dev_r2582-py2.6.egg/peak/
rules/indexing.py", line 147, in build
[Fri Apr 22 12:05:46 2011] [error] print "kb exception build_node:
%s" % traceback.format_exc()
[Fri Apr 22 12:05:46 2011] [error] File "/usr/local/lib/python2.6/
traceback.py", line 235, in format_exc
[Fri Apr 22 12:05:46 2011] [error] etype, value, tb =
sys.exc_info()
[Fri Apr 22 12:05:46 2011] [error] File "/home/rarch/tg2env/lib/
python2.6/site-packages/rpdb2.py", line 13533, in __exc_info
[Fri Apr 22 12:05:46 2011] [error] f =
__find_eval_exec_frame_in_stack()
[Fri Apr 22 12:05:46 2011] [error] File "/home/rarch/tg2env/lib/
python2.6/site-packages/rpdb2.py", line 13528, in
__find_eval_exec_frame_in_stack
[Fri Apr 22 12:05:46 2011] [error] return None
[Fri Apr 22 12:05:46 2011] [error] File "/home/rarch/tg2env/lib/
python2.6/site-packages/rpdb2.py", line 6462, in profile
[Fri Apr 22 12:05:46 2011] [error] self.m_code_context =
self.m_core.m_code_contexts[self.m_frame.f_code]
[Fri Apr 22 12:05:46 2011] [error] KeyError: <code object __exc_info
at 0x2ab930bae378, file "/home/rarch/tg2env/lib/python2.6/site-
packages/rpdb2.py", line 13532>

Nir Aides

unread,
Apr 28, 2011, 8:53:05 AM4/28/11
to win...@googlegroups.com
I think this crash happens since TurboGears generates code on the fly with Bytecode Assembler:

You can submit a bug.

Nir


--
You received this message because you are subscribed to the Google Groups "Winpdb" group.
To post to this group, send email to win...@googlegroups.com.
To unsubscribe from this group, send email to winpdb+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/winpdb?hl=en.


Reply all
Reply to author
Forward
0 new messages