You are not logged in.

#1 2014-01-02 22:23:00

Wasmasjien
Member
Registered: 2014-01-02
Posts: 5

[SOLVED] Pypanel not working: Locale error

I have been looking around for a solution to this, but nothing works for me.
I get the following error when trying to run pypanel:

user@arch> pypanel                                                            ~
Traceback (most recent call last):
  File "/usr/bin/pypanel", line 948, in <module>
    locale.setlocale(locale.LC_ALL, "")
  File "/usr/lib/python2.7/locale.py", line 547, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting

Here is the output of "locale"

[1] user@arch> locale                                                         ~
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en-US.UTF-8
LC_CTYPE=C
LC_NUMERIC=en-US.UTF-8
LC_TIME=en-US.UTF-8
LC_COLLATE=C
LC_MONETARY=en-US.UTF-8
LC_MESSAGES=C
LC_PAPER=en-US.UTF-8
LC_NAME=en-US.UTF-8
LC_ADDRESS=en-US.UTF-8
LC_TELEPHONE=en-US.UTF-8
LC_MEASUREMENT=en-US.UTF-8
LC_IDENTIFICATION=en-US.UTF-8
LC_ALL=

I have uncommented "en_US.UTF-8" in /etc/locale.gen and ran locale-gen. This is what it gave me (looks normal to me):

[1] user@arch> sudo locale-gen                                                ~
Generating locales...
  en_US.UTF-8
Generation complete.

Can anyone help?

Last edited by Wasmasjien (2014-01-03 10:25:09)

Offline

#2 2014-01-02 22:38:59

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [SOLVED] Pypanel not working: Locale error

Somewhere you are setting the locale to something else than en_US.utf8, find it and fix it.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#3 2014-01-02 23:27:43

Wasmasjien
Member
Registered: 2014-01-02
Posts: 5

Re: [SOLVED] Pypanel not working: Locale error

Mr.Elendig wrote:

Somewhere you are setting the locale to something else than en_US.utf8, find it and fix it.

I followed the exact instructions for setting up locales like on the wiki. My /etc/locale.conf now only contains

LANG="en-US.UTF-8"

and my output of "locale" is now

user@arch> locale                                                             ~
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en-US.UTF-8
LC_CTYPE="en-US.UTF-8"
LC_NUMERIC="en-US.UTF-8"
LC_TIME="en-US.UTF-8"
LC_COLLATE="en-US.UTF-8"
LC_MONETARY="en-US.UTF-8"
LC_MESSAGES="en-US.UTF-8"
LC_PAPER="en-US.UTF-8"
LC_NAME="en-US.UTF-8"
LC_ADDRESS="en-US.UTF-8"
LC_TELEPHONE="en-US.UTF-8"
LC_MEASUREMENT="en-US.UTF-8"
LC_IDENTIFICATION="en-US.UTF-8"
LC_ALL=

Still the same error.

Last edited by Wasmasjien (2014-01-02 23:28:17)

Offline

#4 2014-01-03 00:18:26

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [SOLVED] Pypanel not working: Locale error

Check .bashrc, settings in your de if you run one etc

Edit:

Uhm, en-US.UTF-8 is not valid, en_US.UTF-8 is. (or en_US.utf8 which is more correct)

Sorry I should have spotted it in the original post. (I blame the crappy phone screen!)

Last edited by Mr.Elendig (2014-01-03 00:21:18)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#5 2014-01-03 10:23:51

Wasmasjien
Member
Registered: 2014-01-02
Posts: 5

Re: [SOLVED] Pypanel not working: Locale error

Mr.Elendig wrote:

Check .bashrc, settings in your de if you run one etc

Edit:

Uhm, en-US.UTF-8 is not valid, en_US.UTF-8 is. (or en_US.utf8 which is more correct)

Sorry I should have spotted it in the original post. (I blame the crappy phone screen!)

I changed it to en_US.UTF-8 and everything works now (after a reboot). All this trouble for a typo...

Thanks a lot for your help!

Offline

Board footer

Powered by FluxBB