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

issue with click in analysis3 #20

Open
paolap opened this issue Feb 28, 2019 · 6 comments
Open

issue with click in analysis3 #20

paolap opened this issue Feb 28, 2019 · 6 comments

Comments

@paolap
Copy link
Member

paolap commented Feb 28, 2019

Hi ,
I'm getting this issue when try to run code that sues click with analysis3
[pxp581@raijin2 ERA5]$ python cli.py --help
Traceback (most recent call last):
File "cli.py", line 224, in
era5()
File "/g/data3/hh5/public/apps/miniconda3/envs/analysis3-18.10/lib/python3.6/site-packages/click/core.py", line 764, in call
return self.main(*args, **kwargs)
File "/g/data3/hh5/public/apps/miniconda3/envs/analysis3-18.10/lib/python3.6/site-packages/click/core.py", line 696, in main
_verify_python3_env()
File "/g/data3/hh5/public/apps/miniconda3/envs/analysis3-18.10/lib/python3.6/site-packages/click/_unicodefun.py", line 124, in _verify_python3_env
' mitigation steps.' + extra
RuntimeError: Click will abort further execution because Python 3 was configured to use ASCII as encoding for the environment. Consult https://click.palletsprojects.com/en/7.x/python3/ for mitigation steps.

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

I've cut down the locales list

This is not happening if I use clef-test environment which is also using python3

@aidanheerdegen
Copy link
Member

What happens if you set an appropriate locale? Does it work?

@paolap
Copy link
Member Author

paolap commented Feb 28, 2019

I didn't try, didn't have time to do anything more on this today, especially given that using clef-test works and it used to work before.
So it seems to me it doesn't depend on what i was trying to do.
I can try tomorrow if persists

@aidanheerdegen
Copy link
Member

So it isn't stopping you from working? I'm not a fan of click. Not sure it is worth the overhead TBH.

@paolap
Copy link
Member Author

paolap commented Feb 28, 2019

I'm not arguing if it has to stay in analysis3 or not, it's probably used more if you're doing tools then if you're analysing data, just pointing out it stopped working and that the reason might affect other packages. I'm perfectly happy if it is removed from analysis3

@aidanheerdegen
Copy link
Member

If it is used by other tools it has to stay. If it becomes an issue we might have to isolate that tools in an environment which supports click correctly I guess. Or invoke the tool with a script that sets the locale to something that click is ok with?

@paolap
Copy link
Member Author

paolap commented Feb 28, 2019

It's used in clef definitely but that has its own environment for the moment.

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

2 participants