Easy install on frappe develop on 16 is not working

Here is the error code.

TASK [bench : Check whether bench exists] **************************************
ok: [localhost]

TASK [bench : python3 bench init for develop] **********************************
fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: [“bench”, “init”, “/home /frappe/frappe-bench”, “–frappe-path”, “https://github.com/frappe/frappe”, “–f rappe-branch”, “develop”, “–python”, “python3”], “delta”: “0:02:16.738792”, “en d”: “2018-05-16 17:51:37.430376”, “msg”: “non-zero return code”, “rc”: 1, “start “: “2018-05-16 17:49:20.691584”, “stderr”: “INFO:bench.utils:virtualenv -q env - p /usr/bin/python3\nINFO:bench.utils:./env/bin/pip -q install --upgrade pip==9.0 .3\nYou are using pip version 9.0.3, however version 10.0.1 is available.\nYou s hould consider upgrading via the ‘pip install --upgrade pip’ command.\nINFO:benc h.utils:./env/bin/pip -q install wheel\nINFO:bench.utils:./env/bin/pip -q instal l six\nINFO:bench.utils:./env/bin/pip -q install -e git+https://github.com/frapp e/python-pdfkit.git#egg=pdfkit\nINFO:bench.app:getting app frappe\nINFO:bench.ut ils:git clone https://github.com/frappe/frappe --branch develop --origin upstre am\nCloning into ‘frappe’…\nINFO:bench.app:installing frappe\nINFO:bench.utils :/home/frappe/frappe-bench/env/bin/pip install -q -e /home/frappe/frappe-bench/ apps/frappe --no-cache-dir\nINFO:bench.utils:yarn install\nTraceback (most recen t call last):\n File “/usr/lib/python3.5/runpy.py”, line 184, in run_module as_main\n “main”, mod_spec)\n File “/usr/lib/python3.5/runpy.py”, li ne 85, in _run_code\n exec(code, run_globals)\n File “/home/frappe/frappe-b ench/apps/frappe/frappe/utils/bench_helper.py”, line 97, in \n main( )\n File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py” , line 18, in main\n click.Group(commands=commands)(prog_name=‘bench’)\n Fil e “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/click/core.py”, l ine 722, in call\n return self.main(*args, **kwargs)\n File “/home/frap pe/frappe-bench/env/lib/python3.5/site-packages/click/core.py”, line 676, in ma in\n _verify_python3_env()\n File “/home/frappe/frappe-bench/env/lib/python 3.5/site-packages/click/_unicodefun.py”, line 118, in _verify_python3_env\n ‘for mitigation steps.’ + extra)\nRuntimeError: Click will abort further executi on because Python 3 was configured to use ASCII as encoding for the environment. Consult http://click.pocoo.org/python3/for mitigation steps.\n\nThis system su pports the C.UTF-8 locale which is recommended.\nYou might be able to resolve yo ur issue by exporting the\nfollowing environment variables:\n\n export LC_ALL =C.UTF-8\n export LANG=C.UTF-8”, “stderr_lines”: [“INFO:bench.utils:virtualen v -q env -p /usr/bin/python3”, “INFO:bench.utils:./env/bin/pip -q install --upgr ade pip==9.0.3”, “You are using pip version 9.0.3, however version 10.0.1 is ava ilable.”, “You should consider upgrading via the ‘pip install --upgrade pip’ com mand.”, “INFO:bench.utils:./env/bin/pip -q install wheel”, “INFO:bench.utils:./e nv/bin/pip -q install six”, “INFO:bench.utils:./env/bin/pip -q install -e git+ht tps://github.com/frappe/python-pdfkit.git#egg=pdfkit”, “INFO:bench.app:getting a pp frappe”, “INFO:bench.utils:git clone https://github.com/frappe/frappe --branc h develop --origin upstream”, “Cloning into ‘frappe’…”, “INFO:bench.app:insta lling frappe”, “INFO:bench.utils:/home/frappe/frappe-bench/env/bin/pip install - q -e /home/frappe/frappe-bench/apps/frappe --no-cache-dir”, “INFO:bench.utils:y arn install”, “Traceback (most recent call last):”, " File “/usr/lib/python3.5 /runpy.py”, line 184, in _run_module_as_main”, " “main”, mod_spec)”, " File “/usr/lib/python3.5/runpy.py”, line 85, in _run_code", " exec(code, run_globals)", " File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/benc h_helper.py”, line 97, in “, " main()”, " File “/home/frappe/frapp e-bench/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main", " clic k.Group(commands=commands)(prog_name=‘bench’)", " File “/home/frappe/frappe-be nch/env/lib/python3.5/site-packages/click/core.py”, line 722, in call", " return self.main(*args, **kwargs)", " File “/home/frappe/frappe-bench/env/li b/python3.5/site-packages/click/core.py”, line 676, in main", " _verify_pyth on3_env()", " File “/home/frappe/frappe-bench/env/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 Pyt hon 3 was configured to use ASCII as encoding for the environment. Consult http ://click.pocoo.org/python3/for mitigation steps.”, “”, “This system supports the C.UTF-8 locale which is recommended.”, “You might be able to resolve your issue by exporting the”, “following environment variables:”, “”, " export LC_ALL=C .UTF-8", " export LANG=C.UTF-8"], “stdout”: “yarn install v1.6.0\n[1/4] Resol ving packages…\n[2/4] Fetching packages…\n[3/4] Linking dependencies…\n[4/ 4] Building fresh packages…\nDone in 29.08s.\n(‘installing’, u’frappe’)\nUpdat ing node packages…”, “stdout_lines”: [“yarn install v1.6.0”, “[1/4] Resolving packages…”, “[2/4] Fetching packages…”, “[3/4] Linking dependencies…”, “[4 /4] Building fresh packages…”, “Done in 29.08s.”, “(‘installing’, u’frappe’)”, “Updating node packages…”]}
to retry, use: --limit @/tmp/.bench/playbooks/site.retry

PLAY RECAP *********************************************************************
localhost : ok=47 changed=30 unreachable=0 failed=1

I did so again, this time instead of using the auto installed frappe, I preinstalled with a sudo frappe user. This is the last part of the traceback I recieved. The production is fine.(for now).

PLAY RECAP *********************************************************************
localhost : ok=47 changed=30 unreachable=0 failed=1

Traceback (most recent call last):
File “install.py”, line 417, in
install_bench(args)
File “install.py”, line 122, in install_bench
run_playbook(‘site.yml’, sudo=True, extra_vars=extra_vars)
File “install.py”, line 338, in run_playbook
success = subprocess.check_call(args, cwd=os.path.join(cwd, ‘playbooks’))
File “/usr/lib/python2.7/subprocess.py”, line 541, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[‘ansible-playbook’, ‘-c’, ‘local’, ‘site.yml’, ‘-e’, ‘@/tmp/extra_vars.json’, ‘–become’, ‘–become-user=frappe’]’ returned non-zero exit status 2