Traceback (most recent call last):


 "demo/__init__.py", line 11, in <module>

config = load_tornado_settings(*modules)


 "/Users/ahmad/Projects/Work/swagger_code_gen/example-app/demo/core/__init__.py", line 29, in load_tornado_settings

module))
ImportError: Could not import routers 'demo_api_v1' (Is it on sys.path?)

Traceback (most recent call last):


 "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main

"__main__", fname, loader, pkg_name)


 "/usr/lib64/python2.7/runpy.py", line 72, in _run_code

exec code in run_globals


 "/home/john/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 79, in <module>

main()


 "/home/john/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 16, in main

click.Group(commands=commands)(prog_name='bench')


 "/home/john/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 716, in __call__

return self.main(*args, **kwargs)


 "/home/john/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 696, in main

rv = self.invoke(ctx)


 "/home/john/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 1060, in invoke

return _process_result(sub_ctx.command.invoke(sub_ctx))


 "/home/john/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 1060, in invoke

return _process_result(sub_ctx.command.invoke(sub_ctx))


 "/home/john/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 889, in invoke

return ctx.invoke(self.callback, **ctx.params)


 "/home/john/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 534, in invoke

return callback(*args, **kwargs)


 "/home/john/frappe-bench/env/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func

return f(get_current_context(), *args, **kwargs)


 "/home/john/frappe-bench/apps/frappe/frappe/commands/__init__.py", line 24, in _func

ret = f(frappe._dict(ctx.obj), *args, **kwargs)


 "/home/john/frappe-bench/apps/frappe/frappe/commands/site.py", line 214, in migrate

migrate(context.verbose, rebuild_website=rebuild_website)


 "/home/john/frappe-bench/apps/frappe/frappe/migrate.py", line 31, in migrate

frappe.modules.patch_handler.run_all()


 "/home/john/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 29, in run_all

if not run_single(patchmodule = patch):


 "/home/john/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 63, in run_single

return execute_patch(patchmodule, method, methodargs)


 "/home/john/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 83, in execute_patch

frappe.get_attr(patchmodule.split()[0] + ".execute")()


 "/home/john/frappe-bench/apps/erpnext/erpnext/patches/v8_0/move_perpetual_inventory_setting.py", line 8, in execute

frappe.reload_doctype('Company')


 "/home/john/frappe-bench/apps/frappe/frappe/__init__.py", line 651, in reload_doctype

force=force, reset_permissions=reset_permissions)


 "/home/john/frappe-bench/apps/frappe/frappe/__init__.py", line 663, in reload_doc

return frappe.modules.reload_doc(module, dt, dn, force=force, reset_permissions=reset_permissions)


 "/home/john/frappe-bench/apps/frappe/frappe/modules/utils.py", line 152, in reload_doc

return import_files(module, dt, dn, force=force, reset_permissions=reset_permissions)


 "/home/john/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 19, in import_files

reset_permissions=reset_permissions)


 "/home/john/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 24, in import_file

ret = import_file_by_path(path, force, pre_process=pre_process, reset_permissions=reset_permissions)


 "/home/john/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 58, in import_file_by_path

ignore_version=ignore_version, reset_permissions=reset_permissions)


 "/home/john/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 129, in import_doc

doc.insert()


 "/home/john/frappe-bench/apps/frappe/frappe/model/document.py", line 219, in insert

self.run_post_save_methods()


 "/home/john/frappe-bench/apps/frappe/frappe/model/document.py", line 789, in run_post_save_methods

self.run_method("on_update")


 "/home/john/frappe-bench/apps/frappe/frappe/model/document.py", line 666, in run_method

out = Document.hook(fn)(self, *args, **kwargs)


 "/home/john/frappe-bench/apps/frappe/frappe/model/document.py", line 891, in composer

return composed(self, method, *args, **kwargs)


 "/home/john/frappe-bench/apps/frappe/frappe/model/document.py", line 874, in runner

add_to_return_value(self, fn(self, *args, **kwargs))


 "/home/john/frappe-bench/apps/frappe/frappe/model/document.py", line 660, in <lambda>

fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)


 "/home/john/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py", line 208, in on_update

self.run_module_method("on_doctype_update")


 "/home/john/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py", line 257, in run_module_method

module = load_doctype_module(self.name, self.module)


 "/home/john/frappe-bench/apps/frappe/frappe/modules/utils.py", line 184, in load_doctype_module

raise ImportError, 'Module import failed for {0} ({1})'.format(doctype, module_name)
ImportError: Module import failed for Company (erpnext.setup.doctype.company.company)
