I am getting the following error when trying to install erpnext on a new bench instance .
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/latest_erp/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 97, in
main()
File “/home/taher/latest_erp/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/taher/latest_erp/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 722, in call
return self.main(*args, **kwargs)
File “/home/taher/latest_erp/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 697, in main
rv = self.invoke(ctx)
File “/home/taher/latest_erp/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/taher/latest_erp/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/taher/latest_erp/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/taher/latest_erp/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 535, in invoke
return callback(*args, **kwargs)
File “/home/taher/latest_erp/frappe-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/latest_erp/frappe-bench/apps/frappe/frappe/commands/init.py”, line 25, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File “/home/taher/latest_erp/frappe-bench/apps/frappe/frappe/commands/site.py”, line 161, in install_app
for site in context.sites:
TypeError: ‘NoneType’ object is not iterable
Bench version is 4.1.0
Not upgraded the erpnext on current instances in a while , so wanted to install a new instance with the latest version to try it out ,as i saw it has quite a few additions like foundation , frappe.io( whats this all about?) .
so i did the usual bench init frappe-bench
in an another virtual env. and then get-app
the latest
repo of erpenext , and along with it came foundation but not frappe.io(what was this for again?).
.
now when i am trying to do bench install-app erpnext
i got the above error while trying to install foundation ,
cant even start the bench
regards