You are not logged in.

#1 2008-10-13 15:01:21

superrad
Member
From: Wales
Registered: 2007-12-15
Posts: 60

pypanel & sonata wont start

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

#2 2008-10-13 15:07:07

pseup
Member
Registered: 2008-06-06
Posts: 103

Re: pypanel & sonata wont start

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

#3 2008-10-13 15:09:30

superrad
Member
From: Wales
Registered: 2007-12-15
Posts: 60

Re: pypanel & sonata wont start

Yes I ran locale-gen when I installed and also did it after seeing those messages just to double check.

Offline

#4 2008-10-14 16:03:44

superrad
Member
From: Wales
Registered: 2007-12-15
Posts: 60

Re: pypanel & sonata wont start

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

#5 2008-10-28 20:37:31

kiepmad
Member
Registered: 2007-12-26
Posts: 41

Re: pypanel & sonata wont start

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. wink
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

#6 2008-11-23 16:18:29

_AA_
Member
From: Maidstone, UK
Registered: 2008-07-14
Posts: 19
Website

Re: pypanel & sonata wont start

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

#7 2009-01-25 22:09:42

kwo
Member
Registered: 2008-10-21
Posts: 5

Re: pypanel & sonata wont start

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 big_smile

Offline

Board footer

Powered by FluxBB