I've written a kodi add-on that successfully runs under LE 8.2.5 and under Kodi Leia running on a windows 10 computer. However, when I run my add-on using LE version 9.1.002 on a Raspberry Pi 2, I get the following error:
Error Type: <class 'locale.Error'>
Error Contents: unsupported locale setting
Traceback (most recent call last):
File "/storage/.kodi/addons/script.service.ltvpl/service.py", line 39, in <module>
File "/storage/.kodi/addons/script.service.ltvpl/Countdown.py", line 32, in <module>
from ListItemPlus import ListItemPlus
File "/storage/.kodi/addons/script.service.ltvpl/ListItemPlus.py", line 25, in <module>
File "/usr/lib/python2.7/locale.py", line 581, in setlocale
Error: unsupported locale setting
This is the code snippet from the module that produced the error:
This is the same code that's found in the locale documentation found here.
I've never seen this error under any other OS running my add-on and am really puzzled why it's happening.
Does anyone have any suggestions on how to fix this problem?