Run following commands

export LC_ALL="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"
sudo dpkg-reconfigure locales

It will solve this.

Make sure to match the .UTF-8 part to the actual syntax found in the output of locale -a e.g. .utf8 on some systems.

Answer from Muhammad Hassan on Stack Overflow
🌐
GitHub
github.com › sphinx-doc › sphinx › issues › 11739
[macOS] Unable to "make html" due to locale.Error: unsupported locale setting · Issue #11739 · sphinx-doc/sphinx
October 26, 2023 - Traceback (most recent call last): File "/Users/DelazJ/Documents/gh/anotherDocBranch/venv/bin/sphinx-build", line 8, in sys.exit(main()) File "/Users/DelazJ/Documents/gh/anotherDocBranch/venv/lib/python3.9/site-packages/sphinx/cmd/build.py", line 326, in main locale.setlocale(locale.LC_ALL, '') File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/locale.py", line 610, in setlocale return _setlocale(category, locale) locale.Error: unsupported locale setting make: *** [html] Error 1 ·
Author   DelazJ
Discussions

Locale error: unsupported locale setting
Hi, Everything works fine in my local environment. However, I am getting a locale error: unsupported locale setting error on deploying to Streamlit cloud. I am setting the locale as follows - locale.setlocale(locale.LC_ALL, "en_US") Any ideas? Thanks More on discuss.streamlit.io
🌐 discuss.streamlit.io
1
0
November 23, 2022
python - pip install - locale.Error: unsupported locale setting - Stack Overflow
Full stacktrace: ➜ ~ pip install virtualenv Traceback (most recent call last): File "/usr/bin/pip", line 11, in sys.exit(main()) File "/usr/lib/python3.4/site-packages/pip/ More on stackoverflow.com
🌐 stackoverflow.com
locale.Error: unsupported locale setting
I'm trying to pull up my app developed in Django directly from the Github repository with the App Runner service. I have the following configuration in the apprunner.yaml file version: 1.0 ... More on repost.aws
🌐 repost.aws
2
0
June 10, 2024
locale.Error: unsupported locale setting
juan@x ~ $ kitty [099 19:38:10.894564] Traceback (most recent call last): File "/usr/bin/../lib/kitty/kitty/main.py", line 186, in main _main() File "/usr/bin/../lib/kitty/kitty/main... More on github.com
🌐 github.com
10
January 25, 2018
🌐
DEV Community
dev.to › deepika_banoth › how-to-fix-locale-error-unsupported-locale-setting-on-pip-install-4noj
How to fix: "locale.Error: unsupported locale setting" on pip install - DEV Community
January 24, 2020 - You generally run LC_ALL=C to avoid user's settings to interfere with your script. The C locale is for computers and in the C locale, characters are single bytes, the charset is ASCII, the sorting order is based on byte values, the language ...
🌐
JanBask Training
janbasktraining.com › community › python-python › python-locale-error-unsupported-locale-setting
Python locale error: unsupported locale setting | JanBask Training Community
April 13, 2021 - The "Unsupported Locale Setting" error in Python usually occurs when you try to set a locale that is not supported by your system.
🌐
Bobby Hadz
bobbyhadz.com › blog › locale-error-unsupported-locale-setting-in-python
Python: locale.Error: unsupported locale setting [Solved] | bobbyhadz
April 10, 2024 - The Python error locale.Error: unsupported locale setting occurs when the LC_ALL environment variable is not set or is set to an invalid value
Find elsewhere
🌐
Arch Linux Forums
bbs.archlinux.org › viewtopic.php
[SOLVED] Pypanel not working: Locale error / Newbie Corner / Arch Linux Forums
[1] user@arch> sudo locale-gen ~ Generating locales... en_US.UTF-8 Generation complete. ... Somewhere you are setting the locale to something else than en_US.utf8, find it and fix it.
🌐
Delft Stack
delftstack.com › home › howto › python › locale.error unsupported locale setting
How to Fix Locale.Error: Unsupported Locale Setting in Python | Delft Stack
September 25, 2020 - But you can change the default locale into your preferred locale from the available list with the help of the setlocale() function. ... In Python, when you are new to the locale module, you might encounter the locale.Error: unsupported locale setting at some point.
🌐
Medium
medium.com › @mohammedhammoud › fix-locale-error-unsupported-locale-setting-f9849eec41f1
Fix locale.Error: unsupported locale setting | by Mohammed Hammoud | Medium
April 27, 2017 - Fix locale.Error: unsupported locale setting Ok, so I’ve just encountered the following error on my newly installed Ubuntu Machine: locale.Error: unsupported locale setting when I was trying create …
🌐
Red Hat
access.redhat.com › solutions › 5233421
authconfig is failing with error "return _setlocale(category, locale) locale.Error: unsupported locale setting" - Red Hat Customer Portal
authconfig failed to update /etc/nssswitc.conf and PAM config. # authconfig --enablesssd --enablesssdauth --update Traceback (most recent call last): File "/usr/sbin/authconfig", line 33, in locale.setlocale(locale.LC_ALL, '') File "/usr/lib64/python2.6/locale.py", line 513, in setlocale return _setlocale(category, locale) locale.Error: unsupported locale setting
Top answer
1 of 2
5
Hello, Instead of using apprunner.yaml, you can: **Customize a Docker Container:** * Build a Docker container locally with your required locale settings. * Push the container to Amazon ECR. * Use this custom container in AWS App Runner. **Install Locale Packages in apprunner.yaml:** * If you prefer using apprunner.yaml, add the necessary locale package installation: ``` version: 1.0 runtime: python311 build: commands: pre-build: - yum install -y glibc-all-langpacks - export LC_ALL=es_ES.UTF-8 - export LC_TIME=es_ES.UTF-8 - export LANG=es_ES.UTF-8 build: - pip3 install pipenv - pipenv install run: runtime-version: 3.11.9 pre-run: - pip3 install pipenv - pipenv install command: pipenv run gunicorn conf.wsgi --workers 2 --log-file - network: port: 8000 ``` https://docs.aws.amazon.com/apprunner/latest/dg/service-source-code.html#service-source-code.managed-platforms https://docs.aws.amazon.com/linux/al2023/ug/image-comparison.html
2 of 2
1
Hello. Instead of building with apprunner.yaml, I think you can customize the container as you like by building the container using Dockerfile etc. on your local PC and pulling it from ECR to AppRunner. When using apprunner.yaml, the container OS seems to be based on Amazon Linux, so you may be able to install it by adding "yum glibc-all-langpacks" to the build section. https://docs.aws.amazon.com/apprunner/latest/dg/service-source-code.html#service-source-code.managed-platforms > This image is based on the Amazon Linux Docker image and contains a language runtime package as well as some tools and popular dependency packages. If Amazon Linux 2023 is used, I think "glibc-all-langpacks" can be installed. https://docs.aws.amazon.com/linux/al2023/ug/image-comparison.html
🌐
Ubuntu
bugs.launchpad.net › bugs › 2020064
Bug #2020064 “[SRU] locale.Error: unsupported locale setting” : Bugs : Landscape Client
py", line 608, in setlocale return _setlocale( category, locale) locale.Error: unsupported locale setting · * This prevents landscape-client from reporting packages, preventing all subsequent package activities.
🌐
Gentoo Forums
forums.gentoo.org › viewtopic-p-8145330.html
Gentoo Forums :: View topic - [SOLVED] setlocale: unsupported locale setting
November 23, 2017 - FAQ | Search | Memberlist | Usergroups | Statistics | Profile | Log in to check your private messages | Log in | Register · Links: forums.gentoo.org | www.gentoo.org | bugs.gentoo.org | wiki.gentoo.org | forum-mods@gentoo.org
🌐
GitHub
gist.github.com › aduquet › 9e44aa904fb5873fdbd9d4dbb8b9d5e5
locale.Error: unsupported locale setting GitHub
locale.Error: unsupported locale setting. GitHub Gist: instantly share code, notes, and snippets.
🌐
GitHub
github.com › kovidgoyal › kitty › issues › 450
locale.Error: unsupported locale setting · Issue #450 · kovidgoyal/kitty
January 25, 2018 - juan@x ~ $ kitty [099 19:38:10.894564] Traceback (most recent call last): File "/usr/bin/../lib/kitty/kitty/main.py", line 186, in main _main() File "/usr/bin/../lib/kitty/kitty/main.py", line 117, in _main locale.setlocale(locale.LC_ALL, '') File "/usr/lib/python3.6/locale.py", line 598, in setlocale return _setlocale(category, locale) locale.Error: unsupported locale setting juan@x ~ [1]$ python --version Python 3.6.4 juan@x ~ [1]$ gcc --version gcc (GCC) 7.3.1 20180312 Copyright (C) 2017 Free Software Foundation, Inc.
Author   juancarlospaco
🌐
GitHub
github.com › israel-dryer › ttkbootstrap › issues › 505
Unsupported locale setting on module import for Norwegian locale · Issue #505 · israel-dryer/ttkbootstrap
October 31, 2023 - When working on a PC with Norwegian locale, DatePickerDialog throws a "local.Error", failing the import of ttkboostrap. Norwegian locale contains non-ASCII characters "å", which is not accepted in setting the locale in line 566 of \ttkbootstrap\dialogs\dialogs.py".
Author   Lore-Gaviano
🌐
Raspberry Pi Forums
forums.raspberrypi.com › board index › programming › python
[SOLVED] unsupported locale setting raspberry pi ? - Raspberry Pi Forums
locale -a then go to "raspi-config" > "localisation Options" > "change locale" > and select your locale. ... pcmanbob wrote:I presume you want to set locale to Indonesia if so you are using the wrong code id_ID it should be Indonesian (Indonesia) : in_ID i'm confuse with this 2 locale , one ...
🌐
Lutris Forums
forums.lutris.net › support
locale.Error: unsupported locale setting - Support - Lutris Forums
April 25, 2019 - Hello there, I’m new to linux community and I wanted to check if some of my favorite games run here or not, well color me surprised when I found they do run with the help of lutris. So I intalled it, but there seem to be an error. (base) [shan@Kreta ~]$ lutris Traceback (most recent call last): File “/usr/bin/lutris”, line 27, in locale.setlocale(locale.LC_ALL, locale_name) File “/usr/lib/python3.7/locale.py”, line 604, in setlocale return _setlocale(category, locale) lo...