HackerShackOfficial / Smart-Mirror

Raspberry powered mirror which can display news, weather, calendar events
MIT License
908 stars 384 forks source link

locale.Error: unsupported locale setting #45

Open Tchev146 opened 7 years ago

Tchev146 commented 7 years ago

Hi, i have an issue when i try to execute "sudo python ./smartmirror.py", can anyone help ? This is the error that's return :

pi@SmartMirror:~/Downloads/Smart-Mirror-master$ sudo python smartmirror.py Traceback (most recent call last): File "smartmirror.py", line 330, in w = FullscreenWindow() File "smartmirror.py", line 307, in init self.clock = Clock(self.topFrame) File "smartmirror.py", line 77, in init self.tick() File "smartmirror.py", line 80, in tick with setlocale(ui_locale): File "/usr/lib/python2.7/contextlib.py", line 17, in enter return self.gen.next() File "smartmirror.py", line 39, in setlocale yield locale.setlocale(locale.LC_ALL, name) File "/usr/lib/python2.7/locale.py", line 579, in setlocale return _setlocale(category, locale) locale.Error: unsupported locale setting pi@SmartMirror:~/Downloads/Smart-Mirror-master$

Thanks and Happy New Year

milluhgram commented 7 years ago

Do you know where to update the timezone?

chenoi commented 7 years ago

Please check your system locale in your machine locale -a Make sure your enter the correct system for example ui_locale='en_US.utf8' and this is listed in your system locales machine.

dhavaljangale commented 6 years ago

I did everything but still, I keep getting unsupported locale setting. Any fix for this?