You are not logged in.
Just started using openbox and loving it so far, have nearly everything setup but having a problem with pypanel and sonata, neither will start.
When I try and start them from terminal I get the following message
[benji@myhost ~]$ pypanel
Traceback (most recent call last):
File "/usr/bin/pypanel", line 948, in <module>
locale.setlocale(locale.LC_ALL, "")
File "/usr/lib/python2.5/locale.py", line 478, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting
[benji@myhost ~]$
[benji@myhost ~]$ sonata
(sonata:3755): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
/usr/lib/python2.5/site-packages/sonata/tray.py:12: GtkWarning: Unable to locate theme engine in module_path: "mist",
gtk.Window.__init__(self, gtk.WINDOW_POPUP)
Locale cannot be found; please set your system's locale. Aborting...
[benji@myhost ~]$
Both of them are saying something about locale, I have checked rc.conf and the locale settings are:
LOCALE="en_GB.utf8"
HARDWARECLOCK="localtime"
USEDIRECTISA="no"
TIMEZONE="Europe/London"
KEYMAP="uk"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"
and locale.gen is
en_GB.UTF-8 UTF-8
en_GB ISO-8859-1
Does anyone know why neither of these programs will open?
Offline
Have you run locale-gen after uncommenting the necessary lines? (Seems pretty common that people skip over setting locale during install, and editing locale-gen later does not automatically run locale-gen afterwards like the installer does.)
Offline
Just did some updates and noticed another error about locale
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_COLLATE = "C",
LC_CTYPE = "ja_JP.utf8",
LANG = "en_GB.utf8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
module configuration already contains alias directive
Offline
Did you manage to solve your problem?
I'm having exactly the same problem. (Did not try sonata though)
[kiepmad@myhost ~]$ pypanel
Traceback (most recent call last):
File "/usr/bin/pypanel", line 948, in <module>
locale.setlocale(locale.LC_ALL, "")
File "/usr/lib/python2.5/locale.py", line 478, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting
[kiepmad@myhost ~]$ locale -a
locale: Cannot set LC_CTYPE to default locale: No such file or directory
C
POSIX
de_CH
de_CH.iso88591
de_CH.utf8
de_LU
de_LU.iso88591
de_LU.iso885915@euro
de_LU.utf8
de_LU@euro
en_GB
en_GB.iso88591
en_GB.utf8
en_IE.iso885915@euro
en_IE@euro
en_US.utf8
fr_LU
fr_LU.iso88591
fr_LU.iso885915@euro
fr_LU.utf8
fr_LU@euro
I regenrated locales now quite often, but it doesn't fix the problem.
Lots of poeple were having these errors, but they could fix it by generating locales.
btw, my /etc/rc.conf
LOCALE="de_CH.utf8"
HARDWARECLOCK="localtime"
USEDIRECTISA="no"
TIMEZONE="Europe/Luxembourg"
KEYMAP="de_CH-latin1"
Edit:
GTK programms complain as well:
[kiepmad@myhost ~]$ pidgin
(process:4150): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
Last edited by kiepmad (2008-10-28 20:55:53)
Offline
As root, edit /usr/bin/pypanel
Go to line 948 and set the locale manually. "en_GB" worked for me. /etc/locale.gen is set as "en_UK.utf8"
Old:
# Set locale to user's default
locale.setlocale(locale.LC_ALL, "")
New:
# Set locale to user's default
locale.setlocale(locale.LC_ALL, "en_GB")
Offline
For anyone still having this problem, seems like we have to uncomment the locale we use in /etc/locale.gen
As root, edit /etc/locale.gen to uncomment your locale and do a locale-gen afterward. Everything should be fine after
Offline