ERPNext.com Frappe Cloud Support Partners Foundation Frappe School

Server Error Message KeyError:'setup'

Hello,

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

1 Like