New doctype in a module

Hi guys,
I have created a new doctype in a new module,in my custom application.This is the error that i am getting whenever i try to save this doctype.i can’t figure out what the problem exactly the site-config i have set the developer mode to 1.

Traceback (innermost last):
File “/home/okech/frappe-bench/apps/frappe/frappe/”, line 67, in application
response = frappe.handler.handle()
File “/home/okech/frappe-bench/apps/frappe/frappe/”, line 75, in handle
File “/home/okech/frappe-bench/apps/frappe/frappe/”, line 109, in execute_cmd
ret =, **frappe.form_dict)
File “/home/okech/frappe-bench/apps/frappe/frappe/”, line 773, in call
return fn(*args, **newargs)
File “/home/okech/frappe-bench/apps/frappe/frappe/desk/form/”, line 63, in getdoctype
docs = get_meta_bundle(doctype)
File “/home/okech/frappe-bench/apps/frappe/frappe/desk/form/”, line 73, in get_meta_bundle
bundle = [frappe.desk.form.meta.get_meta(doctype)]
File “/home/okech/frappe-bench/apps/frappe/frappe/desk/form/”, line 22, in get_meta
meta = FormMeta(doctype)
File “/home/okech/frappe-bench/apps/frappe/frappe/desk/form/”, line 32, in init
File “/home/okech/frappe-bench/apps/frappe/frappe/desk/form/”, line 39, in load_assets
File “/home/okech/frappe-bench/apps/frappe/frappe/desk/form/”, line 58, in add_code
path = os.path.join(get_module_path(self.module), ‘doctype’, scrub(
File “/home/okech/frappe-bench/apps/frappe/frappe/modules/”, line 29, in get_module_path
return frappe.get_module_path(module)
File “/home/okech/frappe-bench/apps/frappe/frappe/”, line 599, in get_module_path
return get_pymodule_path(local.module_app[module] + “.” + module, *joins)
KeyError: u’succession’

I think you may have set developer mode after you created your module. Save your module again.