InvokeAI icon indicating copy to clipboard operation
InvokeAI copied to clipboard

[bug]: Error: unsupported locale setting

Open pbsds opened this issue 2 years ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

OS

Linux

GPU

cuda

VRAM

8GB

What version did you experience this issue on?

922468b8361d49a2dd308b0404779400fa6fb236

What happened?

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.

Screenshots

No response

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.

Contact Details

No response

pbsds avatar Jun 25 '23 20:06 pbsds