Hi all,
Created new SITE with the following apps:
frappe 15.51.1 version-15
erpnext 15.47.4 version-15
payments 0.0.1 version-15
hrms 15.37.1 version-15
webshop 0.0.1 version-15
lending 0.0.1 version-15
The error return after filling the Company details are below:
Traceback with variables (most recent call last):
16:15:46 web.1 | File “apps/frappe/frappe/desk/page/setup_wizard/setup_wizard.py”, line 81, in process_setup_stages
16:15:46 web.1 | task.get(“fn”)(task.get(“args”))
16:15:46 web.1 | stages = [{‘status’: ‘Updating global settings’, ‘fail_msg’: ‘Failed to update global settings’, ‘tasks’: [{‘fn’: <function update_global_settings at 0x7f2903a94790>, ‘args’: {‘language’: ‘English’, ‘country’: ‘Angola’, ‘timezone’: ‘Africa/Luanda’, ‘currency’: ‘KZ’, ‘full_name’: ‘Hélio de Jesus’, ‘email’: ‘hcesar@gmail.com’, ‘password’: ‘frappe’, ‘company_name’: ‘DEMO’, ‘company_abbr’: ‘D’, ‘chart_of_accounts’: ‘Angola - Plano de Contas v2’, ‘fy_start_date’: ‘2025-01-01’, ‘fy_end_date’: ‘2025-12-31’, ‘setup_demo’: 1}, ‘fail_msg’: ‘Failed to update global settings’}]}, {‘status’: ‘Installing presets’, ‘fail_msg’: ‘Failed to install presets’, ‘tasks’: [{‘fn’: <function stage_fixtures at 0x7f28f38f4940>, ‘args’: {‘language’: ‘English’, ‘country’: ‘Angola’, ‘timezone’: ‘Africa/Luanda’, ‘currency’: ‘KZ’, ‘full_name’: ‘Hélio de Jesus’, ‘email’: ‘hcesar@gmail.com’, ‘password’: ‘frappe’, ‘company_name’: ‘DEMO’, ‘company_abbr’: ‘D’, ‘chart_of_accounts’: ‘Angola - Plano de Contas v2’, ‘fy_start_date’: '2…
16:15:46 web.1 | user_input = {‘language’: ‘English’, ‘country’: ‘Angola’, ‘timezone’: ‘Africa/Luanda’, ‘currency’: ‘KZ’, ‘full_name’: ‘Hélio de Jesus’, ‘email’: ‘hcesar@gmail.com’, ‘password’: ‘', ‘company_name’: ‘DEMO’, ‘company_abbr’: ‘D’, ‘chart_of_accounts’: ‘Angola - Plano de Contas v2’, ‘fy_start_date’: ‘2025-01-01’, ‘fy_end_date’: ‘2025-12-31’, ‘setup_demo’: 1}
16:15:46 web.1 | is_background_task = False
16:15:46 web.1 | capture = <function capture at 0x7f29049f8670>
16:15:46 web.1 | current_task = {‘fn’: <function setup_defaults at 0x7f28f38f4a60>, ‘args’: {‘language’: ‘English’, ‘country’: ‘Angola’, ‘timezone’: ‘Africa/Luanda’, ‘currency’: ‘KZ’, ‘full_name’: ‘Hélio de Jesus’, ‘email’: ‘hcesar@gmail.com’, ‘password’: ‘frappe’, ‘company_name’: ‘DEMO’, ‘company_abbr’: ‘D’, ‘chart_of_accounts’: ‘Angola - Plano de Contas v2’, ‘fy_start_date’: ‘2025-01-01’, ‘fy_end_date’: ‘2025-12-31’, ‘setup_demo’: 1}, ‘fail_msg’: ‘Failed to setup defaults’}
16:15:46 web.1 | idx = 3
16:15:46 web.1 | stage = {‘status’: ‘Setting defaults’, ‘fail_msg’: ‘Failed to set defaults’, ‘tasks’: [{‘fn’: <function setup_defaults at 0x7f28f38f4a60>, ‘args’: {‘language’: ‘English’, ‘country’: ‘Angola’, ‘timezone’: ‘Africa/Luanda’, ‘currency’: ‘KZ’, ‘full_name’: ‘Hélio de Jesus’, ‘email’: ‘hcesar@gmail.com’, ‘password’: ‘frappe’, ‘company_name’: ‘DEMO’, ‘company_abbr’: ‘D’, ‘chart_of_accounts’: ‘Angola - Plano de Contas v2’, ‘fy_start_date’: ‘2025-01-01’, ‘fy_end_date’: ‘2025-12-31’, ‘setup_demo’: 1}, ‘fail_msg’: ‘Failed to setup defaults’}]}
16:15:46 web.1 | task = {‘fn’: <function setup_defaults at 0x7f28f38f4a60>, ‘args’: {‘language’: ‘English’, ‘country’: ‘Angola’, ‘timezone’: ‘Africa/Luanda’, ‘currency’: ‘KZ’, ‘full_name’: ‘Hélio de Jesus’, ‘email’: ‘hcesar@gmail.com’, ‘password’: ‘frappe’, ‘company_name’: ‘DEMO’, ‘company_abbr’: ‘D’, ‘chart_of_accounts’: ‘Angola - Plano de Contas v2’, ‘fy_start_date’: ‘2025-01-01’, ‘fy_end_date’: ‘2025-12-31’, ‘setup_demo’: 1}, ‘fail_msg’: ‘Failed to setup defaults’}
16:15:46 web.1 | File “apps/erpnext/erpnext/setup/setup_wizard/setup_wizard.py”, line 59, in setup_defaults
16:15:46 web.1 | fixtures.install_defaults(frappe._dict(args))
16:15:46 web.1 | args = {‘language’: ‘English’, ‘country’: ‘Angola’, ‘timezone’: ‘Africa/Luanda’, ‘currency’: ‘KZ’, ‘full_name’: ‘Hélio de Jesus’, ‘email’: ‘hcesar@gmail.com’, ‘password’: '’, ‘company_name’: ‘DEMO’, ‘company_abbr’: ‘D’, ‘chart_of_accounts’: ‘Angola - Plano de Contas v2’, ‘fy_start_date’: ‘2025-01-01’, ‘fy_end_date’: ‘2025-12-31’, ‘setup_demo’: 1}
16:15:46 web.1 | File “apps/erpnext/erpnext/setup/setup_wizard/operations/install_fixtures.py”, line 479, in install_defaults
16:15:46 web.1 | update_stock_settings()
16:15:46 web.1 | args = {‘language’: ‘English’, ‘country’: ‘Angola’, ‘timezone’: ‘Africa/Luanda’, ‘currency’: ‘KZ’, ‘full_name’: ‘Hélio de Jesus’, ‘email’: ‘hcesar@gmail.com’, ‘password’: ‘********’, ‘company_name’: ‘DEMO’, ‘company_abbr’: ‘D’, ‘chart_of_accounts’: ‘Angola - Plano de Contas v2’, ‘fy_start_date’: ‘2025-01-01’, ‘fy_end_date’: ‘2025-12-31’, ‘setup_demo’: 1}
16:15:46 web.1 | records = [{‘doctype’: ‘Price List’, ‘price_list_name’: ‘Standard Buying’, ‘enabled’: 1, ‘buying’: 1, ‘selling’: 0, ‘currency’: ‘KZ’}, {‘doctype’: ‘Price List’, ‘price_list_name’: ‘Standard Selling’, ‘enabled’: 1, ‘buying’: 0, ‘selling’: 1, ‘currency’: ‘KZ’}]
16:15:46 web.1 | File “apps/erpnext/erpnext/setup/setup_wizard/operations/install_fixtures.py”, line 508, in update_stock_settings
16:15:46 web.1 | stock_settings.save()
16:15:46 web.1 | stock_settings = <StockSettings: Stock Settings>
16:15:46 web.1 | File “apps/frappe/frappe/model/document.py”, line 342, in save
16:15:46 web.1 | return self._save(*args, **kwargs)
16:15:46 web.1 | self = <StockSettings: Stock Settings>
16:15:46 web.1 | args = ()
16:15:46 web.1 | kwargs = {}
16:15:46 web.1 | File “apps/frappe/frappe/model/document.py”, line 378, in save
16:15:46 web.1 | self.run_before_save_methods()
16:15:46 web.1 | self = <StockSettings: Stock Settings>
16:15:46 web.1 | ignore_permissions = None
16:15:46 web.1 | ignore_version = None
16:15:46 web.1 | File “apps/frappe/frappe/model/document.py”, line 1103, in run_before_save_methods
16:15:46 web.1 | self.run_method(“validate”)
16:15:46 web.1 | self = <StockSettings: Stock Settings>
16:15:46 web.1 | File “apps/frappe/frappe/model/document.py”, line 974, in run_method
16:15:46 web.1 | out = Document.hook(fn)(self, *args, **kwargs)
16:15:46 web.1 | self = <StockSettings: Stock Settings>
16:15:46 web.1 | args = ()
16:15:46 web.1 | kwargs = {}
16:15:46 web.1 | fn = <function Document.run_method..fn at 0x7f28f2fd03a0>
16:15:46 web.1 | method = ‘validate’
16:15:46 web.1 | File “apps/frappe/frappe/model/document.py”, line 1334, in composer
16:15:46 web.1 | return composed(self, method, args, **kwargs)
16:15:46 web.1 | self = <StockSettings: Stock Settings>
16:15:46 web.1 | args = ()
16:15:46 web.1 | kwargs = {}
16:15:46 web.1 | hooks = [<function apply at 0x7f29015f5000>, <function check_for_running_deletion_job at 0x7f29015f4e50>]
16:15:46 web.1 | method = ‘validate’
16:15:46 web.1 | doc_events = {'': {‘on_update’: [‘frappe.desk.notifications.clear_doctype_notifications’, ‘frappe.workflow.doctype.workflow_action.workflow_action.process_workflow_actions’, ‘frappe.core.doctype.file.utils.attach_files_to_document’, ‘frappe.automation.doctype.assignment_rule.assignment_rule.apply’, ‘frappe.automation.doctype.assignment_rule.assignment_rule.update_due_date’, ‘frappe.core.doctype.user_type.user_type.apply_permissions_for_non_standard_user_type’], ‘after_rename’: [‘frappe.desk.notifications.clear_doctype_notifications’], ‘on_cancel’: [‘frappe.desk.notifications.clear_doctype_notifications’, ‘frappe.workflow.doctype.workflow_action.workflow_action.process_workflow_actions’, ‘frappe.automation.doctype.assignment_rule.assignment_rule.apply’], ‘on_trash’: [‘frappe.desk.notifications.clear_doctype_notifications’, ‘frappe.workflow.doctype.workflow_action.workflow_action.process_workflow_actions’], ‘on_update_after_submit’: ['frappe.workflow.doctype.workflow_action.workflow_action.process_w…
16:15:46 web.1 | handler = ‘erpnext.setup.doctype.transaction_deletion_record.transaction_deletion_record.check_for_running_deletion_job’
16:15:46 web.1 | composed = <function Document.hook..compose..runner at 0x7f28f3082170>
16:15:46 web.1 | compose = <function Document.hook..compose at 0x7f28f30809d0>
16:15:46 web.1 | f = <function Document.run_method..fn at 0x7f28f2fd03a0>
16:15:46 web.1 | File “apps/frappe/frappe/model/document.py”, line 1316, in runner
16:15:46 web.1 | add_to_return_value(self, fn(self, *args, **kwargs))
16:15:46 web.1 | self = <StockSettings: Stock Settings>
16:15:46 web.1 | method = ‘validate’
16:15:46 web.1 | args = ()
16:15:46 web.1 | kwargs = {}
16:15:46 web.1 | add_to_return_value = <function Document.hook..add_to_return_value at 0x7f28f3065630>
16:15:46 web.1 | fn = <function Document.run_method..fn at 0x7f28f2fd03a0>
16:15:46 web.1 | hooks = (<function apply at 0x7f29015f5000>, <function check_for_running_deletion_job at 0x7f29015f4e50>)
16:15:46 web.1 | File “apps/frappe/frappe/model/document.py”, line 971, in fn
16:15:46 web.1 | return method_object(*args, **kwargs)
16:15:46 web.1 | self = <StockSettings: Stock Settings>
16:15:46 web.1 | args = ()
16:15:46 web.1 | kwargs = {}
16:15:46 web.1 | method_object = <bound method StockSettings.validate of <StockSettings: Stock Settings>>
16:15:46 web.1 | method = ‘validate’
16:15:46 web.1 | File “apps/erpnext/erpnext/stock/doctype/stock_settings/stock_settings.py”, line 105, in validate
16:15:46 web.1 | self.validate_use_batch_wise_valuation()
16:15:46 web.1 | self = <StockSettings: Stock Settings>
16:15:46 web.1 | key = ********
16:15:46 web.1 | set_by_naming_series = <function set_by_naming_series at 0x7f28f3593eb0>
16:15:46 web.1 | name = ‘scan_barcode’
16:15:46 web.1 | File “apps/erpnext/erpnext/stock/doctype/stock_settings/stock_settings.py”, line 112, in validate_use_batch_wise_valuation
16:15:46 web.1 | frappe.throw((“Cannot disable batch wise valuation for FIFO valuation method.”))
16:15:46 web.1 | self = <StockSettings: Stock Settings>
16:15:46 web.1 | File “apps/frappe/frappe/init.py”, line 603, in throw
16:15:46 web.1 | msgprint(
16:15:46 web.1 | msg = ‘Cannot disable batch wise valuation for FIFO valuation method.’
16:15:46 web.1 | exc = <class ‘frappe.exceptions.ValidationError’>
16:15:46 web.1 | title = None
16:15:46 web.1 | is_minimizable = False
16:15:46 web.1 | wide = False
16:15:46 web.1 | as_list = False
16:15:46 web.1 | primary_action = None
16:15:46 web.1 | File “apps/frappe/frappe/init.py”, line 568, in msgprint
16:15:46 web.1 | _raise_exception()
16:15:46 web.1 | title = None
16:15:46 web.1 | as_table = False
16:15:46 web.1 | as_list = False
16:15:46 web.1 | indicator = ‘red’
16:15:46 web.1 | alert = False
16:15:46 web.1 | primary_action = None
16:15:46 web.1 | is_minimizable = False
16:15:46 web.1 | wide = False
16:15:46 web.1 | realtime = False
16:15:46 web.1 | sys = <module ‘sys’ (built-in)>
16:15:46 web.1 | _raise_exception = <function msgprint.._raise_exception at 0x7f28f3059000>
16:15:46 web.1 | inspect = <module ‘inspect’ from ‘/usr/lib/python3.10/inspect.py’>
16:15:46 web.1 | msg = ‘Cannot disable batch wise valuation for FIFO valuation method.’
16:15:46 web.1 | out = {‘message’: ‘Cannot disable batch wise valuation for FIFO valuation method.’, ‘title’: ‘Message’, ‘indicator’: ‘red’, ‘raise_exception’: 1, ‘__frappe_exc_id’: ‘630a33a7bf965489592cd74b58dde93495af8e980cf2fab88db852d6’}
16:15:46 web.1 | raise_exception = <class ‘frappe.exceptions.ValidationError’>
16:15:46 web.1 | File “apps/frappe/frappe/init.py”, line 519, in _raise_exception
16:15:46 web.1 | raise exc
16:15:46 web.1 | exc = ValidationError(‘Cannot disable batch wise valuation for FIFO valuation method.’)
16:15:46 web.1 | inspect = <module ‘inspect’ from ‘/usr/lib/python3.10/inspect.py’>
16:15:46 web.1 | msg = ‘Cannot disable batch wise valuation for FIFO valuation method.’
16:15:46 web.1 | out = {‘message’: ‘Cannot disable batch wise valuation for FIFO valuation method.’, ‘title’: ‘Message’, ‘indicator’: ‘red’, ‘raise_exception’: 1, ‘__frappe_exc_id’: ‘630a33a7bf965489592cd74b58dde93495af8e980cf2fab88db852d6’}
16:15:46 web.1 | raise_exception = <class ‘frappe.exceptions.ValidationError’>
16:15:46 web.1 | frappe.exceptions.ValidationError: Cannot disable batch wise valuation for FIFO valuation method.
16:15:46 web.1 | 192.168.206.1 - - [13/Jan/2025 16:15:46] “POST /api/method/frappe.desk.page.setup_wizard.setup_wizard.setup_complete HTTP/1.1” 417 -