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.
Top answer 1 of 16
744
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.
2 of 16
255
According to this link, it solved by entering this command:
export LC_ALL=C
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
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
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
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
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
Videos
00:59
How to fix locale.Error: unsupported locale setting when using ...
03:42
pip install - locale.Error: unsupported locale setting - YouTube
01:26
PYTHON : pip install - locale.Error: unsupported locale setting ...
01:20
PYTHON : Python locale error: unsupported locale setting - YouTube
03:35
How to resolver Locale Error or Language is unset or Setting locale ...
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.
Top answer 1 of 10
663
The root cause is: your environment variable LC_ALL is missing or invalid somehow
Short answer-
just run the following command:
$ export LC_ALL=C
If you keep getting the error in new terminal windows, add it at the bottom of your .bashrc file.
Long answer-
Here is my locale settings:
$ locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=C
Python2.7
$ uname -a
Linux debian 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u6 (2015-11-09) x86_64 GNU/Linux
$ python --version
Python 2.7.9
$ pip --version
pip 8.1.1 from /usr/local/lib/python2.7/dist-packages (python 2.7)
$ unset LC_ALL
$ pip install virtualenv
Traceback (most recent call last):
File "/usr/local/bin/pip", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python2.7/dist-packages/pip/__init__.py", line 215, in main
locale.setlocale(locale.LC_ALL, '')
File "/usr/lib/python2.7/locale.py", line 579, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting
$ export LC_ALL=C
$ pip install virtualenv
Requirement already satisfied (use --upgrade to upgrade): virtualenv in /usr/local/lib/python2.7/dist-packages
2 of 10
45
Run the following command (it will work):
export LC_ALL="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"
sudo dpkg-reconfigure locales
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
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
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...