onaio / onadata

Collect, Analyze and Share
https://ona.io
Other
183 stars 133 forks source link

locale.Error: unsupported locale setting #2634

Closed KipSigei closed 4 months ago

KipSigei commented 4 months ago
File "/srv/onadata/onadata/apps/viewer/tasks.py", line 353, in create_sav_zip_export
    gen_export = generate_export(
  File "/srv/onadata/onadata/libs/utils/common_tools.py", line 175, in function_retry
    result = func(self, *args, **kwargs)
  File "/srv/onadata/onadata/libs/utils/export_tools.py", line 288, in generate_export
    func(
  File "/srv/onadata/onadata/libs/utils/export_builder.py", line 1404, in to_zipped_sav
    sav_writer = SavWriter(
  File "/srv/onadata/src/savreaderwriter/savReaderWriter/savWriter.py", line 195, in __init__
    super(Header, self).__init__(savFileName, ioUtf8, ioLocale)
  File "/srv/onadata/src/savreaderwriter/savReaderWriter/generic.py", line 27, in __init__
    locale.setlocale(locale.LC_ALL, "" if ioLocale is None else ioLocale)
  File "/home/appuser/.pyenv/versions/3.10.14/lib/python3.10/locale.py", line 620, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting
KipSigei commented 4 months ago

Addressed via #2630