i have now tried everything i did a fresh install of erp next the restored the backup and when i tried to do bench migrate or bench update i get errors
these are the errors
Updating customizations for Address
Traceback (most recent call last):
File “/home/admin/books/erpnext/shamz-bench/apps/frappe/frappe/migrate.py”, line 171, in run
self.run_schema_updates()
File “/home/admin/books/erpnext/shamz-bench/apps/frappe/frappe/migrate.py”, line 40, in wrapper
ret = method(*args, **kwargs)
File “/home/admin/books/erpnext/shamz-bench/apps/frappe/frappe/migrate.py”, line 112, in run_schema_updates
frappe.modules.patch_handler.run_all(skip_failing=self.skip_failing, patch_type=PatchType.pre_model_sync)
File “/home/admin/books/erpnext/shamz-bench/apps/frappe/frappe/modules/patch_handler.py”, line 76, in run_all
run_patch(patch)
File “/home/admin/books/erpnext/shamz-bench/apps/frappe/frappe/modules/patch_handler.py”, line 63, in run_patch
if not run_single(patchmodule = patch):
File “/home/admin/books/erpnext/shamz-bench/apps/frappe/frappe/modules/patch_handler.py”, line 145, in run_single
return execute_patch(patchmodule, method, methodargs)
File “/home/admin/books/erpnext/shamz-bench/apps/frappe/frappe/modules/patch_handler.py”, line 160, in execute_patch
_patch = frappe.get_attr(patch)
File “/home/admin/books/erpnext/shamz-bench/apps/frappe/frappe/init.py”, line 1239, in get_attr
return getattr(get_module(modulename), methodname)
File “/home/admin/books/erpnext/shamz-bench/apps/frappe/frappe/init.py”, line 1015, in get_module
return importlib.import_module(modulename)
File “/usr/lib64/python3.8/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1014, in _gcd_import
File “”, line 991, in _find_and_load
File “”, line 975, in _find_and_load_unlocked
File “”, line 671, in _load_unlocked
File “”, line 843, in exec_module
File “”, line 219, in _call_with_frames_removed
File “/home/admin/books/erpnext/shamz-bench/apps/erpnext/erpnext/patches/v13_0/print_uom_after_quantity_patch.py”, line 5, in
from erpnext.setup.install import create_print_uom_after_qty_custom_field
ImportError: cannot import name ‘create_print_uom_after_qty_custom_field’ from ‘erpnext.setup.install’ (/home/admin/books/erpnext/shamz-bench/apps/erpnext/erpnext/setup/install.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/lib64/python3.8/runpy.py”, line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File “/usr/lib64/python3.8/runpy.py”, line 87, in _run_code
exec(code, run_globals)
File “/home/admin/books/erpnext/shamz-bench/apps/frappe/frappe/utils/bench_helper.py”, line 104, in
main()
File “/home/admin/books/erpnext/shamz-bench/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/admin/books/erpnext/shamz-bench/env/lib/python3.8/site-packages/click/core.py”, line 829, in call
return self.main(*args, **kwargs)
File “/home/admin/books/erpnext/shamz-bench/env/lib/python3.8/site-packages/click/core.py”, line 782, in main
rv = self.invoke(ctx)
File “/home/admin/books/erpnext/shamz-bench/env/lib/python3.8/site-packages/click/core.py”, line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/admin/books/erpnext/shamz-bench/env/lib/python3.8/site-packages/click/core.py”, line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/admin/books/erpnext/shamz-bench/env/lib/python3.8/site-packages/click/core.py”, line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/admin/books/erpnext/shamz-bench/env/lib/python3.8/site-packages/click/core.py”, line 610, in invoke
return callback(*args, **kwargs)
File “/home/admin/books/erpnext/shamz-bench/env/lib/python3.8/site-packages/click/decorators.py”, line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File “/home/admin/books/erpnext/shamz-bench/apps/frappe/frappe/commands/init.py”, line 26, in _func
ret = f(frappe.dict(ctx.obj), *args, **kwargs)
File “/home/admin/books/erpnext/shamz-bench/apps/frappe/frappe/commands/site.py”, line 457, in migrate
SiteMigration(
File “/home/admin/books/erpnext/shamz-bench/apps/frappe/frappe/migrate.py”, line 173, in run
self.post_schema_updates()
File “/home/admin/books/erpnext/shamz-bench/apps/frappe/frappe/migrate.py”, line 40, in wrapper
ret = method(*args, **kwargs)
File “/home/admin/books/erpnext/shamz-bench/apps/frappe/frappe/migrate.py”, line 132, in post_schema_updates
sync_customizations()
File “/home/admin/books/erpnext/shamz-bench/apps/frappe/frappe/modules/utils.py”, line 95, in sync_customizations
sync_customizations_for_doctype(data, folder)
File “/home/admin/books/erpnext/shamz-bench/apps/frappe/frappe/modules/utils.py”, line 150, in sync_customizations_for_doctype
validate_fields_for_doctype(doctype)
File “/home/admin/books/erpnext/shamz-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py”, line 836, in validate_fields_for_doctype
validate_fields(meta)
File “/home/admin/books/erpnext/shamz-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py”, line 1153, in validate_fields
check_unique_fieldname(meta.get(“name”), d.fieldname)
File “/home/admin/books/erpnext/shamz-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py”, line 870, in check_unique_fieldname
frappe.throw((“{0}: Fieldname {1} appears multiple times in rows {2}”).format(docname, fieldname, ", ".join(duplicates)), UniqueFieldnameError)
File “/home/admin/books/erpnext/shamz-bench/apps/frappe/frappe/init.py”, line 449, in throw
msgprint(msg, raise_exception=exc, title=title, indicator=‘red’, is_minimizable=is_minimizable, wide=wide, as_list=as_list)
File “/home/admin/books/erpnext/shamz-bench/apps/frappe/frappe/init.py”, line 428, in msgprint
_raise_exception()
File “/home/admin/books/erpnext/shamz-bench/apps/frappe/frappe/init.py”, line 383, in _raise_exception
raise raise_exception(msg)
frappe.core.doctype.doctype.doctype.UniqueFieldnameError: Address: Fieldname is_your_company_address appears multiple times in rows 20, 21
both the backup and the fresh install are n v13 so i have no idea why im getting this error
any help please