Ticket #127 (new defect)

Opened 2 years ago

Last modified 2 years ago

Hachoir is incompatible with urwid >= 0.9.8

Reported by: jm Assigned to: jm
Priority: normal Milestone:
Component: ui-urwid Keywords:
Cc:

Description (Last modified by jm)

There are several bugs in Hachoir because of API changes in the 0.9.8 release of urwid.

The fix should also detect the version of urwid in order handle in order to support both the new and old API.

cf Development update: performance, incompatibilities and ANN: Urwid 0.9.8 - Console UI Library.

Attachments

Change History

04/09/07 03:00:56 changed by jm

[2254] fixes a first bug. Known remaining bugs:

  • display not refreshed in most cases
  • exception on '-' & '+' keys:
      ...
      File "/var/lib/python-support/python2.4/urwid/curses_display.py", line 202, in run_wrapper
        return fn()
      File "/home/jm/hachoir/trunk/hachoir-urwid/hachoir_urwid/urwid_ui.py", line 655, in run
        canvas = top.render(size, focus=True)
      File "/var/lib/python-support/python2.4/urwid/widget.py", line 121, in finalize_render
        canv = fn(self, size, focus=focus)
      File "/var/lib/python-support/python2.4/urwid/listbox.py", line 339, in render
        raise ListBoxError, "Focus Widget %s at position %s within listbox calculated %d rows but rendered %d!"% (`focus_widget`,`focus_pos`,focus_rows, focus_canvas.rows())
    urwid.listbox.ListBoxError: Focus Widget <hachoir_urwid.urwid_ui.Tabbed object at 0x2ab249138d90> at position 0 within listbox calculated 72 rows but rendered 73!
    

04/10/07 16:32:13 changed by jm

  • description changed.

[2282] fixes the exception on '-' & '+' keys.

04/10/07 19:26:56 changed by jm

[2283] fixes the last known bug.

Strangely, urwid 0.9.8 is slightly slower than 0.9.7.2.


Add/Change #127 (Hachoir is incompatible with urwid >= 0.9.8)