ERPNext Installation with frappe/bench on Ubuntu 16.04

I’m trying to make a clean install of ERPNext with the frappe/bench script. After a while I get the following error and I don’t know where it can come from. I’m using a sudo user and executed the following command:

wget sudo python --production
Do you have any ideas?

TASK [init bench] **************************************************************
fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: [“bench”, “init”, “/home/frappe/frappe-bench”, “–frappe-branch”, “master”], “delta”: “0:00:35.760953”, “end”: “2016-08-23 08:21:28.647229”, “failed”: true, “rc”: 1, “start”: “2016-08-23 08:20:52.886276”, “stderr”: “ app frappe\nCloning into ‘frappe’…\ frappe\nKilled\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/frappe/.bench/bench/", line 40, in cli\n bench_command()\n File "/usr/local/lib/python2.7/dist-packages/click/", line 716, in call\n return self.main(*args, **kwargs)\n File "/usr/local/lib/python2.7/dist-packages/click/", line 696, in main\n rv = self.invoke(ctx)\n File "/usr/local/lib/python2.7/dist-packages/click/", line 1060, in invoke\n return _process_result(sub_ctx.command.invoke(sub_ctx))\n File "/usr/local/lib/python2.7/dist-packages/click/", line 889, in invoke\n return ctx.invoke(self.callback, **ctx.params)\n File "/usr/local/lib/python2.7/dist-packages/click/", line 534, in invoke\n return callback(*args, **kwargs)\n File "/home/frappe/.bench/bench/commands/", line 19, in init\n verbose=verbose, clone_from=clone_from)\n File "/home/frappe/.bench/bench/", line 56, in init\n get_app(frappe_path, branch=frappe_branch, bench_path=path, build_asset_files=False, verbose=verbose)\n File "/home/frappe/.bench/bench/", line 73, in get_app\n install_app(app=app_name, bench_path=bench_path, verbose=verbose)\n File "/home/frappe/.bench/bench/", line 103, in install_app\n find_links=find_links))\n File "/home/frappe/.bench/bench/", line 130, in exec_cmd\n raise CommandFailedError(cmd)\nbench.utils.CommandFailedError: /home/frappe/frappe-bench/env/bin/pip install -q -e /home/frappe/frappe-bench/apps/frappe”, “stdout”: “Already using interpreter /usr/bin/python\ninstalling frappe”, “stdout_lines”: [“Already using interpreter /usr/bin/python”, “installing frappe”], “warnings”: []}
to retry, use: --limit @production/install.retry

PLAY RECAP *********************************************************************
localhost : ok=27 changed=15 unreachable=0 failed=1

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

There are several issues with installing on 16.04, maybe you can use 14.04 for the moment?
It still has support till 2019 :slight_smile:

@Marcin_Walkow Actually 16.04 installer is fairly stable.

@fredmontet Can you run the command, from frappe-bench :

./env/bin/pip install -e ./apps/frappe

and give me the output?

1 Like


I am not talking about ERPNext, rather about dependencies with which potential user can have issues.
System is only 4 months old and that’s why I am not encouraging to push for new stuff too early.
Especially if you are unfamiliar with ERPNext.


1 Like

@vjFaLk @Marcin_Walkow Thanks for your answers!
I changed to 14.04 and it works well, I’ll update the OS at least in 2019 then.

Have a good day!