Bench new-app get error when try to create new-app

bench new-app meeting
INFO:bench.app:creating new app meeting
App Title (default: Meeting): Meeting
Traceback (most recent call last):
File “/usr/lib/python2.7/runpy.py”, line 174, in _run_module_as_main
main”, fname, loader, pkg_name)
File “/usr/lib/python2.7/runpy.py”, line 72, in _run_code
exec code in run_globals
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 94, in
main()
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 722, in call
return self.main(*args, **kwargs)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 697, in main
rv = self.invoke(ctx)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 535, in invoke
return callback(*args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/commands/utils.py”, line 457, in make_app
make_boilerplate(destination, app_name)
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/boilerplate.py”, line 28, in make_boilerplate
hook_val = cstr(input(key + ": "))
File “”, line 1, in
NameError: name ‘Meeting’ is not defined
frappe@kanel-VirtualBox:~/frappe-bench$

1 Like

I’m getting the same error. Were you able to figure this out?

1 Like

same same

Getting the same error when tried creating a new APP using bench.
<
bench new-app my_app
INFO:bench.app:creating new app my_app
App Title (default: My App): My Application
Traceback (most recent call last):
File “/usr/local/Cellar/python/2.7.14_3/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.14_3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py”, line 72, in _run_code
exec code in run_globals
File “/Volumes/Experiment/source-tree/frappe/work-bench/apps/frappe/frappe/utils/bench_helper.py”, line 94, in
main()
File “/Volumes/Experiment/source-tree/frappe/work-bench/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/Volumes/Experiment/source-tree/frappe/work-bench/env/lib/python2.7/site-packages/click/core.py”, line 722, in call
return self.main(*args, **kwargs)
File “/Volumes/Experiment/source-tree/frappe/work-bench/env/lib/python2.7/site-packages/click/core.py”, line 697, in main
rv = self.invoke(ctx)
File “/Volumes/Experiment/source-tree/frappe/work-bench/env/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/Volumes/Experiment/source-tree/frappe/work-bench/env/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/Volumes/Experiment/source-tree/frappe/work-bench/env/lib/python2.7/site-packages/click/core.py”, line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/Volumes/Experiment/source-tree/frappe/work-bench/env/lib/python2.7/site-packages/click/core.py”, line 535, in invoke
return callback(*args, **kwargs)
File “/Volumes/Experiment/source-tree/frappe/work-bench/apps/frappe/frappe/commands/utils.py”, line 457, in make_app
make_boilerplate(destination, app_name)
File “/Volumes/Experiment/source-tree/frappe/work-bench/apps/frappe/frappe/utils/boilerplate.py”, line 28, in make_boilerplate
hook_val = cstr(input(key + ": "))
File “”, line 1
My Application

Error Screen Print:

Reference Guide:

1 Like

When did you last update your code?

When you hit a snag, run these to get the latest changes and fixes :

‘sudo apt-get update’

cd ~/frappe-bench
bench update

Updated the code. Getting this error now when I run ‘bench new-app app_name’:

frappe@c3b3cd4a862a:~/frappe-bench$ bench new-app app_name
INFO:bench.app:creating new app app_name
Traceback (most recent call last):
File “/usr/lib/python2.7/runpy.py”, line 174, in _run_module_as_main
main”, fname, loader, pkg_name)
File “/usr/lib/python2.7/runpy.py”, line 72, in _run_code
exec code in run_globals
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 94, in
main()
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 722, in call
return self.main(*args, **kwargs)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 697, in main
rv = self.invoke(ctx)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 535, in invoke
return callback(*args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/commands/utils.py”, line 457, in make_app
make_boilerplate(destination, app_name)
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/boilerplate.py”, line 30, in make_boilerplate
hook_val = cstr(six.input(key + ": "))
AttributeError: ‘module’ object has no attribute ‘input’

Hi @jhk,

It should have been corrected with https://github.com/frappe/frappe/pull/5072

I guess the best would be to open a new issue on Github.

Okay thanks, will do

Was this ever solved?