Error in bench get-app app erpnext
fatal: destination path ‘erpnext’ already exists and is not an empty directory.
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 11, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/Users/Sumit/.bench/bench/”, line 40, in cli
File “/usr/local/lib/python2.7/site-packages/click/”, line 716, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/site-packages/click/”, line 696, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/site-packages/click/”, line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/site-packages/click/”, line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/site-packages/click/”, line 534, in invoke
return callback(*args, **kwargs)
File “/Users/Sumit/.bench/bench/commands/”, line 30, in get_app
get_app(git_url, branch=branch)
File “/Users/Sumit/.bench/bench/”, line 62, in get_app
cwd=os.path.join(bench_path, ‘apps’))
File “/Users/Sumit/.bench/bench/”, line 127, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: git clone GitHub - frappe/erpnext: Free and Open Source Enterprise Resource Planning (ERP) --depth 1 --origin upstream

there is error in git-clone this is because I already cloned. but is there any method to resolve this or proceed further

remove the previous erpnext directory then use the bench get-app erpnext

1 Like

You can try doing

bench remove-from-installed-apps <appname>

and try installing again

1 Like

hi @Sumit_Matta1,
please check the /etc/frappe-bench directory
remove that and try it.


I removed this directory and clone again and get the error that pip is not found at ./env folder
Most probably I get the error because pip is installed at /usr/local/bin/pip