bugfix/ETQ Administrateur, je veux corriger l'erreur Python was configured to use ASCII
Situation actuelle
(venv) [centos@ssham-srv ssham-server]$ flask run
Traceback (most recent call last):
File "/home/centos/venv/bin/flask", line 8, in <module>
sys.exit(main())
File "/home/centos/venv/lib64/python3.6/site-packages/flask/cli.py", line 995, in main
cli.main(args=sys.argv[1:])
File "/home/centos/venv/lib64/python3.6/site-packages/flask/cli.py", line 601, in main
return super().main(*args, **kwargs)
File "/home/centos/venv/lib64/python3.6/site-packages/click/core.py", line 1034, in main
_verify_python_env()
File "/home/centos/venv/lib64/python3.6/site-packages/click/_unicodefun.py", line 100, in _verify_python_env
raise RuntimeError("\n\n".join(extra))
RuntimeError: Click will abort further execution because Python was configured to use ASCII as encoding for the environment. Consult https://click.palletsprojects.com/unicode-support/ for mitigation steps.
This system lists some UTF-8 supporting locales that you can pick from. The following suitable locales were discovered: fr_FR.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 'C.UTF-8' but it is not supported.
Actions
-
définir correctement la locale system -
documenter la solution dans le README
Edited by HARRY Guillaume