[Python-modules-team] Bug#698892: urwid: TypeError due to comparison of int and str
brian m. carlson
sandals at crustytoothpaste.net
Fri Jan 25 01:27:25 UTC 2013
Package: python3-urwid
Version: 1.1.0-1
Severity: normal
When running an urwid-using program, I get the following exception:
Traceback (most recent call last):
File "/home/bmc/bin/newfol", line 1471, in <module>
main(sys.argv[1:])
File "/home/bmc/bin/newfol", line 1451, in main
start_curses()
File "/home/bmc/bin/newfol", line 1068, in start_curses
loop.run()
File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 272, in run
self.screen.run_wrapper(self._run)
File "/usr/lib/python3/dist-packages/urwid/raw_display.py", line 242, in run_wrapper
return fn()
File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 337, in _run
self.event_loop.run()
File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 708, in run
self._loop()
File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 787, in _loop
self._watch_files[fd]()
File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 388, in _update
self.process_input(keys)
File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 488, in process_input
k = self._topmost_widget.keypress(self.screen_size, k)
File "/usr/lib/python3/dist-packages/urwid/container.py", line 1103, in keypress
return self.body.keypress( (maxcol, remaining), key )
File "/usr/lib/python3/dist-packages/urwid/decoration.py", line 834, in keypress
return self._original_widget.keypress((maxcol,), key)
File "/usr/lib/python3/dist-packages/urwid/container.py", line 1560, in keypress
key = self.focus.keypress(tsize, key)
File "/usr/lib/python3/dist-packages/urwid/container.py", line 379, in keypress
key = self.__super.keypress(size, key)
File "/usr/lib/python3/dist-packages/urwid/container.py", line 1589, in keypress
tsize, self.pref_col, row):
File "/usr/lib/python3/dist-packages/urwid/decoration.py", line 652, in move_cursor_to_coords
return self._original_widget.move_cursor_to_coords(maxvals, x, y)
File "/usr/lib/python3/dist-packages/urwid/container.py", line 2109, in move_cursor_to_coords
if x > col and best is None:
TypeError: unorderable types: int() > str()
I can provide you with the program in which I see this bug, but I'm
fairly confident that this is a bug in urwid, and not my software. I'm
suspicious of the "if type(x)==int" line in decoration.py:652; it seems
that if the data is not an integer, we probably don't want to pass it on
to a function that's going to expect an integer.
-- System Information:
Debian Release: 7.0
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.7-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/dash
Versions of packages python3-urwid depends on:
ii libc6 2.13-38
ii python3 3.2.3-6
python3-urwid recommends no packages.
python3-urwid suggests no packages.
-- no debconf information
--
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20130125/4afdcc70/attachment.pgp>
More information about the Python-modules-team
mailing list