Python programs wont start with locale variables set to sr_RS and sr_RS@latin
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python2.6 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: software-center
I cannot get software center to work with my locales setting.
When I try to start it from console I get
slobodan@koala:~$ software-center
Gtk-Message: (for origin information, set GTK_DEBUG): failed to retrieve property `GtkWidget:
Traceback (most recent call last):
File "/usr/bin/
app = SoftwareCenterA
File "/usr/share/
self.icons, datadir)
File "/usr/share/
SoftwarePan
File "/usr/share/
self.datadir)
File "/usr/share/
self.
File "/usr/lib/
self._locale = "%s.%s" % locale.
File "/usr/lib/
return _parse_
File "/usr/lib/
raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: sr_RS
When I change LANG variable to something else (tried en_US de_DE hu_HU)
software-center starts normally.
ProblemType: Bug
Architecture: amd64
Date: Thu Oct 29 20:33:15 2009
DistroRelease: Ubuntu 9.10
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release Candidate amd64 (20091020.3)
NonfreeKernelMo
Package: software-center 1.0.2
PackageArchitec
ProcEnviron:
LANG=en_US
SHELL=/bin/bash
ProcVersionSign
SourcePackage: software-center
Uname: Linux 2.6.31-14-generic x86_64
XsessionErrors:
(gnome-
(polkit-
(nautilus:4210): Eel-CRITICAL **: eel_preferences
(gnome-
(gnome-
summary: |
- software center wont start with my locale variables set to sr_RS + Python programs wont start with locale variables set to sr_RS and + sr_RS@latin |
This bug affects two of mine computers, desktop and laptop, both set with serbian locale sr_RS:
zarko@zarko- desktop: ~$ software-center software- center" , line 80, in <module> pp(datadir, xapian_base_path) software- center/ softwarecenter/ app.py" , line 140, in __init__ software- center/ softwarecenter/ view/availablep ane.py" , line 58, in __init__ e.__init_ _(self, cache, db, icons, datadir) software- center/ softwarecenter/ view/softwarepa ne.py", line 92, in __init__ software- center/ softwarecenter/ view/appdetails view.py" , line 102, in __init__ aptd_client = client.AptClient() python2. 6/dist- packages/ aptdaemon/ client. py", line 382, in __init__ getdefaultlocal e() python2. 6/locale. py", line 478, in getdefaultlocale localename( localename) python2. 6/locale. py", line 410, in _parse_localename
Traceback (most recent call last):
File "/usr/bin/
app = SoftwareCenterA
File "/usr/share/
self.icons, datadir)
File "/usr/share/
SoftwarePan
File "/usr/share/
self.datadir)
File "/usr/share/
self.
File "/usr/lib/
self._locale = "%s.%s" % locale.
File "/usr/lib/
return _parse_
File "/usr/lib/
raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: sr_RS
Moreover, even the Alacarte wont start with similar error report:
zarko@zarko- desktop: ~$ alacarte alacarte" , line 36, in <module> alacarte" , line 32, in main pymodules/ python2. 6/Alacarte/ MainWindow. py", line 48, in __init__ pymodules/ python2. 6/Alacarte/ MenuEditor. py", line 35, in __init__ getdefaultlocal e()[0] python2. 6/locale. py", line 478, in getdefaultlocale localename( localename) python2. 6/locale. py", line 410, in _parse_localename
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
app = MainWindow(datadir, version, sys.argv)
File "/usr/lib/
self.editor = MenuEditor()
File "/usr/lib/
self.locale = locale.
File "/usr/lib/
return _parse_
File "/usr/lib/
raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: sr_RS