[Python-modules-team] Bug#708305: python3-urwid: UnboundLocalError: local variable 'w' referenced before assignment
brian m. carlson
sandals at crustytoothpaste.net
Tue May 14 22:58:50 UTC 2013
Package: python3-urwid
Version: 1.1.0-1
Severity: normal
I have a piece of software using urwid. Occasionally, the following
error occurs:
Traceback (most recent call last):
File "/home/hodgson/bin/newfol", line 1488, in <module>
main(sys.argv[1:])
File "/home/hodgson/bin/newfol", line 1482, in main
start_curses()
File "/home/hodgson/bin/newfol", line 1079, 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 485, in process_input
event, button, col, row, focus=True ):
File "/usr/lib/python3/dist-packages/urwid/container.py", line 1144, in mouse_event
event, button, col, row-htrim, focus )
File "/usr/lib/python3/dist-packages/urwid/decoration.py", line 901, in mouse_event
event, button, col, row-top, focus)
File "/usr/lib/python3/dist-packages/urwid/container.py", line 1658, in mouse_event
focus)
File "/usr/lib/python3/dist-packages/urwid/container.py", line 406, in mouse_event
self.__super.mouse_event(size, event, button, col, row, focus)
File "/usr/lib/python3/dist-packages/urwid/container.py", line 1658, in mouse_event
focus)
File "/usr/lib/python3/dist-packages/urwid/decoration.py", line 664, in mouse_event
focus)
File "/usr/lib/python3/dist-packages/urwid/container.py", line 2171, in mouse_event
col - x, row, focus)
File "/usr/lib/python3/dist-packages/urwid/container.py", line 1653, in mouse_event
if not hasattr(w, 'mouse_event'):
UnboundLocalError: local variable 'w' referenced before assignment
I don't have a reproducible testcase, but it looks like this might occur
when the for loop iterates over an empty sequence.
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.8-1-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/mksh-static
Versions of packages python3-urwid depends on:
ii libc6 2.17-1
ii python3 3.2.3-7
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/20130514/cbb50267/attachment-0001.pgp>
More information about the Python-modules-team
mailing list