Hi,
Is there a way to setup an instance with default-data for training purposes? I find it easier to browse and test when there is a base set of contacts, suppliers, boms, etc in there when testing things.
Just like the old online-demo
Best David
Hi,
Is there a way to setup an instance with default-data for training purposes? I find it easier to browse and test when there is a base set of contacts, suppliers, boms, etc in there when testing things.
Just like the old online-demo
Best David
thanks, tried it but get this:
bench --site erpdemo.foobarfoobaz.com install-app erpnext_demo
Installing erpnext_demo...
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/frappe/v5/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 77, in <module>
main()
File "/home/frappe/v5/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 14, in main
click.Group(commands=commands)(prog_name='bench')
File "/home/frappe/v5/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 664, in __call__
return self.main(*args, **kwargs)
File "/home/frappe/v5/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 644, in main
rv = self.invoke(ctx)
File "/home/frappe/v5/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 991, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/frappe/v5/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 991, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/frappe/v5/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 837, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/frappe/v5/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 464, in invoke
return callback(*args, **kwargs)
File "/home/frappe/v5/frappe-bench/apps/frappe/frappe/commands.py", line 28, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File "/home/frappe/v5/frappe-bench/apps/frappe/frappe/commands.py", line 163, in install_app
_install_app(app, verbose=context.verbose)
File "/home/frappe/v5/frappe-bench/apps/frappe/frappe/installer.py", line 117, in install_app
frappe.get_attr(before_install)()
File "/home/frappe/v5/frappe-bench/apps/frappe/frappe/__init__.py", line 725, in get_attr
return getattr(get_module(modulename), methodname)
File "/home/frappe/v5/frappe-bench/apps/frappe/frappe/__init__.py", line 555, in get_module
return importlib.import_module(modulename)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/home/frappe/v5/frappe-bench/apps/erpnext_demo/erpnext_demo/utils.py", line 7, in <module>
import erpnext_demo.make_demo
File "/home/frappe/v5/frappe-bench/apps/erpnext_demo/erpnext_demo/make_demo.py", line 8, in <module>
from frappe.widgets import query_report
ImportError: No module named widgets
Are you on the correct branch (v5)?
bench update
bench --site erpdemo.foobarfoobaz.com reinstall
Iām on v5 master. Did the bench update and reinstall above. One step closer but still trouble, see below:
bench --site erpdemo.foobarfoobaz.com install-app erpnext_demo
Installing erpnext_demo...
Complete Setup...
/home/frappe/v5/frappe-bench/apps/erpnext_demo/erpnext_demo/demo_docs/Sales Taxes and Charges Template.json missing
/home/frappe/v5/frappe-bench/apps/erpnext_demo/erpnext_demo/demo_docs/Purchase Taxes and Charges Template.json missing
Simulating 2014-12-24Traceback (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/frappe/v5/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 77, in <module>
main()
File "/home/frappe/v5/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 14, in main
click.Group(commands=commands)(prog_name='bench')
File "/home/frappe/v5/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 664, in __call__
return self.main(*args, **kwargs)
File "/home/frappe/v5/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 644, in main
rv = self.invoke(ctx)
File "/home/frappe/v5/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 991, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/frappe/v5/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 991, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/frappe/v5/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 837, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/frappe/v5/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 464, in invoke
return callback(*args, **kwargs)
File "/home/frappe/v5/frappe-bench/apps/frappe/frappe/commands.py", line 28, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File "/home/frappe/v5/frappe-bench/apps/frappe/frappe/commands.py", line 163, in install_app
_install_app(app, verbose=context.verbose)
File "/home/frappe/v5/frappe-bench/apps/frappe/frappe/installer.py", line 130, in install_app
frappe.get_attr(after_install)()
File "/home/frappe/v5/frappe-bench/apps/erpnext_demo/erpnext_demo/utils.py", line 31, in make_demo
erpnext_demo.make_demo.make()
File "/home/frappe/v5/frappe-bench/apps/erpnext_demo/erpnext_demo/make_demo.py", line 24, in make
simulate()
File "/home/frappe/v5/frappe-bench/apps/erpnext_demo/erpnext_demo/simulate.py", line 51, in simulate
run_purchase(current_date)
File "/home/frappe/v5/frappe-bench/apps/erpnext_demo/erpnext_demo/buying.py", line 39, in run_purchase
po = frappe.get_doc(make_purchase_order(row[0]))
File "/home/frappe/v5/frappe-bench/apps/erpnext/erpnext/stock/doctype/material_request/material_request.py", line 210, in make_purchase_order
}, target_doc, set_missing_values)
File "/home/frappe/v5/frappe-bench/apps/frappe/frappe/model/mapper.py", line 13, in get_mapped_doc
source_doc = frappe.get_doc(from_doctype, from_docname)
File "/home/frappe/v5/frappe-bench/apps/frappe/frappe/__init__.py", line 490, in get_doc
return frappe.model.document.get_doc(arg1, arg2)
File "/home/frappe/v5/frappe-bench/apps/frappe/frappe/model/document.py", line 45, in get_doc
return controller(arg1, arg2)
File "/home/frappe/v5/frappe-bench/apps/frappe/frappe/model/document.py", line 76, in __init__
self.load_from_db()
File "/home/frappe/v5/frappe-bench/apps/frappe/frappe/model/document.py", line 106, in load_from_db
frappe.throw(_("{0} {1} not found").format(_(self.doctype), self.name), frappe.DoesNotExistError)
File "/home/frappe/v5/frappe-bench/apps/frappe/frappe/__init__.py", line 251, in throw
msgprint(msg, raise_exception=exc)
File "/home/frappe/v5/frappe-bench/apps/frappe/frappe/__init__.py", line 244, in msgprint
_raise_exception()
File "/home/frappe/v5/frappe-bench/apps/frappe/frappe/__init__.py", line 229, in _raise_exception
raise raise_exception, encode(msg)
frappe.exceptions.DoesNotExistError: Material Request 'Total' not found
Better luck next time,
bench --site erpdemo.foobarfoobaz.com reinstall
ran bench update, got v5.0.7
and then reinstall
exactly same issue as above. can you try on your end?
Fixed, please run
bench update
bench --site erpdemo.foobarfoobaz.com reinstall
Awesome! works great now. only a minor notice
/home/frappe/v5/frappe-bench/apps/erpnext_demo/erpnext_demo/demo_docs/Sales Taxes and Charges Template.json missing
/home/frappe/v5/frappe-bench/apps/erpnext_demo/erpnext_demo/demo_docs/Purchase Taxes and Charges Template.json missing
thanks!