Menu

#1528 Unsupported Locale Setting in KDE - Ubuntu

closed
None
linux
2026-01-20
2014-07-03
No
  1. Yesterday I installed Taskcoach for the first time in kubuntu using ppa.
  2. It started using it without any problems.
  3. During the afternoon I changed the country to Germany in the KDE Settings.
  4. I also changed to measurement system to use the metric one.
  5. I also installed the python module easy_install
  6. Yesterday I saved my taskcoach file before shutting down my laptop.
  7. Today I cannot start Taskcoach. When I try it using the terminal, I get the following error message:
arobirosa@creation:~$ taskcoach.py

(process:3731): Gdk-WARNING **: locale not supported by C library

(process:3731): Gtk-WARNING **: Locale not supported by C library.
        Using the fallback 'C' locale.
Traceback (most recent call last):
  File "/usr/bin/taskcoach.py", line 72, in <module>
    start()
  File "/usr/bin/taskcoach.py", line 63, in start
    app = application.Application(options, args)
  File "/usr/share/pyshared/taskcoachlib/patterns/singleton.py", line 29, in __call__
    class_.instance = super(Singleton, class_).__call__(*args, **kwargs)
  File "/usr/share/pyshared/taskcoachlib/application/application.py", line 117, in __init__
    self.init(**kwargs)
  File "/usr/share/pyshared/taskcoachlib/application/application.py", line 211, in init
    self.__init_language()
  File "/usr/share/pyshared/taskcoachlib/application/application.py", line 249, in __init_language
    i18n.Translator(self.determine_language(self._options, self.settings))
  File "/usr/share/pyshared/taskcoachlib/patterns/singleton.py", line 29, in __call__
    class_.instance = super(Singleton, class_).__call__(*args, **kwargs)
  File "/usr/share/pyshared/taskcoachlib/i18n/__init__.py", line 31, in __init__
    self._setLocale(language)
  File "/usr/share/pyshared/taskcoachlib/i18n/__init__.py", line 85, in _setLocale
    locale.setlocale(locale.LC_ALL, '')
  File "/usr/lib/python2.7/locale.py", line 579, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting
  • I tried changing the country of KDE back to USA because I got the same stacktrace.

I attached the taskcoach file and my configuration file.

Above you will find more information which may be useful to reproduce the error. I am a Java developer so I could also help you by running special modified versions of Taskcoach.

Thanks in advance!

Antonio

My system:

Country: Germany
Language: American English
Python 2.7.6
KUbuntu 14.04 64bits
KDE: 4.13.1
Qt: 4.8.6

Command History:

Yesterday

1  sudo apt-add-repository ppa:taskcoach-developers/ppa
2  sudo apt-get update
3  sudo apt-get install taskcoach

Taskcoach was working here.
4 sudo apt-get install keepassx
5 keepassx
6 sudo apt-get install chromium-browser chromium-browser-l10n chromium-codecs-ffmpeg
7 sudo dpkg --add-architecture i386
8 sudo add-apt-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner"
9 sudo apt-get update && sudo apt-get install skype

111 sudo apt-get install python-setuptools
112 easy_install keyring
113 sudo easy_install keyring
114 hg status
115 sudo easy_install mercurial_keyring
116 hg status
117 cd ..
118 less .directory
119 exit

Today

120 sudo aptitude install taskcoach

121 sudo apt-get install taskcoach
122 sudo apt-get reinstall taskcoach
123 apt-get help
124 sudo apt-get remove taskcoach
125 sudo apt-get install taskcoach
126 find ~ -iname taskcoach
127 find ~ -iname taskcoach
128 mv /home/arobirosa/.config/Task Coach/TaskCoach.ini
129 mv "/home/arobirosa/.config/Task Coach/TaskCoach.ini" "/home/arobirosa/.config/Task Coach/TaskCoach.notworking.ini"
130 taskcoach.py
131 locale -A
132 locale -a
133 taskcoach.py
It didn't worked.
134 sudo taskcoach.py
It didn't worked
135 less /home/arobirosa/.local/share/applications/taskcoach.py.desktop
136 apt-get help
137 history

1 Attachments

Discussion

  • Anonymous

    Anonymous - 2014-07-03

    I set the language in the following setting of the ini file and I get the same stackstrace:

    [view]
    language_set_by_user = English (US)
    language = English (US)

    Before this change, this were empty.

    Thanks!

     
  • Anonymous

    Anonymous - 2014-07-04

    For the record. The cause of the error was a non standard locale in my machine:

    arobirosa@creation:~$ locale
    LANG=en_DE.UTF-8
    LANGUAGE=en
    LC_CTYPE="en_DE.UTF-8"
    LC_NUMERIC=en_DE.UTF-8
    LC_TIME=en_DE.UTF-8
    LC_COLLATE="en_DE.UTF-8"
    LC_MONETARY=en_DE.UTF-8
    LC_MESSAGES="en_DE.UTF-8"
    LC_PAPER=en_DE.UTF-8
    LC_NAME=en_DE.UTF-8
    LC_ADDRESS=en_DE.UTF-8
    LC_TELEPHONE=en_DE.UTF-8
    LC_MEASUREMENT=en_DE.UTF-8
    LC_IDENTIFICATION=en_DE.UTF-8
    LC_ALL=
    

    I wanted to have my KDE in English and use the locale for Germany. Unfortunately, this doesn't work with Taskcoach and Perl.

    So I changed the language to German in the KDE konfiguration and restart it, and now TaskCoach is working. My current locale is de_DE (German in Germany).

    I believe that TaskCoach didn't work due to the locale configuration of Python. Due to this, no changes in Taskcoach are necesary and this ticket could be closed with "won't fix" resolution.

    Cheers!

     
  • Jérome Laheurte

    I dunno. Whatever the reason we shouldn't crash at startup. There's probably a way to fallback on the C locale when this happens; I'll take a look.

    Thanks for the detailed report!

     
  • Jérome Laheurte

    • assigned_to: Jérome Laheurte
     
  • Jérome Laheurte

    This bug should be fixed in the latest release of Task Coach. Can you please install the latest release of Task Coach and confirm that this bug has indeed been fixed?

    Thanks, Task Coach development team

     
  • Anonymous

    Anonymous - 2014-08-04

    Hi Jérome,

    I was able to reproduce the error with the old version but Taskcoach 1.4.0 starts without any problem.

    This issue is solved.

    Thanks for your quick fix!

    Antonio

     
  • Jérome Laheurte

    • status: fixed-and-released --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB