Created new bench , created new site and Installed ERPnext … everything ok
started bench , setup site and worked on it -smooth…
Today created a new app(just basic with name and description ) with bench --site <site_name> install-app <app_name>
i got this error :
Traceback (most recent call last):
File “/usr/lib/python2.7/runpy.py”, line 162, 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/taher/saloon-bench/apps/frappe/frappe/utils/bench_helper.py”, line 94, in
main()
File “/home/taher/saloon-bench/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/taher/saloon-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 722, in call
return self.main(*args, **kwargs)
File “/home/taher/saloon-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 697, in main
rv = self.invoke(ctx)
File “/home/taher/saloon-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/taher/saloon-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/taher/saloon-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/taher/saloon-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 535, in invoke
return callback(*args, **kwargs)
File “/home/taher/saloon-bench/env/local/lib/python2.7/site-packages/click/decorators.py”, line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File “/home/taher/saloon-bench/apps/frappe/frappe/commands/init.py”, line 24, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File “/home/taher/saloon-bench/apps/frappe/frappe/commands/site.py”, line 157, in install_app
frappe.init(site=site)
File “/home/taher/saloon-bench/apps/frappe/frappe/init.py”, line 135, in init
local.conf = _dict(get_site_config())
File “/home/taher/saloon-bench/apps/frappe/frappe/init.py”, line 189, in get_site_config
config.update(get_file_json(site_config))
File “/home/taher/saloon-bench/apps/frappe/frappe/init.py”, line 880, in get_file_json
return json.load(f)
File “/usr/lib/python2.7/json/init.py”, line 290, in load
**kw)
File “/usr/lib/python2.7/json/init.py”, line 338, in loads
return _default_decoder.decode(s)
File “/usr/lib/python2.7/json/decoder.py”, line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File “/usr/lib/python2.7/json/decoder.py”, line 382, in raw_decode
obj, end = self.scan_once(s, idx)
ValueError: Expecting , delimiter: line 5 column 2 (char 94)
then now if i try to access the site after running bench i get error page
File “/home/taher/saloon-bench/apps/frappe/frappe/middlewares.py”, line 15, in call
return super(StaticDataMiddleware, self).call(environ, start_response)
File “/home/taher/saloon-bench/env/lib/python2.7/site-packages/werkzeug/wsgi.py”, line 600, in call
return self.app(environ, start_response)
File “/home/taher/saloon-bench/env/lib/python2.7/site-packages/werkzeug/wsgi.py”, line 600, in call
return self.app(environ, start_response)
File “/home/taher/saloon-bench/env/lib/python2.7/site-packages/werkzeug/local.py”, line 228, in application
return ClosingIterator(app(environ, start_response), self.cleanup)
File “/home/taher/saloon-bench/env/lib/python2.7/site-packages/werkzeug/wrappers.py”, line 301, in application
return f(*args[:-2] + (request,))(*args[-2:])
File “/home/taher/saloon-bench/apps/frappe/frappe/app.py”, line 83, in application
response = handle_exception(e)
File “/home/taher/saloon-bench/apps/frappe/frappe/app.py”, line 178, in handle_exception
make_error_snapshot(e)
File “/home/taher/saloon-bench/apps/frappe/frappe/utils/error.py”, line 21, in make_error_snapshot
if frappe.conf.disable_error_snapshot:
File “/home/taher/saloon-bench/env/lib/python2.7/site-packages/werkzeug/local.py”, line 347, in getattr
return getattr(self._get_current_object(), name)
File “/home/taher/saloon-bench/env/lib/python2.7/site-packages/werkzeug/local.py”, line 310, in _get_current_object
raise RuntimeError(‘no object bound to %s’ % self.name)
RuntimeError: no object bound to conf
any help ?
thanks