I tried to setup a new company in erpnext using bench.
What I have done:
bench new-site test.local
bench --site test.local install-app erpnext
bench use test.local
bench start
During setup wizard i got following error:
Traceback (most recent call last):
File “/home/test/frappe-bench/apps/frappe/frappe/app.py”, line 57, in application
response = frappe.handler.handle()
File “/home/test/frappe-bench/apps/frappe/frappe/handler.py”, line 22, in handle
data = execute_cmd(cmd)
File “/home/test/frappe-bench/apps/frappe/frappe/handler.py”, line 53, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/test/frappe-bench/apps/frappe/frappe/init.py”, line 935, in call
return fn(*args, **newargs)
File “/home/test/frappe-bench/apps/frappe/frappe/desk/page/setup_wizard/setup_wizard.py”, line 40, in setup_complete
frappe.get_attr(method)(args)
File “/home/test/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/setup_wizard.py”, line 27, in setup_complete
create_sales_tax(args)
File “/home/test/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/setup_wizard.py”, line 250, in create_sales_tax
tax_data.get(‘tax_rate’), sales_tax)
File “/home/test/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/setup_wizard.py”, line 264, in make_tax_account_and_template
make_sales_and_purchase_tax_templates(accounts, template_name)
File “/home/test/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/setup_wizard.py”, line 292, in make_sales_and_purchase_tax_templates
“company”: accounts[0].company,
AttributeError: ‘NoneType’ object has no attribute ‘company’
I tried:
bench update --reset
- no success
bench --site test.local reinstall
- no success
By the way: There is an error using bench set-default-site
:
“bench.utils.CommandFailedError: /home/test/frappe-bench/env/bin/frappe --use test.local”
I think bench needs some attention - many bugs.