Nmap Development mailing list archives
Re: Zenmap Crash with unknown locale..
From: David Fifield <david () bamsoftware com>
Date: Fri, 20 Jul 2012 11:18:05 -0700
On Fri, Jul 20, 2012 at 10:41:39AM +0100, Olisemeka Omo wrote:
On 20/07/2012 02:56, David Fifield wrote:On Thu, Jul 19, 2012 at 06:35:36PM -0700, David Fifield wrote:On Thu, Jul 19, 2012 at 12:06:19PM +0100, Olisemeka Omo wrote:Hi, My locale is Nigeria. Below is the stack-trace.. +++++++++++++++++++++++++ Version: 6.02 Traceback (most recent call last): File "/usr/local/bin/zenmap", line 158, in <module> zenmapGUI.App.run() File "/usr/local/lib/python2.7/dist-packages/zenmapGUI/App.py", line 233, in run zenmapCore.I18N.install_gettext(Path.locale_dir) File "/usr/local/lib/python2.7/dist-packages/zenmapCore/I18N.py", line 128, in install_gettext t = gettext.translation(APP_NAME, locale_dir, languages = get_locales(), fallback = True) File "/usr/local/lib/python2.7/dist-packages/zenmapCore/I18N.py", line 109, in get_locales loc, enc = locale.getdefaultlocale() File "/usr/lib/python2.7/locale.py", line 503, in getdefaultlocale return _parse_localename(localename) File "/usr/lib/python2.7/locale.py", line 435, in _parse_localename raise ValueError, 'unknown locale: %s' % localename ValueError: unknown locale: en_NGThanks for this report. What is the output of this command? python -c 'import locale; print locale.getdefaultlocale()'I hope to have fixed this problem in r29278. I think the cause is this Python bug: http://bugs.python.org/issue6895. According to this comment, you can work around the problem by setting your locale to en_NG.UTF-8. https://bugs.launchpad.net/ubuntu/+source/python2.6/+bug/482386/comments/4 David FifieldHi David, Thanks for pointing out the solution. My problem is that the solution is dated 2009-11-20. I am using Ubuntu 12.04 which uses the locale en_NG. This means zenmap does not work out of the box. Is there a way to map en_NG to en_NG.UTF-8?
If you installed Zenmap from source code (it looks like you may have), then the easiest thing is to just do "svn update" and reinstall. David Fifield _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- Zenmap Crash with unknown locale.. Olisemeka Omo (Jul 19)
- Re: Zenmap Crash with unknown locale.. David Fifield (Jul 19)
- Re: Zenmap Crash with unknown locale.. David Fifield (Jul 19)
- Re: Zenmap Crash with unknown locale.. Olisemeka Omo (Jul 20)
- Re: Zenmap Crash with unknown locale.. David Fifield (Jul 20)
- Re: Zenmap Crash with unknown locale.. Olisemeka Omo (Jul 22)
- Re: Zenmap Crash with unknown locale.. David Fifield (Jul 19)
- Re: Zenmap Crash with unknown locale.. David Fifield (Jul 19)
- Re: Zenmap Crash with unknown locale.. Olisemeka Omo (Jul 20)