Skip to content
This repository

error while searching code (via '/' key) during debug session #13

jtriley opened this Issue · 5 comments

2 participants

Justin Riley Yu-Jie Lin
Justin Riley

Traceback (most recent call last):
File "/home/jtriley/py-workspace/starcluster/starcluster/", line 1316, in run_plugin
File "/home/jtriley/py-workspace/starcluster/starcluster/plugins/", line 152, in run
File "/home/jtriley/py-workspace/starcluster/starcluster/plugins/", line 119, in setup_tmuxcc
if node.alias != client.alias:
File "/home/jtriley/py-workspace/starcluster/starcluster/plugins/", line 119, in setup_tmuxcc
if node.alias != client.alias:
File "/usr/lib/python2.6/", line 46, in trace_dispatch
return self.dispatch_line(frame)
File "/usr/lib/python2.6/", line 64, in dispatch_line
File "/home/jtriley/py-workspace/pudb/pudb/", line 233, in user_line
File "/home/jtriley/py-workspace/pudb/pudb/", line 202, in interaction
self.ui.call_with_ui(self.ui.interaction, exc_tuple)
File "/home/jtriley/py-workspace/pudb/pudb/", line 1177, in call_with_ui
return f(*args, **kwargs)
File "/home/jtriley/py-workspace/pudb/pudb/", line 1286, in interaction
File "/home/jtriley/py-workspace/pudb/pudb/", line 1248, in event_loop
toplevel.keypress(self.size, k)
File "/home/jtriley/py-workspace/pudb/pudb/", line 82, in keypress
result = self._w.keypress(size, key)
File "/home/jtriley/.virtualenvs/starcluster/lib/python2.6/site-packages/urwid/", line 616, in keypress
return self.body.keypress( (maxcol, remaining), key )
File "/home/jtriley/.virtualenvs/starcluster/lib/python2.6/site-packages/urwid/", line 1340, in keypress
key = w.keypress( (mc,)+size[1:], key )
File "/home/jtriley/.virtualenvs/starcluster/lib/python2.6/site-packages/urwid/", line 902, in keypress
key = self.focus_item.keypress( tsize, key )
File "/home/jtriley/py-workspace/pudb/pudb/", line 208, in keypress
self.ui.search_AttrMap.set_attr("search box")
AttributeError: 'AttrMap' object has no attribute 'set_attr'

Justin Riley

seems to happen anytime I search even if I search immediately after opening PuDB...

Yu-Jie Lin

I can confirm this and I got this from bisecting (@af67e9c) :

af67e9ca2ba7e1896ee5055234459823f6dd7cb7 is the first bad commit
commit af67e9ca2ba7e1896ee5055234459823f6dd7cb7
Author: Aaron Meurer <>
Date:   Wed Jul 27 16:28:53 2011 -0600

    Replace urwid.AttrWrap with urwid.AttrMap

    According to the urwid docs, AttrWrap is deprecated, and AttrMap should
    be used instead.  This seems to still work the same everywhere, though I
    didn't check it extensively.

:040000 040000 abd3ff53c6d14553d55bab1f15080d8d7b476963 f41c454f600ae149fa567d60
704d4166e916589b M      pudb
bisect run success

Also fix in livibetter@36392c7, please pull it.

Justin Riley

You beat me to it, I was just about to fork and pull request :P Thanks!!

Justin Riley

I just noticed there's no pull request. Would you mind submitting one?

Yu-Jie Lin

Err... I knew pull request will create a new issue, trying to avoid that. It's kind of duplicating issue since here is the one.

Justin Riley jtriley closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.