reassign 568079 python-urwid retitle 568079 doesn't correctly check whether gpm is running before using it thanks
Hello,
On Tuesday 02 February 2010 10:52:44, EmaRsk wrote:
> Package: wicd-curses
> Version: 1.7.0-3
> Severity: normal
>
> wicd-curses works fine if mouse is usable, that is on terminal emulator or
> from console with gpm running,
> but if launched from console without gpm running, it fails with this error
> message:
>
> [..]
> Traceback (most recent call last):
> File "/usr/share/wicd/curses/wicd-curses.py", line 1039, in <module>
> main()
> File "/usr/share/wicd/curses/wicd-curses.py", line 978, in main
> ui.run_wrapper(run)
> File "/usr/lib/pymodules/python2.5/urwid/raw_display.py", line 234, in
> run_wrapper
> return fn()
> File "/usr/share/wicd/curses/wicd-curses.py", line 89, in wrapper
> return func(*args, **kargs)
> File "/usr/share/wicd/curses/wicd-curses.py", line 986, in run
> app = appGUI()
> File "/usr/share/wicd/curses/wicd-curses.py", line 577, in __init__
> self.update_status()
> File "/usr/share/wicd/curses/wicd-curses.py", line 89, in wrapper
> return func(*args, **kargs)
> File "/usr/share/wicd/curses/wicd-curses.py", line 713, in update_status
> if check_for_wired(wired.GetWiredIP(''),self.set_status):
> File "/usr/share/wicd/curses/wicd-curses.py", line 89, in wrapper
> return func(*args, **kargs)
> File "/usr/share/wicd/curses/wicd-curses.py", line 131, in
> check_for_wired
> set_status(language['connected_to_wired'].replace('$A',wired_ip)) File
> "/usr/share/wicd/curses/wicd-curses.py", line 772, in set_status
> self.update_ui()
> File "/usr/share/wicd/curses/wicd-curses.py", line 89, in wrapper
> return func(*args, **kargs)
> File "/usr/share/wicd/curses/wicd-curses.py", line 913, in update_ui
> input_data = ui.get_input_nonblocking()
> File "/usr/lib/pymodules/python2.5/urwid/raw_display.py", line 339, in
> get_input_nonblocking
> return self._input_iter.next()
> File "/usr/lib/pymodules/python2.5/urwid/raw_display.py", line 352, in
> _run_input_iter
> codes = self._get_gpm_codes() + \
> File "/usr/lib/pymodules/python2.5/urwid/raw_display.py", line 405, in
> _get_gpm_codes
> codes.extend(self._encode_gpm_event())
> File "/usr/lib/pymodules/python2.5/urwid/raw_display.py", line 444, in
> _encode_gpm_event
> s = self.gpm_mev.stdout.readline()
> AttributeError: 'NoneType' object has no attribute 'stdout'
This seems like some missing error-checking before using gpm in urwid.
I'm reassigning the bug to the proper package.
Kindly,
David
--
. ''`. Debian developer | http://wiki.debian.org/DavidPaleino
: :' : Linuxer #334216 --|-- http://www.hanskalabs.net/
`. `'` GPG: 1392B174 ----|----
`- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
signature.asc
Description: This is a digitally signed message part.

