Hi everyone hope you all are doing well.
When i’m installing frappe v12 i stuck at this error
when i run command bench new-site [sitename] this error is getting coming
Any kind of help to solve this will be very appriciated
frappe : v12
erpnext : v12
python version : 3.10.4
bench version: 5.0.0-dev
ubuntu version: 18.04
Thanks,
Himanshu
Traceback (most recent call last):
File "/home/sinister/.local/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/sinister/.local/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/sinister/carver/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 97, in <module>
main()
File "/home/sinister/carver/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 18, in main
click.Group(commands=commands)(prog_name='bench')
File "/home/sinister/carver/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/home/sinister/carver/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/home/sinister/carver/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/sinister/carver/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/sinister/carver/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/sinister/carver/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/sinister/carver/frappe-bench/apps/frappe/frappe/commands/site.py", line 29, in new_site
_new_site(db_name, site, mariadb_root_username=mariadb_root_username,
File "/home/sinister/carver/frappe-bench/apps/frappe/frappe/commands/site.py", line 73, in _new_site
_install_app(app, verbose=verbose, set_as_patched=not source_sql)
File "/home/sinister/carver/frappe-bench/apps/frappe/frappe/installer.py", line 92, in install_app
frappe.get_attr(after_install)()
File "/home/sinister/carver/frappe-bench/apps/frappe/frappe/utils/install.py", line 19, in after_install
install_basic_docs()
File "/home/sinister/carver/frappe-bench/apps/frappe/frappe/utils/install.py", line 77, in install_basic_docs
frappe.get_doc(d).insert()
File "/home/sinister/carver/frappe-bench/apps/frappe/frappe/model/document.py", line 218, in insert
self._set_defaults()
File "/home/sinister/carver/frappe-bench/apps/frappe/frappe/model/document.py", line 611, in _set_defaults
new_doc = frappe.new_doc(self.doctype, as_dict=True)
File "/home/sinister/carver/frappe-bench/apps/frappe/frappe/__init__.py", line 674, in new_doc
return get_new_doc(doctype, parent_doc, parentfield, as_dict=as_dict)
File "/home/sinister/carver/frappe-bench/apps/frappe/frappe/model/create_new.py", line 25, in get_new_doc
doc = make_new_doc(doctype)
File "/home/sinister/carver/frappe-bench/apps/frappe/frappe/model/create_new.py", line 42, in make_new_doc
set_user_and_static_default_values(doc)
File "/home/sinister/carver/frappe-bench/apps/frappe/frappe/model/create_new.py", line 62, in set_user_and_static_default_values
user_default_value = get_user_default_value(df, defaults, doctype_user_permissions, allowed_records, default_doc)
File "/home/sinister/carver/frappe-bench/apps/frappe/frappe/model/create_new.py", line 79, in get_user_default_value
if (frappe.get_meta(df.options).document_type=="Setup"
File "/home/sinister/carver/frappe-bench/apps/frappe/frappe/__init__.py", line 765, in get_meta
return frappe.model.meta.get_meta(doctype, cached=cached)
File "/home/sinister/carver/frappe-bench/apps/frappe/frappe/model/meta.py", line 37, in get_meta
meta = Meta(doctype)
File "/home/sinister/carver/frappe-bench/apps/frappe/frappe/model/meta.py", line 83, in __init__
super(Meta, self).__init__("DocType", doctype)
File "/home/sinister/carver/frappe-bench/apps/frappe/frappe/model/document.py", line 105, in __init__
self.load_from_db()
File "/home/sinister/carver/frappe-bench/apps/frappe/frappe/model/meta.py", line 88, in load_from_db
super(Meta, self).load_from_db()
File "/home/sinister/carver/frappe-bench/apps/frappe/frappe/model/document.py", line 148, in load_from_db
frappe.throw(_("{0} {1} not found").format(_(self.doctype), self.name), frappe.DoesNotExistError)
File "/home/sinister/carver/frappe-bench/apps/frappe/frappe/__init__.py", line 364, in throw
msgprint(msg, raise_exception=exc, title=title, indicator='red')
File "/home/sinister/carver/frappe-bench/apps/frappe/frappe/__init__.py", line 350, in msgprint
_raise_exception()
File "/home/sinister/carver/frappe-bench/apps/frappe/frappe/__init__.py", line 316, in _raise_exception
raise raise_exception(msg)
frappe.exceptions.DoesNotExistError: DocType Designation not found