New Doctype Create And Save Issue

Facing Issue while create Doctype and save sound like warning , aftre reload doctype is there frappe version Latest
on migrate time error appear you dont have module
sanha@srv471078:~/sanha$ bench migrate
Migrating sevp
Updating DocTypes for frappe : [========================================] 100%
Queued rebuilding of search index for sevp

Traceback with variables (most recent call last):
File “/usr/lib/python3.10/runpy.py”, line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
mod_name = ‘frappe.utils.bench_helper’
alter_argv = True
mod_spec = ModuleSpec(name=‘frappe.utils.bench_helper’, loader=<_frozen_importlib_external.SourceFileLoader object at 0x7f52a8bbafe0>, origin=‘/home/sanha/sanha/apps/frappe/frappe/utils/bench_helper.py’)
code = <code object at 0x7f52a742e600, file “/home/sanha/sanha/apps/frappe/frappe/utils/bench_helper.py”, line 1>
main_globals = {‘name’: ‘main’, ‘doc’: None, ‘package’: ‘frappe.utils’, ‘loader’: <_frozen_importlib_external.SourceFileLoader object at 0x7f52a8bbafe0>, ‘spec’: ModuleSpec(name=‘frappe.utils.bench_helper’, loader=<_frozen_importlib_external.SourceFileLoader object at 0x7f52a8bbafe0>, origin=‘/home/sanha/sanha/apps/frappe/frappe/utils/bench_helper.py’), ‘annotations’: {}, ‘builtins’: <module ‘builtins’ (built-in)>, ‘file’: ‘/home/sanha/sanha/apps/frappe/frappe/utils/bench_helper.py’, ‘cached’: ‘/home/sanha/sanha/apps/frappe/frappe/utils/pycache/bench_helper.cpython-310.pyc’, ‘importlib’: <module ‘importlib’ from ‘/usr/lib/python3.10/importlib/init.py’>, ‘json’: <module ‘json’ from ‘/usr/lib/python3.10/json/init.py’>, ‘os’: <module ‘os’ from ‘/usr/lib/python3.10/os.py’>, ‘traceback’: <module ‘traceback’ from ‘/usr/lib/python3.10/traceback.py’>, ‘warnings’: <module ‘warnings’ from ‘/usr/lib/python3.10/warnings.py’>, ‘Path’: <class ‘pathlib.Path’>, ‘de…
File “/usr/lib/python3.10/runpy.py”, line 86, in _run_code
exec(code, run_globals)
code = <code object at 0x7f52a742e600, file “/home/sanha/sanha/apps/frappe/frappe/utils/bench_helper.py”, line 1>
run_globals = {‘name’: ‘main’, ‘doc’: None, ‘package’: ‘frappe.utils’, ‘loader’: <_frozen_importlib_external.SourceFileLoader object at 0x7f52a8bbafe0>, ‘spec’: ModuleSpec(name=‘frappe.utils.bench_helper’, loader=<_frozen_importlib_external.SourceFileLoader object at 0x7f52a8bbafe0>, origin=’/home/sanha/sanha/apps/frappe/frappe/utils/bench_helper.py’), ‘annotations’: {}, ‘builtins’: <module ‘builtins’ (built-in)>, ‘file’: ‘/home/sanha/sanha/apps/frappe/frappe/utils/bench_helper.py’, ‘cached’: ‘/home/sanha/sanha/apps/frappe/frappe/utils/pycache/bench_helper.cpython-310.pyc’, ‘importlib’: <module ‘importlib’ from ‘/usr/lib/python3.10/importlib/init.py’>, ‘json’: <module ‘json’ from ‘/usr/lib/python3.10/json/init.py’>, ‘os’: <module ‘os’ from ‘/usr/lib/python3.10/os.py’>, ‘traceback’: <module ‘traceback’ from ‘/usr/lib/python3.10/traceback.py’>, ‘warnings’: <module ‘warnings’ from ‘/usr/lib/python3.10/warnings.py’>, ‘Path’: <class ‘pathlib.Path’>, ‘de…
init_globals = None
mod_name = ‘main
mod_spec = ModuleSpec(name=‘frappe.utils.bench_helper’, loader=<_frozen_importlib_external.SourceFileLoader object at 0x7f52a8bbafe0>, origin=’/home/sanha/sanha/apps/frappe/frappe/utils/bench_helper.py’)
pkg_name = ‘frappe.utils’
script_name = None
loader = <_frozen_importlib_external.SourceFileLoader object at 0x7f52a8bbafe0>
fname = ‘/home/sanha/sanha/apps/frappe/frappe/utils/bench_helper.py’
cached = ‘/home/sanha/sanha/apps/frappe/frappe/utils/pycache/bench_helper.cpython-310.pyc’
File “/home/sanha/sanha/apps/frappe/frappe/utils/bench_helper.py”, line 114, in
main()
…skipped… 27 vars
File “/home/sanha/sanha/apps/frappe/frappe/utils/bench_helper.py”, line 20, in main
click.Group(commands=commands)(prog_name=“bench”)
commands = {‘frappe’: , ‘get-frappe-commands’: , ‘get-frappe-help’: }
File “/home/sanha/sanha/env/lib/python3.10/site-packages/click/core.py”, line 1157, in call
return self.main(*args, **kwargs)
self =
args = ()
kwargs = {‘prog_name’: ‘bench’}
File “/home/sanha/sanha/env/lib/python3.10/site-packages/click/core.py”, line 1078, in main
rv = self.invoke(ctx)
self =
args = [‘frappe’, ‘migrate’]
prog_name = ‘bench’
complete_var = None
standalone_mode = True
windows_expand_args = True
extra = {}
ctx = <click.core.Context object at 0x7f52a74162f0>
File “/home/sanha/sanha/env/lib/python3.10/site-packages/click/core.py”, line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
_process_result = <function MultiCommand.invoke.._process_result at 0x7f52a7435ab0>
args = [‘migrate’]
cmd_name = ‘frappe’
cmd =
sub_ctx = <click.core.Context object at 0x7f52a6e9a980>
ctx = <click.core.Context object at 0x7f52a74162f0>
self =
class = <class ‘click.core.MultiCommand’>
File “/home/sanha/sanha/env/lib/python3.10/site-packages/click/core.py”, line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
_process_result = <function MultiCommand.invoke.._process_result at 0x7f52a6eb8040>
args =
cmd_name = ‘migrate’
cmd =
sub_ctx = <click.core.Context object at 0x7f52a6e9ace0>
ctx = <click.core.Context object at 0x7f52a6e9a980>
self =
class = <class ‘click.core.MultiCommand’>
File “/home/sanha/sanha/env/lib/python3.10/site-packages/click/core.py”, line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
self =
ctx = <click.core.Context object at 0x7f52a6e9ace0>
File “/home/sanha/sanha/env/lib/python3.10/site-packages/click/core.py”, line 783, in invoke
return __callback(*args, **kwargs)
_Context__self = <click.core.Context object at 0x7f52a6e9ace0>
_Context__callback = <function migrate at 0x7f52a6e5cc10>
args = ()
kwargs = {‘skip_failing’: False, ‘skip_search_index’: False}
ctx = <click.core.Context object at 0x7f52a6e9ace0>
File “/home/sanha/sanha/env/lib/python3.10/site-packages/click/decorators.py”, line 33, in new_func
return f(get_current_context(), *args, **kwargs)
args = ()
kwargs = {‘skip_failing’: False, ‘skip_search_index’: False}
f = <function migrate at 0x7f52a6e5c9d0>
File “/home/sanha/sanha/apps/frappe/frappe/commands/init.py”, line 29, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
ctx = <click.core.Context object at 0x7f52a6e9ace0>
args = ()
kwargs = {‘skip_failing’: False, ‘skip_search_index’: False}
profile = False
f = <function migrate at 0x7f52a6e5c940>
File “/home/sanha/sanha/apps/frappe/frappe/commands/site.py”, line 721, in migrate
SiteMigration(
context = {‘sites’: [‘sevp’], ‘force’: False, ‘verbose’: False, ‘profile’: False}
skip_failing = False
skip_search_index = False
activate_by_import = <module ‘traceback_with_variables.activate_by_import’ from ‘/home/sanha/sanha/env/lib/python3.10/site-packages/traceback_with_variables/activate_by_import.py’>
SiteMigration = <class ‘frappe.migrate.SiteMigration’>
site = ‘sevp’
File “/home/sanha/sanha/apps/frappe/frappe/migrate.py”, line 185, in run
self.run_schema_updates()
self = <frappe.migrate.SiteMigration object at 0x7f52a6e9ab00>
site = ‘sevp’
filelock = <function filelock at 0x7f52a6ffd870>
File “/home/sanha/sanha/apps/frappe/frappe/migrate.py”, line 52, in wrapper
raise e
args = (<frappe.migrate.SiteMigration object at 0x7f52a6e9ab00>,)
kwargs = {}
method = <function SiteMigration.run_schema_updates at 0x7f52a6ffd480>
File “/home/sanha/sanha/apps/frappe/frappe/migrate.py”, line 44, in wrapper
ret = method(*args, **kwargs)
args = (<frappe.migrate.SiteMigration object at 0x7f52a6e9ab00>,)
kwargs = {}
method = <function SiteMigration.run_schema_updates at 0x7f52a6ffd480>
File “/home/sanha/sanha/apps/frappe/frappe/migrate.py”, line 119, in run_schema_updates
frappe.model.sync.sync_all()
self = <frappe.migrate.SiteMigration object at 0x7f52a6e9ab00>
File “/home/sanha/sanha/apps/frappe/frappe/model/sync.py”, line 43, in sync_all
sync_for(app, force, reset_permissions=reset_permissions)
force = 0
reset_permissions = False
app = ‘esanha’
File “/home/sanha/sanha/apps/frappe/frappe/model/sync.py”, line 111, in sync_for
import_file_by_path(
app_name = ‘esanha’
force = 0
reset_permissions = False
files = [‘/home/sanha/sanha/apps/esanha/esanha/esanha/doctype/item/item.json’]
module_name = ‘esanha’
folder = ‘/home/sanha/sanha/apps/esanha/esanha/esanha’
l = 1
i = 0
doc_path = ‘/home/sanha/sanha/apps/esanha/esanha/esanha/doctype/item/item.json’
File “/home/sanha/sanha/apps/frappe/frappe/modules/import_file.py”, line 142, in import_file_by_path
import_doc(
path = ‘/home/sanha/sanha/apps/esanha/esanha/esanha/doctype/item/item.json’
force = 0
data_import = False
pre_process = None
ignore_version = True
reset_permissions = False
docs = [{‘actions’: , ‘allow_rename’: 1, ‘creation’: ‘2024-02-08 21:03:39.084103’, ‘doctype’: ‘DocType’, ‘engine’: ‘InnoDB’, ‘fields’: [{‘fieldname’: ‘item_name’, ‘fieldtype’: ‘Data’, ‘label’: ‘Item Name’, ‘doctype’: ‘DocField’}], ‘index_web_pages_for_search’: 1, ‘links’: , ‘modified’: ‘2024-02-08 21:13:00.598999’, ‘modified_by’: ‘Administrator’, ‘module’: ‘Esanha’, ‘name’: ‘Item’, ‘owner’: ‘Administrator’, ‘permissions’: [{‘create’: 1, ‘delete’: 1, ‘email’: 1, ‘export’: 1, ‘print’: 1, ‘read’: 1, ‘report’: 1, ‘role’: ‘System Manager’, ‘share’: 1, ‘write’: 1, ‘doctype’: ‘DocPerm’}], ‘sort_field’: ‘modified’, ‘sort_order’: ‘DESC’, ‘states’: , ‘__islocal’: 1}]
calculated_hash = ‘eea0d68b07cb5fe1ec3a8b3100369c4d’
doc = {‘actions’: , ‘allow_rename’: 1, ‘creation’: ‘2024-02-08 21:03:39.084103’, ‘doctype’: ‘DocType’, ‘engine’: ‘InnoDB’, ‘fields’: [{‘fieldname’: ‘item_name’, ‘fieldtype’: ‘Data’, ‘label’: ‘Item Name’, ‘doctype’: ‘DocField’}], ‘index_web_pages_for_search’: 1, ‘links’: , ‘modified’: ‘2024-02-08 21:13:00.598999’, ‘modified_by’: ‘Administrator’, ‘module’: ‘Esanha’, ‘name’: ‘Item’, ‘owner’: ‘Administrator’, ‘permissions’: [{‘create’: 1, ‘delete’: 1, ‘email’: 1, ‘export’: 1, ‘print’: 1, ‘read’: 1, ‘report’: 1, ‘role’: ‘System Manager’, ‘share’: 1, ‘write’: 1, ‘doctype’: ‘DocPerm’}], ‘sort_field’: ‘modified’, ‘sort_order’: ‘DESC’, ‘states’: , ‘__islocal’: 1}
db_modified_timestamp = datetime.datetime(2024, 2, 8, 21, 13, 0, 598999)
is_db_timestamp_latest = True
stored_hash = None
File “/home/sanha/sanha/apps/frappe/frappe/modules/import_file.py”, line 235, in import_doc
doc.insert()
docdict = {‘actions’: , ‘allow_rename’: 1, ‘creation’: ‘2024-02-08 21:03:39.084103’, ‘doctype’: ‘DocType’, ‘engine’: ‘InnoDB’, ‘fields’: [{‘fieldname’: ‘item_name’, ‘fieldtype’: ‘Data’, ‘label’: ‘Item Name’, ‘doctype’: ‘DocField’}], ‘index_web_pages_for_search’: 1, ‘links’: , ‘modified’: ‘2024-02-08 21:13:00.598999’, ‘modified_by’: ‘Administrator’, ‘module’: ‘Esanha’, ‘name’: ‘Item’, ‘owner’: ‘Administrator’, ‘permissions’: [{‘create’: 1, ‘delete’: 1, ‘email’: 1, ‘export’: 1, ‘print’: 1, ‘read’: 1, ‘report’: 1, ‘role’: ‘System Manager’, ‘share’: 1, ‘write’: 1, ‘doctype’: ‘DocPerm’}], ‘sort_field’: ‘modified’, ‘sort_order’: ‘DESC’, ‘states’: , ‘__islocal’: 1}
data_import = False
pre_process = None
ignore_version = True
reset_permissions = False
path = ‘/home/sanha/sanha/apps/esanha/esanha/esanha/doctype/item/item.json’
controller = <class ‘frappe.core.doctype.doctype.doctype.DocType’>
doc = <DocType: Item>
File “/home/sanha/sanha/apps/frappe/frappe/model/document.py”, line 313, in insert
self.run_post_save_methods()
self = <DocType: Item>
ignore_permissions = None
ignore_links = None
ignore_if_duplicate = False
ignore_mandatory = None
set_name = None
set_child_names = True
d = <DocPerm: 916882447c parent=Item>
File “/home/sanha/sanha/apps/frappe/frappe/model/document.py”, line 1109, in run_post_save_methods
self.run_method(“on_update”)
self = <DocType: Item>
File “/home/sanha/sanha/apps/frappe/frappe/model/document.py”, line 943, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
self = <DocType: Item>
args = ()
kwargs = {}
fn = <function Document.run_method..fn at 0x7f52a3cc5990>
method = ‘on_update’
File “/home/sanha/sanha/apps/frappe/frappe/model/document.py”, line 1303, in composer
return composed(self, method, args, **kwargs)
self = <DocType: Item>
args = ()
kwargs = {}
hooks = [<function build_domain_restriced_doctype_cache at 0x7f52a6eb9870>, <function clear_doctype_notifications at 0x7f52a529a9e0>, <function process_workflow_actions at 0x7f52a3b9c5e0>, <function attach_files_to_document at 0x7f52a5534160>, <function apply at 0x7f52a3b9f370>, <function update_due_date at 0x7f52a3b9f400>, <function apply_permissions_for_non_standard_user_type at 0x7f52a3bb4b80>]
method = ‘on_update’
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…
handler = ‘frappe.core.doctype.user_type.user_type.apply_permissions_for_non_standard_user_type’
composed = <function Document.hook..compose..runner at 0x7f52a3cc5cf0>
compose = <function Document.hook..compose at 0x7f52a3cc5900>
f = <function Document.run_method..fn at 0x7f52a3cc5990>
File “/home/sanha/sanha/apps/frappe/frappe/model/document.py”, line 1285, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
self = <DocType: Item>
method = ‘on_update’
args = ()
kwargs = {}
add_to_return_value = <function Document.hook..add_to_return_value at 0x7f52a3cc5e10>
fn = <function Document.run_method..fn at 0x7f52a3cc5990>
hooks = (<function build_domain_restriced_doctype_cache at 0x7f52a6eb9870>, <function clear_doctype_notifications at 0x7f52a529a9e0>, <function process_workflow_actions at 0x7f52a3b9c5e0>, <function attach_files_to_document at 0x7f52a5534160>, <function apply at 0x7f52a3b9f370>, <function update_due_date at 0x7f52a3b9f400>, <function apply_permissions_for_non_standard_user_type at 0x7f52a3bb4b80>)
File “/home/sanha/sanha/apps/frappe/frappe/model/document.py”, line 940, in fn
return method_object(*args, **kwargs)
self = <DocType: Item>
args = ()
kwargs = {}
method_object = <bound method DocType.on_update of <DocType: Item>>
method = ‘on_update’
File “/home/sanha/sanha/apps/frappe/frappe/core/doctype/doctype/doctype.py”, line 534, in on_update
self.run_module_method(“on_doctype_update”)
self = <DocType: Item>
allow_doctype_export = False
File “/home/sanha/sanha/apps/frappe/frappe/core/doctype/doctype/doctype.py”, line 632, in run_module_method
module = load_doctype_module(self.name, self.module)
self = <DocType: Item>
method = ‘on_doctype_update’
load_doctype_module = <function load_doctype_module at 0x7f52a6385900>
File “/home/sanha/sanha/apps/frappe/frappe/modules/utils.py”, line 240, in load_doctype_module
raise ImportError(msg) from e
doctype = ‘Item’
module = ‘Esanha’
prefix = ‘’
suffix = ‘’
app = ‘esanha’
key = (‘esanha’, ‘Item’, ‘’, ‘’)
module_name = ‘esanha.esanha.doctype.item.item’
msg = “Module import failed for Item, the DocType you’re trying to open might be deleted.
Error: No module named ‘esanha.esanha.doctype.item.item’”
builtins.ImportError: Module import failed for Item, the DocType you’re trying to open might be deleted.
Error: No module named ‘esanha.esanha.doctype.item.item’