unsupported locale setting & XRecord

69 views
Skip to first unread message

cbourbou

unread,
Feb 9, 2012, 12:27:28 AM2/9/12
to autokey-users
Hi all

I see that the method to solve the "unsupported locale setting"
problem is to "go into AutoKey's preferences, and on the Interface tab
change the setting to "XRecord"".

But I cannot enter the Autokey preferences, since the application
doesn't start. However, I've found that I already seem to use XRecord,
as in [Home]/.config/Autokey/autokey.json it says "interfaceType":
"XRecord"

Running
Ubuntu 11.10
Autokey 0.71.2-1
Python: 2.7.2-7ubuntu2

Autokey crashes with:

$ autokey
(process:14187): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
Traceback (most recent call last):
File "/usr/bin/autokey", line 20, in <module>
from autokey.gtkapp import Application
File "/usr/lib/python2.7/dist-packages/autokey/gtkapp.py", line 27,
in <module>
from gtkui.notifier import Notifier
File "/usr/lib/python2.7/dist-packages/autokey/gtkui/notifier.py",
line 19, in <module>
import popupmenu, abbrselector
File "/usr/lib/python2.7/dist-packages/autokey/gtkui/
abbrselector.py", line 21, in <module>
import configwindow
File "/usr/lib/python2.7/dist-packages/autokey/gtkui/
configwindow.py", line 26, in <module>
locale.setlocale(locale.LC_ALL, '')
File "/usr/lib/python2.7/locale.py", line 540, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting

Anything else I can do?

Many thanks

Al

unread,
Feb 9, 2012, 4:22:37 PM2/9/12
to autokey-users
Hi cbourbo,

I see that you are using the older AutoKey that is in the Ubuntu
repositories. I suggest you install the latest one as provided on the
http://code.google.com/p/autokey/ page. Simply use the provided ppa
and you will most likely notice your issue to have been resolved. If
not please post back here with the updated information.

Thank You,

Al

Chris D

unread,
Feb 10, 2012, 7:26:50 PM2/10/12
to autokey-users
Can you post the output of env | grep LANG

cbourbou

unread,
Feb 13, 2012, 10:45:46 AM2/13/12
to autokey-users
Hi

- Using the autokey ppa now, version 0.81.4.0~oneiric. Still autokey
won't start up with "locale.Error: unsupported locale setting"
- env | grep LANG shows LANG=en_CH.UTF-8 (CH being Switzerland, DE/
Germany would also be possible if that fits better)

Thanks
Tino

Chris D

unread,
Feb 13, 2012, 3:32:10 PM2/13/12
to autokey-users
This problem is caused by incomplete language/locale support on your
system. You can try the following:

sudo apt-get install language-pack-en

Chris

cbourbou

unread,
Feb 14, 2012, 12:59:44 AM2/14/12
to autokey-users
Did try, but the pack is already installed:
language-pack-en is already the newest version.

Cheers
Tino

cbourbou

unread,
Feb 14, 2012, 1:22:13 AM2/14/12
to autokey-users
Works - went to System Settings / Language Support, where first a few
missing EN packs for packages like GIMP were downloaded, but I don't
think that turned the trick. I then installed the GERMAN pack (which
also contains Switzerland locale) - and after the next Login, Autokey
did work.

Many thanks for your support!
Tino
Reply all
Reply to author
Forward
0 new messages