No such file or directory: './sites'

rashmi@rashmi-CorporateTeam:~/frappe-bench$ bench new-site site1.local
frappe app is not installed. Run the following command to install frappe
bench get-app frappe https://github.com/frappe/frappe.git
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/home/rashmi/bench-repo/bench/cli.py”, line 56, in cli
bench()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 664, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 644, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 991, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 837, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 464, in invoke
return callback(*args, **kwargs)
File “/home/rashmi/bench-repo/bench/cli.py”, line 184, in new_site
_new_site(site, mariadb_root_password=mariadb_root_password, admin_password=admin_password)
File “/home/rashmi/bench-repo/bench/utils.py”, line 117, in new_site
), cwd=os.path.join(bench, ‘sites’))
File “/home/rashmi/bench-repo/bench/utils.py”, line 79, in exec_cmd
subprocess.check_call(cmd, cwd=cwd, shell=True)
File “/usr/lib/python2.7/subprocess.py”, line 535, in check_call
retcode = call(*popenargs, **kwargs)
File “/usr/lib/python2.7/subprocess.py”, line 522, in call
return Popen(*popenargs, **kwargs).wait()
File “/usr/lib/python2.7/subprocess.py”, line 710, in init
errread, errwrite)
File “/usr/lib/python2.7/subprocess.py”, line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory: ‘./sites’
rashmi@rashmi-CorporateTeam:~/frappe-bench$

frappe app is not installed. Run the following command to install frappe
bench get-app frappe https://github.com/frappe/frappe.git

Did your installation complete successfully?

Seems that bench init didn’t happen correctly, can you that again?

I suggest, run the easy-install script on a clean install of Ubuntu / CentOS

Hi frnds,i am erpnext beginner…would u please help me as the same error have it…how to solve this error?

as @pdvyas2 suggests

go to https://github.com/frappe/bench, search for Easy Production Setup and follow the instructions

Thank you vrms…I got it and i am so happy

actually i got this error too and found out that i couldn’t run the bench command out the frappe-bench folder :slight_smile:

Hi vrms

how to solve my problem mr.vrms?