Install QIIME2 problem : The exported locale is "en_US.UTF-8" but it is not supported

Hi,I have installed qiime2-2018.6 successfully, also i can activate the environment by run “source activate qiime2-2018.6”,but the problem occurred when i run “qiime --help”.

Traceback (most recent call last):
File “/home/wangd/miniconda2/envs/qiime2-2018.6/bin/qiime”, line 11, in
sys.exit(qiime())
File “/home/wangd/miniconda2/envs/qiime2-2018.6/lib/python3.5/site-packages/click/core.py”, line 722, in call
return self.main(*args, **kwargs)
File “/home/wangd/miniconda2/envs/qiime2-2018.6/lib/python3.5/site-packages/click/core.py”, line 676, in main
_verify_python3_env()
File “/home/wangd/miniconda2/envs/qiime2-2018.6/lib/python3.5/site-packages/click/_unicodefun.py”, line 118, in _verify_python3_env
‘for mitigation steps.’ + extra)
RuntimeError: Click will abort further execution because Python 3 was configured to use ASCII as encoding for the environment. Consult http://click.pocoo.org/python3/for mitigation steps.

This system lists a couple of UTF-8 supporting locales that
you can pick from. The following suitable locales where
discovered: aa_DJ.utf8, aa_ER.utf8, aa_ET.utf8 and have a list of .utf8 like this.

I also have run the commands as you offered in previous topic, i have got :

(qiime2-2018.6) [wangd@localhost qiime-2018.6]$ echo LC_ALL en_US.UTF-8 (qiime2-2018.6) [wangd@localhost qiime-2018.6] echo LANG en_US.UTF-8 (qiime2-2018.6) [wangd@localhost qiime-2018.6] export LC_ALL=en_US.UTF-8
-bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
-bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
(qiime2-2018.6) [wangd@localhost qiime-2018.6]$ export LANG=en_US.UTF-8

and the last line got nothing reply.

After that ,i run the "qiime --help"again,and failed again.

Traceback (most recent call last):
File “/home/wangd/miniconda2/envs/qiime2-2018.6/bin/qiime”, line 11, in
sys.exit(qiime())
File “/home/wangd/miniconda2/envs/qiime2-2018.6/lib/python3.5/site-packages/click/core.py”, line 722, in call
return self.main(*args, **kwargs)
File “/home/wangd/miniconda2/envs/qiime2-2018.6/lib/python3.5/site-packages/click/core.py”, line 676, in main
_verify_python3_env()
File “/home/wangd/miniconda2/envs/qiime2-2018.6/lib/python3.5/site-packages/click/_unicodefun.py”, line 118, in _verify_python3_env
‘for mitigation steps.’ + extra)
RuntimeError: Click will abort further execution because Python 3 was configured to use ASCII as encoding for the environment. Consult http://click.pocoo.org/python3/for mitigation steps.

This system lists a couple of UTF-8 supporting locales that
you can pick from. The following suitable locales where
discovered: aa_DJ.utf8, aa_ER.utf8, aa_ET.utf8, af_ZA.utf8,…

Click discovered that you exported a UTF-8 locale
but the locale system could not pick up from it because
it does not exist. The exported locale is “en_US.UTF-8” but it
is not supported

I have no idea how to address this question,and eager for help,thank you.

Hey @zy-yuan,

It looks like your system just spell UTF8 a little differently.

If you run:

locale -a

It will list every installed locale, find one that ends in .utf8 which matches what you expect. If you don’t have a preference, there might be an en_US.utf8 listed which you could use.

Then set that locale with:

export LC_ALL=<what you picked>.utf8

That should clear up the issue!

Hi, @ebolyen,thanks for your reply,while i can’t resolve it .The following are my commands :
I first run “locale”,and then “locale -a”,they have the same problem as follows,

[wangd@localhost ~]$ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LC_CTYPE=“en_US.UTF-8”
LC_NUMERIC=“en_US.UTF-8”
LC_TIME=“en_US.UTF-8”
LC_COLLATE=“en_US.UTF-8”
LC_MONETARY=“en_US.UTF-8”
LC_MESSAGES=“en_US.UTF-8”
LC_PAPER=“en_US.UTF-8”
LC_NAME=“en_US.UTF-8”
LC_ADDRESS=“en_US.UTF-8”
LC_TELEPHONE=“en_US.UTF-8”
LC_MEASUREMENT=“en_US.UTF-8”
LC_IDENTIFICATION=“en_US.UTF-8”
LC_ALL=en_US.UTF-8

[wangd@localhost ~]$ locale -a
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
C
POSIX
aa_DJ
aa_DJ.iso88591
aa_DJ.utf8
aa_ER
aa_ER.utf8
aa_ER.utf8@saaho
aa_ER@saaho
aa_ET
aa_ET.utf8
af_ZA
af_ZA.iso88591
af_ZA.utf8
am_ET
am_ET.utf8
an_ES
an_ES.iso885915
an_ES.utf8
ar_AE

en_SG
en_SG.iso88591
en_SG.utf8
en_US
en_US.iso88591
en_US.iso885915
en_US.utf8

but i also found the en_US.utf8 by run “locale -a”.

next i run the commands as you offered,

[wangd@localhost ~]$ export LC_ALL=en_US.utf8
-bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf8)
-bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf8)

It looks like i can’t do that.

how can i solve it ?thank you again, u r really kind :sunny:

Hi @zy-yuan!

It looks like your system never finished making these locales.

You will need to find your locale in this file: /etc/locale.gen
Once you've found the line, remove the # character if it is present. Once that is done, run the following:

locale-gen

(This will hunt through the file you just edited and generate the locales that aren't commented out.)

Once that is done, you should be able to export LC_ALL again (I hope!).

1 Like

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.