Install Bench problem


i am trying to install bench as a non root user but i get this error:

~/bench-repo$ bench update
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.92’, ‘console_scripts’, ‘bench’)()
File “/home/mohd/bench-repo/bench/”, line 60, in cli
File “/usr/local/lib/python2.7/site-packages/click/”, line 700, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/site-packages/click/”, line 680, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/site-packages/click/”, line 1027, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/site-packages/click/”, line 873, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/site-packages/click/”, line 508, in invoke
return callback(*args, **kwargs)
File “/home/mohd/bench-repo/bench/”, line 210, in _update
version_upgrade = is_version_upgrade()
File “/home/mohd/bench-repo/bench/”, line 91, in is_version_upgrade
fetch_upstream(‘frappe’, bench=bench)
File “/home/mohd/bench-repo/bench/”, line 117, in fetch_upstream
return exec_cmd(“git fetch upstream”, cwd=repo_dir)
File “/home/mohd/bench-repo/bench/”, line 96, in exec_cmd
p = subprocess.Popen(cmd, cwd=cwd, shell=True, stdout=stdout, stderr=stderr)
File “/usr/local/lib/python2.7/”, line 710, in init
errread, errwrite)
File “/usr/local/lib/python2.7/”, line 1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory: ‘./apps/frappe’

how i can solve this please?


You need to be in the frappe-bench folder before you run this command… and you are running bench update, not installing bench? I suggest reading the steps on GitHub - frappe/bench: CLI to manage Multi-tenant deployments for Frappe apps

1 Like