Server Error Message KeyError:'setup'


I am developing something with frappe framework. I have created a module called SETUP module and created a DocType under SETUP module. Things were running well, but after a bench update command it is no longer working. Raising Server Error showing KeyError:‘setup’. Here ‘setup’ is the module name.

Below is the web.log extract:

File “/home/mmr/frappe-bench/apps/frappe/frappe/desk/form/”, line 45, in load_assets
File “/home/mmr/frappe-bench/apps/frappe/frappe/desk/form/”, line 77, in add_code
path = os.path.join(get_module_path(self.module), ‘doctype’, scrub(
File “/home/mmr/frappe-bench/apps/frappe/frappe/modules/”, line 165, in get_module_path
return frappe.get_module_path(module)
File “/home/mmr/frappe-bench/apps/frappe/frappe/”, line 961, in get_module_path
return get_pymodule_path(local.module_app[module] + “.” + module, *joins)
KeyError: ‘setup’

1 Like