zenmap crashed in Lucid Lynx because a language bug in /usr/lib/python2.6/locale.py

Bug #555166 reported by Dooitze de Jong
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python2.6 (Ubuntu)
Expired
Undecided
Unassigned
Nominated for Lucid by Dooitze de Jong

Bug Description

Binary package hint: nmap

I've installed ZenMap , but when i start it , it crashes

ProblemType: Crash
DistroRelease: Ubuntu 10.04
Package: zenmap 5.00-3
ProcVersionSignature: Ubuntu 2.6.32-19.28-generic 2.6.32.10+drm33.1
Uname: Linux 2.6.32-19-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Sun Apr 4 15:50:19 2010
ExecutablePath: /usr/bin/zenmap
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Beta amd64 (20100318)
InterpreterPath: /usr/bin/python2.6
ProcCmdline: /usr/bin/python /usr/bin/zenmap
ProcEnviron:
 LANG=fy_NL
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/zenmap']
SourcePackage: nmap
Title: zenmap crashed with ValueError in _parse_localename()
UserGroups: adm admin cdrom dialout libvirtd lpadmin plugdev sambashare

I started it in terminal

from zenmapCore.UmitLogging import log
  File "/usr/lib/python2.6/dist-packages/zenmapCore/UmitLogging.py", line 25, in <module>
    from zenmapCore.UmitOptionParser import option_parser
  File "/usr/lib/python2.6/dist-packages/zenmapCore/UmitOptionParser.py", line 26, in <module>
    import zenmapCore.I18N
  File "/usr/lib/python2.6/dist-packages/zenmapCore/I18N.py", line 51, in <module>
    t = gettext.translation(APP_NAME, Path.locale_dir, languages = get_locales(), fallback = True)
  File "/usr/lib/python2.6/dist-packages/zenmapCore/I18N.py", line 31, in get_locales
    loc, enc = locale.getdefaultlocale()
  File "/usr/lib/python2.6/locale.py", line 478, in getdefaultlocale
    return _parse_localename(localename)
  File "/usr/lib/python2.6/locale.py", line 410, in _parse_localename
    raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: fy_NL

This error im getting if I start the program in Frisian workspace

Revision history for this message
Dooitze de Jong (dooitze) wrote :
tags: removed: need-duplicate-check
visibility: private → public
Changed in nmap (Ubuntu):
status: New → Invalid
Revision history for this message
Dooitze de Jong (dooitze) wrote :

    from zenmapCore.UmitLogging import log
  File "/usr/lib/python2.6/dist-packages/zenmapCore/UmitLogging.py", line 25, in <module>
    from zenmapCore.UmitOptionParser import option_parser
  File "/usr/lib/python2.6/dist-packages/zenmapCore/UmitOptionParser.py", line 26, in <module>
    import zenmapCore.I18N
  File "/usr/lib/python2.6/dist-packages/zenmapCore/I18N.py", line 51, in <module>
    t = gettext.translation(APP_NAME, Path.locale_dir, languages = get_locales(), fallback = True)
  File "/usr/lib/python2.6/dist-packages/zenmapCore/I18N.py", line 31, in get_locales
    loc, enc = locale.getdefaultlocale()
  File "/usr/lib/python2.6/locale.py", line 478, in getdefaultlocale
    return _parse_localename(localename)
  File "/usr/lib/python2.6/locale.py", line 410, in _parse_localename
    raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: fy_NL

This error im getting if I start the program in Frisian workspace

description: updated
Changed in nmap (Ubuntu):
status: Invalid → New
summary: - zenmap crashed in Lucid Lynx
+ zenmap crashed in Lucid Lynx because a language bug in
+ /usr/lib/python2.6/locale.py
description: updated
description: updated
affects: nmap (Ubuntu) → python2.6 (Ubuntu)
Revision history for this message
Dooitze de Jong (dooitze) wrote :

My first patch, he isn't complete but only a beginning

Revision history for this message
Dooitze de Jong (dooitze) wrote :

The last patch was wrong

Changed in python2.6 (Ubuntu):
status: New → In Progress
Revision history for this message
Matthias Klose (doko) wrote :

is this still valid? is there a suggested patch?

Changed in python2.6 (Ubuntu):
status: In Progress → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for python2.6 (Ubuntu) because there has been no activity for 60 days.]

Changed in python2.6 (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.