Bench get-app error

when trying to install erpnext with the command
bench get-app

I go the error

frappe@1b3c4bb2e12b:~$ bench get-app 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/”, line 40, in cli
File “/usr/local/lib/python2.7/dist-packages/click/”, line 716, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/”, line 696, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/”, line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/”, line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/”, line 534, in invoke
return callback(*args, **kwargs)
File “/home/frappe/.bench/bench/commands/”, line 28, in get_app
get_app(git_url, branch=branch)
File “/home/frappe/.bench/bench/”, line 62, in get_app
cwd=os.path.join(bench_path, ‘apps’))
File “/home/frappe/.bench/bench/”, line 82, in exec_cmd
p = subprocess.Popen(cmd, cwd=cwd, shell=True, stdout=stdout, stderr=stderr)
File “/usr/lib/python2.7/”, line 711, in init
errread, errwrite)
File “/usr/lib/python2.7/”, 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
[/quote] seems wrong location

run bench get-app from frappe-bench location.

1 Like

OK now, thanks!