[Not solved] Problem setting up a new company German COA

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.

FWIW I peeked at the code -

Line 40 in this code:
frappe/setup_wizard.py at develop · frappe/frappe · GitHub

calls this

erpnext/hooks.py at bc4e2cd9c1a56d031dc8c016d5f84826247698ff · frappe/erpnext · GitHub

But to trace from there I lost interest :slight_smile:

Any hints?

Welcome to ERPNext Christof

Yes fresh installs can be a challenge, that can easily discourage first-timers.

I opt to run a VM instance if that is an option for you?

For eg this post reports success Can we get upgraded version of VM? - #3 by asharamseervi

Efforts to improve installs is one among many goals.

I hope you persist with your effort, to discover the merits and rewards of this ambitious product.

cheers

Thank you for your comment.

I retried to setup a new installation on Ubuntu 16.04.3 LTS using the easy-install script on https://github.com/frappe/bench in develop-mode. It is now running - somebody did good work! Thank you!

How can I setup a single company with a german chart of accounts? When I setup a new company, it is initialy allways linked with an english chart of accounts (which is not changeable),

I can’t say for sure you may need to dig around for eg I found this recent ask Chart of accounts - France - #3 by Roger

You may need to create another New Company?

Edit: Then specify Country ‘Germany’ Currency ‘EUR’ GST # mandatory fields and see what you get?

These may help