Bench start error on mac

Hello.

Tried installing a bench. (on mac) Everything worked well, ‘bench start’ throws this error.
What could be wrong.

Traceback (most recent call last): File "/usr/local/bin/bench", line 11, in <module> load_entry_point('bench', 'console_scripts', 'bench')() File "/Users/noussh/d/bench-repo/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/noussh/d/bench-repo/bench/commands/utils.py", line 11, in start start(no_dev=no_dev, concurrency=concurrency) File "/Users/noussh/d/bench-repo/bench/utils.py", line 293, in start os.execv(program, command) OSError: [Errno 2] No such file or directory

And while trying to create a new app throws this error.

noussh:frappe-bench noussh$ bench new-app library_management INFO:bench.app:creating new app library_management App Title (default: Library Management): Library Management App Description: App for managing Articles, Members, Memberships and Transactions for Libraries App Publisher: Frappe App Email: info@frappe.io App Icon (default 'octicon octicon-file-directory'): App Color (default 'grey'): App License (default 'MIT'): Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 174, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/Users/noussh/d/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 79, in <module> main() File "/Users/noussh/d/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 16, in main click.Group(commands=commands)(prog_name='bench') File "/Users/noussh/d/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 722, in __call__ return self.main(*args, **kwargs) File "/Users/noussh/d/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 697, in main rv = self.invoke(ctx) File "/Users/noussh/d/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 1066, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/Users/noussh/d/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 1066, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/Users/noussh/d/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 895, in invoke return ctx.invoke(self.callback, **ctx.params) File "/Users/noussh/d/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 535, in invoke return callback(*args, **kwargs) File "/Users/noussh/d/frappe-bench/apps/frappe/frappe/commands/utils.py", line 374, in make_app make_boilerplate(destination, app_name) File "/Users/noussh/d/frappe-bench/apps/frappe/frappe/utils/boilerplate.py", line 87, in make_boilerplate f.write(encode(hooks_template.format(**hooks))) KeyError: u'"page" '

Are you running this from the frappe-bench folder?

@rmehta Yes. from the ‘frappe-bench’ folder.

Thanks for reporting. Fixed now.

1 Like

i have same kind of error after running command bench new-app meeting
and making thing i got Traceback (most recent call last):
File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py”, line 162, in _run_module_as_main
main”, fname, loader, pkg_name)
File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py”, line 72, in _run_code
exec code in run_globals
File “/Users/cl-macmini-128/erp/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 79, in
main()
File “/Users/cl-macmini-128/erp/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 16, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/Users/cl-macmini-128/erp/frappe-bench/env/lib/python2.7/site-packages/click/core.py”, line 722, in call
return self.main(*args, **kwargs)
File “/Users/cl-macmini-128/erp/frappe-bench/env/lib/python2.7/site-packages/click/core.py”, line 697, in main
rv = self.invoke(ctx)
File “/Users/cl-macmini-128/erp/frappe-bench/env/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/Users/cl-macmini-128/erp/frappe-bench/env/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/Users/cl-macmini-128/erp/frappe-bench/env/lib/python2.7/site-packages/click/core.py”, line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/Users/cl-macmini-128/erp/frappe-bench/env/lib/python2.7/site-packages/click/core.py”, line 535, in invoke
return callback(*args, **kwargs)
File “/Users/cl-macmini-128/erp/frappe-bench/apps/frappe/frappe/commands/utils.py”, line 374, in make_app
make_boilerplate(destination, app_name)
File “/Users/cl-macmini-128/erp/frappe-bench/apps/frappe/frappe/utils/boilerplate.py”, line 87, in make_boilerplate
f.write(encode(hooks_template.format(**hooks)))
KeyError: u’“page” ’

can you update and try again, it is fixed.

@rmehta I ran bench update and still gets the same error!

Are you on develop?

@rmehta Initially I cloned ‘git clone https://github.com/frappe/bench bench-repo’. then later switched to ‘develop branch’ by running ‘bench switch-to-develop’.