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 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
Country: Germany
Language: American English
Python 2.7.6
KUbuntu 14.04 64bits
KDE: 4.13.1
Qt: 4.8.6
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
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
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!
For the record. The cause of the error was a non standard locale in my machine:
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!
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!
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
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