ERPNext Conference 2019* ERPNext.com Blog

Bench Start error in erpnext


#1

bench start
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 11, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/opt/erpnext/bench-repo/bench/cli.py”, line 40, in cli
bench_command()
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 1134, in invoke
Command.invoke(self, 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/erpnext/bench-repo/bench/commands/init.py”, line 30, in bench_command
bench.set_frappe_version(bench_path=bench_path)
File “/opt/erpnext/bench-repo/bench/init.py”, line 13, in set_frappe_version
FRAPPE_VERSION = get_current_frappe_version(bench_path=bench_path)
File “/opt/erpnext/bench-repo/bench/app.py”, line 275, in get_current_frappe_version
return get_major_version(get_current_version(‘frappe’, bench_path=bench_path))
File “/opt/erpnext/bench-repo/bench/app.py”, line 315, in get_current_version
return get_version_from_string(f.read(), field=‘version’)
File “/opt/erpnext/bench-repo/bench/app.py”, line 408, in get_version_from_string
return match.group(2)
AttributeError: ‘NoneType’ object has no attribute ‘group’


#2

Try This

Go to bench-repo folder
git pull origin
Go back to frappe-bench folder
Run bench update --reset


#3

I tried this…But not working It shows same error