[Python-modules-team] Bug#574737: AssertionError: Listbox contents too long! - reportbug urwid UI

Sandro Tosi morph at debian.org
Sat Mar 20 17:00:58 UTC 2010


Package: python-urwid
Version: 0.9.9.1-1
Severity: minor

Hello,
when running this command

$ reportbug --debug -O --ui=urwid reportbug 

(reportbug v4.11) in the first screen, the one showing the presubj file,
if PagDown is pressed when "Ok" button is selected I got this traceback:

Traceback (most recent call last):
  File "/usr/bin/reportbug", line 2050, in <module>
    main()
  File "/usr/bin/reportbug", line 1014, in main
    return iface.user_interface()
  File "/usr/bin/reportbug", line 1719, in user_interface
    ui.display_report(open(presubj).read()+'\n')
  File "/usr/lib/pymodules/python2.5/reportbug/ui/urwid_ui.py", line 322, in long_message
    box.main(ui)
  File "/usr/lib/pymodules/python2.5/reportbug/ui/urwid_ui.py", line 203, in main
    return self.ui.run_wrapper(self.run)
  File "/usr/lib/pymodules/python2.5/urwid/raw_display.py", line 234, in run_wrapper
    return fn()
  File "/usr/lib/pymodules/python2.5/reportbug/ui/urwid_ui.py", line 154, in run
    canvas = self.view.render( size, focus=True )
  File "/usr/lib/pymodules/python2.5/urwid/widget.py", line 135, in cached_render
    canv = fn(self, size, focus=focus)
  File "/usr/lib/pymodules/python2.5/urwid/decoration.py", line 202, in render
    canv = self._original_widget.render(size, focus=focus)
  File "/usr/lib/pymodules/python2.5/urwid/widget.py", line 135, in cached_render
    canv = fn(self, size, focus=focus)
  File "/usr/lib/pymodules/python2.5/urwid/decoration.py", line 719, in render
    canv = self._original_widget.render((maxcol,maxrow-top-bottom),focus)
  File "/usr/lib/pymodules/python2.5/urwid/widget.py", line 135, in cached_render
    canv = fn(self, size, focus=focus)
  File "/usr/lib/pymodules/python2.5/urwid/decoration.py", line 528, in render
    canv = self._original_widget.render((maxcol,)+size[1:], focus)
  File "/usr/lib/pymodules/python2.5/urwid/widget.py", line 135, in cached_render
    canv = fn(self, size, focus=focus)
  File "/usr/lib/pymodules/python2.5/urwid/container.py", line 569, in render
    focus and self.focus_part == 'body')
  File "/usr/lib/pymodules/python2.5/urwid/widget.py", line 135, in cached_render
    canv = fn(self, size, focus=focus)
  File "/usr/lib/pymodules/python2.5/urwid/container.py", line 1173, in render
    focus = focus and self.focus_col == i)
  File "/usr/lib/pymodules/python2.5/urwid/widget.py", line 135, in cached_render
    canv = fn(self, size, focus=focus)
  File "/usr/lib/pymodules/python2.5/urwid/container.py", line 569, in render
    focus and self.focus_part == 'body')
  File "/usr/lib/pymodules/python2.5/urwid/widget.py", line 135, in cached_render
    canv = fn(self, size, focus=focus)
  File "/usr/lib/pymodules/python2.5/urwid/decoration.py", line 202, in render
    canv = self._original_widget.render(size, focus=focus)
  File "/usr/lib/pymodules/python2.5/urwid/widget.py", line 135, in cached_render
    canv = fn(self, size, focus=focus)
  File "/usr/lib/pymodules/python2.5/urwid/decoration.py", line 719, in render
    canv = self._original_widget.render((maxcol,maxrow-top-bottom),focus)
  File "/usr/lib/pymodules/python2.5/urwid/widget.py", line 135, in cached_render
    canv = fn(self, size, focus=focus)
  File "/usr/lib/pymodules/python2.5/urwid/decoration.py", line 528, in render
    canv = self._original_widget.render((maxcol,)+size[1:], focus)
  File "/usr/lib/pymodules/python2.5/urwid/widget.py", line 135, in cached_render
    canv = fn(self, size, focus=focus)
  File "/usr/lib/pymodules/python2.5/urwid/container.py", line 569, in render
    focus and self.focus_part == 'body')
  File "/usr/lib/pymodules/python2.5/urwid/widget.py", line 173, in finalize_render
    canv = fn(self, size, focus=focus)
  File "/usr/lib/pymodules/python2.5/urwid/listbox.py", line 373, in render
    assert rows <= maxrow, "Listbox contents too long!  Probably urwid's fault (please report): %s" % `top,middle,bottom`
AssertionError: Listbox contents too long!  Probably urwid's fault (please report): ((7, []), (-25, <SelectableText selectable flow widget 'Common issues with reportbug:\n\nEXIM IS CONFIGURED FOR LOCAL DELIVERY: In Debian 4.0 (etch) and later, exim4 is configured by default to only deliver email to addresses on your system. YOUR BUG REPORTS WILL NOT ARRIVE AT THE BUG TRACKING SYSTEM UNLESS YOU FOLLOW ONE OF THE FOLLOWING STEPS:\n\n- Reconfigure exim (using \'dpkg-reconfigure -plow exim4\') to send mail to the Internet directly or via a smarthost.\n\n- Configure reportbug to deliver mail to your ISP\'s smarthost or reportbug.debian.org directly (using \'reportbug --configure\').\n\n- Alternatively, see /usr/share/doc/reportbug/README.Users for instructions on how to use GMail\'s SMTP server to submit reports.\n\nEMAIL ADDRESS SETTING: See the manual page reportbug(1) for how to set your email address (i.e. the address that appears in the "From:" header), if reportbug is unable
  to correctly figure it out for you.\n\nNote that some mail systems will further rewrite the address displayed by reportbug when it starts.\n\nEDITORS: See the manual page reportbug(1) for how to choose an editor. You probably will want to have this setting for other tools as well. As an alternative, some mail programs, such as "mutt", can be configured to be used as the editor for your report, which you may find preferable.\n\nREPORTING: It is useful to include the full transcript of reportbug (with text ui) output, so we can see what it\'s trying to do and provide a faster and more precise response.\n\nGTK+ UI: There are some situation when the GTK+ stack crashes, reporting "Floating point exception" or GTK+ stack traces; those are bugs in GTK+ or misconfigurations (for example, using \'testing\' suite can lead to such errors) on the current machine. Do not report bugs against reportbug in such situations but consult users support forums.\n\n(You may need to press \'q\' to
  exit your pager and continue using reportbug at this point. Doesn\'t apply to GTK+ UI.)' edit_pos=1437>, 0, 40, (0, 32)), (0, []))

Since it says "Probably urwid's fault (please report)", here it is :)

Regards,
Sandro

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages python-urwid depends on:
ii  libc6                         2.10.2-6   Embedded GNU C Library: Shared lib
ii  python                        2.5.4-9    An interactive high-level object-o
ii  python-support                1.0.6.1    automated rebuilding support for P

python-urwid recommends no packages.

python-urwid suggests no packages.

-- no debconf information





More information about the Python-modules-team mailing list