Bench get-app https://github.com/frappe/erpnext.git error

when trying to install erpnext with the command
bench get-app GitHub - frappe/erpnext: Free and Open Source Enterprise Resource Planning (ERP)

I go the error

frappe@1b3c4bb2e12b:~$ bench get-app GitHub - frappe/erpnext: Free and Open Source Enterprise Resource Planning (ERP)
INFO:bench.app:getting app erpnext
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/home/frappe/.bench/bench/cli.py”, line 40, in cli
bench_command()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 716, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 696, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 534, in invoke
return callback(*args, **kwargs)
File “/home/frappe/.bench/bench/commands/make.py”, line 28, in get_app
get_app(git_url, branch=branch)
File “/home/frappe/.bench/bench/app.py”, line 62, in get_app
cwd=os.path.join(bench_path, ‘apps’))
File “/home/frappe/.bench/bench/utils.py”, line 82, in exec_cmd
p = subprocess.Popen(cmd, cwd=cwd, shell=True, stdout=stdout, stderr=stderr)
File “/usr/lib/python2.7/subprocess.py”, line 711, in init
errread, errwrite)
File “/usr/lib/python2.7/subprocess.py”, line 1343, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory: ‘./apps’

any idea what could be the cause? Thanks!

[quote=“jaycheung, post:1, topic:14539”]
frappe@1b3c4bb2e12b:~$ bench get-app GitHub - frappe/erpnext: Free and Open Source Enterprise Resource Planning (ERP)
[/quote] seems wrong location

run bench get-app https://github.com/frappe/erpnext.git from frappe-bench location.

1 Like

OK now, thanks!