Bug#652035: wicd-curses: Crashs when running (Python UnicodeDecodeError)
retitle 652035 wicd-curses crashes (UnicodeDecodeError) with roughly 49 locales thanks Hi, On Sat, Jan 21, 2012 at 11:43:57PM +0100, David Paleino wrote: In the meanwhile, I'm downgrading this bug's severity, since it seems to happen only with the French localization (so wicd-curses is not totally unusable for everyone). It appears to occur with many other locales. Steps to reproduce are as in message #119 (Message-ID: 20120221211749.51670...@cacacomp.caca): Select any AP from the main menu and use your right arrow to select it's configuration menu. Enjoy the crash. I tested all the locales which have translations installed. Crash with LC_ALL= (all those unspecified have Error 1): ar_EG ast ca cs da de el eo # Error 2 es_AR es es_MX # Error 2 es_NI es_VE et fa # Error 2 fi fr_CA fr gl he hr hu ja ka kk # Error 3 ko lt # Error 2 lv # Error 2 pt_BR pt ro ru sk sl # Error 2 sr sv tr uk vi # Error 2 zh_CN zh_HK # Error 2 zh_TW I may have mixed up a few of the es_* locales, including or excluding some of them (I lost track of where I was). Do not crash with LC_ALL=: C All locales in the output of ls /usr/share/locale/*/LC_MESSAGES/wicd.mo | sed -e 's@.*locale/\(.\+\)/LC.*@\1@g' not listed above. If you want to test against all installed locales, run: for i in `ls /usr/share/locale/*/LC_MESSAGES/wicd.mo | sed -e 's@.*locale/\(.\+\)/LC.*@\1@g'`; do LC_ALL=$i wicd-curses; done and test against each locale. # Error 1. [...] in position : [...] varies across languages. Traceback (most recent call last): File /usr/share/wicd/curses/wicd-curses.py, line 921, in call_update_ui self.update_ui(True) 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 932, in update_ui self.handle_keys(input_data[1]) File /usr/share/wicd/curses/wicd-curses.py, line 835, in handle_keys self.diag = WirelessSettingsDialog(pos,self.frame) File /usr/share/wicd/curses/netentry_curses.py, line 385, in __init__ title = _('Configuring preferences for wireless network $A ($B)').replace('$A',wireless.GetWirelessProperty(networkID,'essid')).replace('$B',wireless.GetWirelessProperty(networkID,'bssid')) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 46: ordinal not in range(128) # Error 2 Traceback (most recent call last): File /usr/share/wicd/curses/wicd-curses.py, line 921, in call_update_ui self.update_ui(True) 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 932, in update_ui self.handle_keys(input_data[1]) File /usr/share/wicd/curses/wicd-curses.py, line 907, in handle_keys k = self.frame.keypress(self.size,k) File /usr/lib/python2.7/dist-packages/urwid/container.py, line 641, in keypress return self.body.keypress( (maxcol, remaining), key ) File /usr/lib/python2.7/dist-packages/urwid/container.py, line 641, in keypress return self.body.keypress( (maxcol, remaining), key ) File /usr/lib/python2.7/dist-packages/urwid/listbox.py, line 758, in keypress self._set_focus_complete( (maxcol,maxrow), focus=True ) File /usr/lib/python2.7/dist-packages/urwid/listbox.py, line 500, in _set_focus_complete (maxcol,maxrow), focus) File /usr/lib/python2.7/dist-packages/urwid/listbox.py, line 470, in _set_focus_first_selectable (maxcol, maxrow), focus=focus) File /usr/lib/python2.7/dist-packages/urwid/listbox.py, line 285, in calculate_visible n_rows = next.rows( (maxcol,) ) File /usr/lib/python2.7/dist-packages/urwid/widget.py, line 192, in cached_rows return fn(self, size, focus) File /usr/lib/python2.7/dist-packages/urwid/widget.py, line 636, in rows return len(self.get_line_translation(maxcol)) File /usr/lib/python2.7/dist-packages/urwid/widget.py, line 1196, in get_line_translation trans = Text.get_line_translation(self, maxcol, ta) File /usr/lib/python2.7/dist-packages/urwid/widget.py, line 649, in get_line_translation self._update_cache_translation(maxcol, ta) File /usr/lib/python2.7/dist-packages/urwid/widget.py, line 656, in _update_cache_translation text, attr = self.get_text() File /usr/lib/python2.7/dist-packages/urwid/widget.py, line 788, in get_text return self._caption + self._edit_text, self._attrib UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128) # Error 3 unknown locale: kk Default locale unavailable, falling back to en_US Traceback (most recent call last): File /usr/share/wicd/curses/wicd-curses.py, line 51, in module from wicd import misc File /usr/lib/python2.7/dist-packages/wicd/misc.py, line 36, in module from wicd.translations import _ File /usr/lib/python2.7/dist-packages/wicd/translations.py, line 58, in module _ = get_gettext() File /usr/lib/python2.7/dist-packages/wicd/translations.py, line 50, in
Bug#652035: wicd-curses: Crashs when running (Python UnicodeDecodeError)
severity 652035 important retitle 652035 wicd-curses crashes (UnicodeDecodeError) with French locale thanks On Wed, 21 Dec 2011 22:09:47 +0100, Florian Birée wrote: Hi, (thanks for the ping ;-) ) Re-ping :) Le Wed, 21 Dec 2011 21:42:43 +0100, David Paleino da...@debian.org a écrit : Uhm, ok. I didn't have the same exact traceback as yours, but still a unicode-related one. I fixed it in bzr, would you please give it a try? (it also needs an easy patch to wicd-daemon -- rev. 685 --, and then you need to use the new daemon). http://bazaar.launchpad.net/~wicd-devel/wicd/experimental/revision/686 http://bazaar.launchpad.net/~wicd-devel/wicd/experimental/revision/685 If you're brave enough, you could try to use the bzr snapshot. Just tell me what you prefer: a test package, or some hint for using the bzr snapshot :) I've just patched wicd-curses and wicd-daemon with rev 685, always the same problem... Can you please test with the latest 1.7.1~b3-4 ? If it still happens, then I'm totally out of ideas. In the meanwhile, I'm downgrading this bug's severity, since it seems to happen only with the French localization (so wicd-curses is not totally unusable for everyone), and wicd can also migrate to testing (so that we also get a chance to have more people to triage this bug). Have a nice evening/night, David -- . ''`. Debian developer | http://wiki.debian.org/DavidPaleino : :' : Linuxer #334216 --|-- http://www.hanskalabs.net/ `. `'` GPG: 1392B174 | http://deb.li/dapal `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174 signature.asc Description: PGP signature
Bug#652035: wicd-curses: Crashs when running (Python UnicodeDecodeError)
On Mon, 19 Dec 2011 23:07:44 +0100, David Paleino wrote: On Mon, 19 Dec 2011 21:44:12 +0100, Florian Birée wrote: Hello, Le Mon, 19 Dec 2011 21:28:01 +0100, David Paleino da...@debian.org a écrit : On Sat, 17 Dec 2011 11:02:51 +0100, Florian Birée wrote: I just upgrade it to 1.7.1~b3-3, same problem. Is the error *exactly* the same as the one in your first message? If yes, I'm really not able to tell what's going on. Yes, exactly the same. But the french translation of wicd seems weired on wicd-gtk (that I don't really use), and as I say I need to use wicd-cures in english (LC_ALL=C wicd-curses) in order to make it works... maybe something related to the french translation? (Maybe you can try LC_ALL=fr wicd-curses to reproduce it?) Uhm, ok. I didn't have the same exact traceback as yours, but still a unicode-related one. I fixed it in bzr, would you please give it a try? (it also needs an easy patch to wicd-daemon -- rev. 685 --, and then you need to use the new daemon). http://bazaar.launchpad.net/~wicd-devel/wicd/experimental/revision/686 http://bazaar.launchpad.net/~wicd-devel/wicd/experimental/revision/685 If you're brave enough, you could try to use the bzr snapshot. Just tell me what you prefer: a test package, or some hint for using the bzr snapshot :) Ping? David -- . ''`. Debian developer | http://wiki.debian.org/DavidPaleino : :' : Linuxer #334216 --|-- http://www.hanskalabs.net/ `. `'` GPG: 1392B174 | http://deb.li/dapal `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174 signature.asc Description: PGP signature
Bug#652035: wicd-curses: Crashs when running (Python UnicodeDecodeError)
Hi, (thanks for the ping ;-) ) Le Wed, 21 Dec 2011 21:42:43 +0100, David Paleino da...@debian.org a écrit : Uhm, ok. I didn't have the same exact traceback as yours, but still a unicode-related one. I fixed it in bzr, would you please give it a try? (it also needs an easy patch to wicd-daemon -- rev. 685 --, and then you need to use the new daemon). http://bazaar.launchpad.net/~wicd-devel/wicd/experimental/revision/686 http://bazaar.launchpad.net/~wicd-devel/wicd/experimental/revision/685 If you're brave enough, you could try to use the bzr snapshot. Just tell me what you prefer: a test package, or some hint for using the bzr snapshot :) I've just patched wicd-curses and wicd-daemon with rev 685, always the same problem... (I'll be far away from any piece of Internet for one week, so I'll not be able to test anything in the meantime, except if you find a good homing pigeon.) -- Florian Birée e-mail : flor...@biree.name -- web : http://florian.biree.name/ ** Terriens Cherchent Futur : http://biblio.ismalaris.org/ ** signature.asc Description: PGP signature
Bug#652035: wicd-curses: Crashs when running (Python UnicodeDecodeError)
Hello Florian, On Sat, 17 Dec 2011 11:02:51 +0100, Florian Birée wrote: I just upgrade it to 1.7.1~b3-3, same problem. Is the error *exactly* the same as the one in your first message? If yes, I'm really not able to tell what's going on. David -- . ''`. Debian developer | http://wiki.debian.org/DavidPaleino : :' : Linuxer #334216 --|-- http://www.hanskalabs.net/ `. `'` GPG: 1392B174 | http://deb.li/dapal `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174 signature.asc Description: PGP signature
Bug#652035: wicd-curses: Crashs when running (Python UnicodeDecodeError)
Hello, Le Mon, 19 Dec 2011 21:28:01 +0100, David Paleino da...@debian.org a écrit : On Sat, 17 Dec 2011 11:02:51 +0100, Florian Birée wrote: I just upgrade it to 1.7.1~b3-3, same problem. Is the error *exactly* the same as the one in your first message? If yes, I'm really not able to tell what's going on. Yes, exactly the same. But the french translation of wicd seems weired on wicd-gtk (that I don't really use), and as I say I need to use wicd-cures in english (LC_ALL=C wicd-curses) in order to make it works... maybe something related to the french translation? (Maybe you can try LC_ALL=fr wicd-curses to reproduce it?) -- Florian Birée e-mail : flor...@biree.name -- web : http://florian.biree.name/ ** Terriens Cherchent Futur : http://biblio.ismalaris.org/ ** signature.asc Description: PGP signature
Bug#652035: wicd-curses: Crashs when running (Python UnicodeDecodeError)
On Mon, 19 Dec 2011 21:44:12 +0100, Florian Birée wrote: Hello, Le Mon, 19 Dec 2011 21:28:01 +0100, David Paleino da...@debian.org a écrit : On Sat, 17 Dec 2011 11:02:51 +0100, Florian Birée wrote: I just upgrade it to 1.7.1~b3-3, same problem. Is the error *exactly* the same as the one in your first message? If yes, I'm really not able to tell what's going on. Yes, exactly the same. But the french translation of wicd seems weired on wicd-gtk (that I don't really use), and as I say I need to use wicd-cures in english (LC_ALL=C wicd-curses) in order to make it works... maybe something related to the french translation? (Maybe you can try LC_ALL=fr wicd-curses to reproduce it?) Uhm, ok. I didn't have the same exact traceback as yours, but still a unicode-related one. I fixed it in bzr, would you please give it a try? (it also needs an easy patch to wicd-daemon -- rev. 685 --, and then you need to use the new daemon). http://bazaar.launchpad.net/~wicd-devel/wicd/experimental/revision/686 http://bazaar.launchpad.net/~wicd-devel/wicd/experimental/revision/685 If you're brave enough, you could try to use the bzr snapshot. Just tell me what you prefer: a test package, or some hint for using the bzr snapshot :) Thank you for your support, David -- . ''`. Debian developer | http://wiki.debian.org/DavidPaleino : :' : Linuxer #334216 --|-- http://www.hanskalabs.net/ `. `'` GPG: 1392B174 | http://deb.li/dapal `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174 signature.asc Description: PGP signature
Bug#652035: wicd-curses: Crashs when running (Python UnicodeDecodeError)
Hello David, Le Fri, 16 Dec 2011 12:42:21 +0100, David Paleino da...@debian.org a écrit : On Thu, 15 Dec 2011 18:15:56 +0100, Florian Birée wrote: [..] If you think I should try your patch, I can do it, but I think it is not related to this bug... I just uploaded 1.7.1~b3-3, which contains the unicode-related fixes too. Please test it :) I just upgrade it to 1.7.1~b3-3, same problem. -- Florian Birée e-mail : flor...@biree.name -- web : http://florian.biree.name/ ** Terriens Cherchent Futur : http://biblio.ismalaris.org/ ** signature.asc Description: PGP signature
Bug#652035: wicd-curses: Crashs when running (Python UnicodeDecodeError)
On Thu, 15 Dec 2011 18:15:56 +0100, Florian Birée wrote: [..] If you think I should try your patch, I can do it, but I think it is not related to this bug... I just uploaded 1.7.1~b3-3, which contains the unicode-related fixes too. Please test it :) Thanks, David -- . ''`. Debian developer | http://wiki.debian.org/DavidPaleino : :' : Linuxer #334216 --|-- http://www.hanskalabs.net/ `. `'` GPG: 1392B174 | http://deb.li/dapal `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174 signature.asc Description: PGP signature
Bug#652035: wicd-curses: Crashs when running (Python UnicodeDecodeError)
On Thu, 15 Dec 2011 17:43:29 +0100, Florian Birée wrote: Hello, Hello Florian, please remember to keep the bug CCed when replying :) Le Wed, 14 Dec 2011 20:55:39 +0100, David Paleino da...@debian.org a écrit : Do you have any unicode ESSID in /etc/wicd/wireless-settings.conf? Is it the ESSID you chose to automatically connect to? No (the only strange essid I have in wireless-settings.conf contains * and ', but that's ascii characters...) Do you have any unicode ESSID in range? i.e. try iwlist wlan0 scan (change wlan0 if that's not your device), and see if any ESSID like \xAA\xBB\xCC pops up. Today I think I fixed a long-time bug with unicode ESSIDs in wicd (which prevented it from connecting to them); are you able to apply a patch to files installed on your system? Or do you prefer a new package to test? If the former is true, please find a patch attached: you might need to tweak the filepaths there (as it's a patch against the upstream repository), but it's very small :) (diffstat says: 4 files changed, 20 insertions(+), 6 deletions(-)) Please don't hesitate to ask for a package to test, if you're unable to deal with the patch :) Thanks, David -- . ''`. Debian developer | http://wiki.debian.org/DavidPaleino : :' : Linuxer #334216 --|-- http://www.hanskalabs.net/ `. `'` GPG: 1392B174 | http://deb.li/dapal `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174 signature.asc Description: PGP signature
Bug#652035: wicd-curses: Crashs when running (Python UnicodeDecodeError)
On Thu, 15 Dec 2011 18:15:56 +0100, Florian Birée wrote: [..] If you think I should try your patch, I can do it, but I think it is not related to this bug... Please try it, it doesn't hurt for sure :) David -- . ''`. Debian developer | http://wiki.debian.org/DavidPaleino : :' : Linuxer #334216 --|-- http://www.hanskalabs.net/ `. `'` GPG: 1392B174 | http://deb.li/dapal `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174 signature.asc Description: PGP signature
Bug#652035: wicd-curses: Crashs when running (Python UnicodeDecodeError)
Hello David, Le Thu, 15 Dec 2011 17:53:26 +0100, David Paleino da...@debian.org a écrit : please remember to keep the bug CCed when replying :) Sorry! Le Wed, 14 Dec 2011 20:55:39 +0100, David Paleino da...@debian.org a écrit : Do you have any unicode ESSID in /etc/wicd/wireless-settings.conf? Is it the ESSID you chose to automatically connect to? No (the only strange essid I have in wireless-settings.conf contains * and ', but that's ascii characters...) Do you have any unicode ESSID in range? i.e. try iwlist wlan0 scan (change wlan0 if that's not your device), and see if any ESSID like \xAA\xBB\xCC pops up. No, the only ESSID I currently have in range are just ascii ones. Have you see the other mail I sent just after? (I repeat it, but now CCed to the bug :) It seems to be an i18n issue, since running wicd-curses with LC_ALL=C makes it works well. If you think I should try your patch, I can do it, but I think it is not related to this bug... Thank you! -- Florian Birée e-mail : flor...@biree.name -- web : http://florian.biree.name/ ** Terriens Cherchent Futur : http://biblio.ismalaris.org/ ** signature.asc Description: PGP signature
Bug#652035: wicd-curses: Crashs when running (Python UnicodeDecodeError)
Package: wicd-curses Version: 1.7.1~b3-2 Severity: grave Justification: renders package unusable Dear Maintainer, wicd-curses always crashs when I start the program. The error is: Traceback (most recent call last): File /usr/share/wicd/curses/wicd-curses.py, line 1063, in module main() File /usr/share/wicd/curses/wicd-curses.py, line 995, in main ui.run_wrapper(run) File /usr/lib/python2.7/dist-packages/urwid/raw_display.py, line 237, 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 1003, in run app = appGUI() File /usr/share/wicd/curses/wicd-curses.py, line 551, in __init__ self.update_netlist(force_check=True,firstrun=True) 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 670, in update_netlist wiredL,wlessL = gen_network_list() File /usr/share/wicd/curses/wicd-curses.py, line 177, in gen_network_list label = NetLabel(network_id,is_active) File /usr/share/wicd/curses/wicd-curses.py, line 358, in __init__ self.stren,self.essid,self.encrypt,self.bssid,self.mode,self.channel) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 5: ordinal not in range(128) -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 3.1.0-1-686-pae (SMP w/1 CPU core) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages wicd-curses depends on: ii python2.7.2-9 ii python-urwid 1.0.1-2 ii wicd-daemon 1.7.1~b3-2 Versions of packages wicd-curses recommends: ii sudo 1.8.3p1-2 wicd-curses suggests no packages. Versions of packages wicd depends on: ii wicd-daemon 1.7.1~b3-2 Versions of packages wicd-cli depends on: ii wicd-daemon 1.7.1~b3-2 Versions of packages wicd-cli recommends: ii sudo 1.8.3p1-2 Versions of packages wicd-gtk depends on: ii python 2.7.2-9 ii python-glade2 2.24.0-2 ii python-gtk22.24.0-2 ii wicd-daemon1.7.1~b3-2 Versions of packages wicd-gtk recommends: ii gksu 2.0.2-6 ii python-notify 0.1.1-3 Versions of packages wicd-daemon depends on: ii adduser 3.113 ii dbus1.4.16-1 ii debconf 1.5.41 ii dhcpcd 1:3.2.3-9 ii iproute 2017-1 ii iputils-ping3:20101006-1+b1 ii lsb-base3.2-28 ii net-tools 1.60-24.1 ii psmisc 22.14-1 ii python 2.7.2-9 ii python-dbus 0.84.0-2 ii python-gobject 3.0.2-4 ii python-wicd 1.7.1~b3-2 ii wireless-tools 30~pre9-7 ii wpasupplicant 0.7.3-5 wicd-daemon recommends no packages. Versions of packages wicd-daemon suggests: ii pm-utils 1.4.1-8 Versions of packages python-wicd depends on: ii python 2.7.2-9 ii python2.6 2.6.7-4 ii python2.7 2.7.2-8 -- debconf information: * wicd/users: florian -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#652035: wicd-curses: Crashs when running (Python UnicodeDecodeError)
Hello, On Wed, 14 Dec 2011 12:45:08 +0100, Florian Birée wrote: wicd-curses always crashs when I start the program. The error is: Traceback (most recent call last): File /usr/share/wicd/curses/wicd-curses.py, line 1063, in module main() File /usr/share/wicd/curses/wicd-curses.py, line 995, in main ui.run_wrapper(run) File /usr/lib/python2.7/dist-packages/urwid/raw_display.py, line 237, 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 1003, in run app = appGUI() File /usr/share/wicd/curses/wicd-curses.py, line 551, in __init__ self.update_netlist(force_check=True,firstrun=True) 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 670, in update_netlist wiredL,wlessL = gen_network_list() File /usr/share/wicd/curses/wicd-curses.py, line 177, in gen_network_list label = NetLabel(network_id,is_active) File /usr/share/wicd/curses/wicd-curses.py, line 358, in __init__ self.stren,self.essid,self.encrypt,self.bssid,self.mode,self.channel) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 5: ordinal not in range(128) Do you have any unicode ESSID in /etc/wicd/wireless-settings.conf? Is it the ESSID you chose to automatically connect to? Thanks, David -- . ''`. Debian developer | http://wiki.debian.org/DavidPaleino : :' : Linuxer #334216 --|-- http://www.hanskalabs.net/ `. `'` GPG: 1392B174 | http://deb.li/dapal `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174 signature.asc Description: PGP signature