Hi All,
Please help for installing,
I am trying to install ERPNext past 4 days.
Following are the errors I am getting please help.
TASK [bench : python3 bench init for develop] ***************************************************************************************************
fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: [“bench”, “init”, “/home/mushirahmed/frappe-bench”, “–frappe-branch”, “develop”, “–python”, “python3”], “delta”: “0:00:01.889489”, “end”: “2018-03-05 12:42:22.402662”, “failed”: true, “msg”: “non-zero return code”, “rc”: 1, “start”: “2018-03-05 12:42:20.513173”, “stderr”: “INFO:bench.utils:virtualenv -q env -p /usr/bin/python3\n/bin/sh: 1: virtualenv: not found\nTraceback (most recent call last):\n File "/usr/local/bin/bench", line 11, in \n load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()\n File "/home/mushirahmed/.bench/bench/cli.py", line 40, in cli\n bench_command()\n File "/home/mushirahmed/.local/lib/python2.7/site-packages/click/core.py", line 722, in call\n return self.main(*args, **kwargs)\n File "/home/mushirahmed/.local/lib/python2.7/site-packages/click/core.py", line 697, in main\n rv = self.invoke(ctx)\n File "/home/mushirahmed/.local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke\n return _process_result(sub_ctx.command.invoke(sub_ctx))\n File "/home/mushirahmed/.local/lib/python2.7/site-packages/click/core.py", line 895, in invoke\n return ctx.invoke(self.callback, **ctx.params)\n File "/home/mushirahmed/.local/lib/python2.7/site-packages/click/core.py", line 535, in invoke\n return callback(*args, **kwargs)\n File "/home/mushirahmed/.bench/bench/commands/make.py", line 28, in init\n python \t\t = python)\n File "/home/mushirahmed/.bench/bench/utils.py", line 57, in init\n setup_env(bench_path=path, python = python)\n File "/home/mushirahmed/.bench/bench/utils.py", line 161, in setup_env\n exec_cmd(‘virtualenv -q {} -p {}’.format(‘env’, python), cwd=bench_path)\n File "/home/mushirahmed/.bench/bench/utils.py", line 145, in exec_cmd\n raise CommandFailedError(cmd)\nbench.utils.CommandFailedError: virtualenv -q env -p /usr/bin/python3”, “stderr_lines”: [“INFO:bench.utils:virtualenv -q env -p /usr/bin/python3”, “/bin/sh: 1: virtualenv: not found”, “Traceback (most recent call last):”, " File "/usr/local/bin/bench", line 11, in “, " load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()”, " File "/home/mushirahmed/.bench/bench/cli.py", line 40, in cli", " bench_command()“, " File "/home/mushirahmed/.local/lib/python2.7/site-packages/click/core.py", line 722, in call”, " return self.main(*args, **kwargs)“, " File "/home/mushirahmed/.local/lib/python2.7/site-packages/click/core.py", line 697, in main”, " rv = self.invoke(ctx)“, " File "/home/mushirahmed/.local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke”, " return _process_result(sub_ctx.command.invoke(sub_ctx))“, " File "/home/mushirahmed/.local/lib/python2.7/site-packages/click/core.py", line 895, in invoke”, " return ctx.invoke(self.callback, **ctx.params)“, " File "/home/mushirahmed/.local/lib/python2.7/site-packages/click/core.py", line 535, in invoke”, " return callback(*args, **kwargs)“, " File "/home/mushirahmed/.bench/bench/commands/make.py", line 28, in init”, " python \t\t = python)“, " File "/home/mushirahmed/.bench/bench/utils.py", line 57, in init”, " setup_env(bench_path=path, python = python)“, " File "/home/mushirahmed/.bench/bench/utils.py", line 161, in setup_env”, " exec_cmd(‘virtualenv -q {} -p {}’.format(‘env’, python), cwd=bench_path)“, " File "/home/mushirahmed/.bench/bench/utils.py", line 145, in exec_cmd”, " raise CommandFailedError(cmd)", “bench.utils.CommandFailedError: virtualenv -q env -p /usr/bin/python3”], “stdout”: “”, “stdout_lines”: []}
to retry, use: --limit @/tmp/.bench/playbooks/site.retry
PLAY RECAP **************************************************************************************************************************************
localhost : ok=44 changed=13 unreachable=0 failed=1
Traceback (most recent call last):
File “install.py”, line 387, in
install_bench(args)
File “install.py”, line 109, in install_bench
run_playbook(‘site.yml’, sudo=True, extra_vars=extra_vars)
File “install.py”, line 325, in run_playbook
success = subprocess.check_call(args, cwd=os.path.join(cwd, ‘playbooks’))
File “/usr/lib/python2.7/subprocess.py”, line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[‘ansible-playbook’, ‘-c’, ‘local’, ‘site.yml’, ‘-e’, ‘@/tmp/extra_vars.json’, ‘–become’, ‘–become-user=mushirahmed’]’ returned non-zero exit status 2