luglilab / Cytophenograph

Pipeline for flow cytometry anlaysis
Creative Commons Attribution 4.0 International
5 stars 1 forks source link

ValueError: unknown locale: UTF-8 [Mac OS] #3

Closed luglilab closed 1 year ago

luglilab commented 3 years ago

During Installation: Traceback (most recent call last): File "", line 1, in File "/Users/simone/opt/anaconda3/envs/cytophenograph2/lib/python3.6/site-packages/anndata/init.py", line 7, in from ._core.anndata import AnnData, ImplicitModificationWarning File "/Users/simone/opt/anaconda3/envs/cytophenograph2/lib/python3.6/site-packages/anndata/_core/anndata.py", line 18, in from natsort import natsorted File "/Users/simone/opt/anaconda3/envs/cytophenograph2/lib/python3.6/site-packages/natsort/init.py", line 3, in from natsort.natsort import ( File "/Users/simone/opt/anaconda3/envs/cytophenograph2/lib/python3.6/site-packages/natsort/natsort.py", line 686, in os_sort_key = os_sort_keygen() File "/Users/simone/opt/anaconda3/envs/cytophenograph2/lib/python3.6/site-packages/natsort/natsort.py", line 649, in os_sort_keygen return natsort_keygen(key=key, alg=ns.LOCALE | ns.PATH | ns.IGNORECASE) File "/Users/simone/opt/anaconda3/envs/cytophenograph2/lib/python3.6/site-packages/natsort/natsort.py", line 177, in natsort_keygen input_transform = utils.input_string_transform_factory(alg) File "/Users/simone/opt/anaconda3/envs/cytophenograph2/lib/python3.6/site-packages/natsort/utils.py", line 503, in input_string_transform_factory thou=re.escape(get_thousands_sep()), nodecimal=nodecimal File "/Users/simone/opt/anaconda3/envs/cytophenograph2/lib/python3.6/site-packages/natsort/compat/locale.py", line 73, in get_thousands_sep loc = ".".join(locale.getlocale()) File "/Users/simone/opt/anaconda3/envs/cytophenograph2/lib/python3.6/locale.py", line 581, in getlocale return _parse_localename(localename) File "/Users/simone/opt/anaconda3/envs/cytophenograph2/lib/python3.6/locale.py", line 490, in _parse_localename raise ValueError('unknown locale: %s' % localename) ValueError: unknown locale: UTF-8

luglilab commented 3 years ago

If you have faced the error on MacOS X, here's the quick fix - add these lines to your ~/.bash_profile:

export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8