"bench init erpnext && cd erpnext" error

cd /opt/bench
bench init erpnext && cd erpnext

i used these 2 commands but i got error after cloning into “frappe” …

when i try to do it again using bench init erpnext && cd erpnext

i got these :
bench@paul:~$ bench init erpnext && cd erpnext
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 11, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/opt/bench/bench-repo/bench/cli.py”, line 40, in cli
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 764, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 717, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 555, in invoke
return callback(*args, **kwargs)
File “/opt/bench/bench-repo/bench/commands/make.py”, line 30, in init
python = python)
File “/opt/bench/bench-repo/bench/utils.py”, line 52, in init
raise ValueError(‘Bench Instance {path} already exists.’.format(path = path))
ValueError: Bench Instance erpnext already exists.

Please try running after removing the folder already created in your first try.

1 Like

You need to remove the whole erpnext folder, after doing that run the init code again…

1 Like

Thank you , that solved the problem and i reinstalled it .