Error in bench get-app https://github.com/frappe/erpnext.git

INFO:bench.app:getting 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/cli.py”, line 40, in cli
bench_command()
File “/usr/local/lib/python2.7/site-packages/click/core.py”, line 716, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/site-packages/click/core.py”, line 696, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/site-packages/click/core.py”, line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/site-packages/click/core.py”, line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/site-packages/click/core.py”, line 534, in invoke
return callback(*args, **kwargs)
File “/Users/Sumit/.bench/bench/commands/make.py”, line 30, in get_app
get_app(git_url, branch=branch)
File “/Users/Sumit/.bench/bench/app.py”, line 62, in get_app
cwd=os.path.join(bench_path, ‘apps’))
File “/Users/Sumit/.bench/bench/utils.py”, line 127, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: git clone https://github.com/frappe/erpnext.git --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.

Thanks

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