Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: unsupported locale setting #43

Open
pbsds opened this issue Jul 2, 2023 · 3 comments
Open

Error: unsupported locale setting #43

pbsds opened this issue Jul 2, 2023 · 3 comments

Comments

@pbsds
Copy link

pbsds commented Jul 2, 2023

During initial setup with nix run .#invokeai-nvidia on a non-nixos machine i got Error: unsupported locale setting thrown from nix/store/iw1vmh509hcbby8dbpsaanbri4zsq7dj-python3-3.10.10/lib/python3.10/locale.py:620.

The fix is as easy as export LC_ALL=C, but it is not something i want to add to my bash profile.
I've run into something like this before, and my fix at the time was to include more locales in the runtime closure.

Additional context

$ env | grep -e ^LC_ -e ^LOCAL -e ^LANG | sort
LANG=en_US.UTF-8
LC_ADDRESS=nb_NO.UTF-8
LC_IDENTIFICATION=nb_NO.UTF-8
LC_MEASUREMENT=nb_NO.UTF-8
LC_MONETARY=nb_NO.UTF-8
LC_NAME=nb_NO.UTF-8
LC_NUMERIC=nb_NO.UTF-8
LC_PAPER=nb_NO.UTF-8
LC_TELEPHONE=nb_NO.UTF-8
LC_TIME=nb_NO.UTF-8

The setup worked fine on my nixos machine, which also uses a norwegian locale.

@MatthewCroughan
Copy link
Member

Yeah we need to figure out what we're going to do regarding this. I'm thinking we'll simply have to set LC_ALL=C if you're running outside of NixOS, which limits us to English outside of NixOS.

@1800alex
Copy link

I was able to get by this issue by using LC_ALL="C" nix run --extra-experimental-features nix-command --extra-experimental-features flakes github:nixified-ai/flake#invokeai-amd -- --web in case anyone using nix-shell has this same issue

@pbsds
Copy link
Author

pbsds commented Sep 25, 2023

To get luatex working in the past i added this line to environment variable to mkShell:

LOCALE_ARCHIVE = "${pkgs.glibcLocales}/lib/locale/locale-archive";

Possibly something to look into

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants