Start a new topic

locale.Error: unsupported locale setting

When I try to deploy my project I get the following error:

locale.Error: unsupported locale setting


This is the faulty entry:

locale.setlocale(locale.LC_ALL, 'german')


How does the error occur and what must I do to end the error?


In attach files you can see the build log


Thank you for your help :)

txt
(8.16 KB)
1 Comment

I solved the problem by changing this:

locale.setlocale(locale.LC_ALL, 'german')


to this:

locale.setlocale(locale.LC_ALL, 'de_DE.utf8')

Login to post a comment