linux – why do I get a locale error even thougfh it is set?

When I run bitbake, I’m getting the following:

$ bitbake core-image-base
Please use a locale setting which supports utf-8.
Python can't change the filesystem locale after loading so we need a utf-8 when python starts or things won't work.

even though my locale is set to en_US.UTF-8, why is this?

$ echo $LC_ALL