Hi, please help,
Trying to upgrade from ERPNext: v7.2.27 / Frappe Framework: v7.2.27
Getting error when running bench update --upgrade
Error message:
Executing frappe.patches.v8_0.set_currency_field_precision # 2017-05-09 in site1.local (1bd3e0294d)
Traceback (most recent call last):
File “/usr/lib64/python2.7/runpy.py”, line 162, in _run_module_as_main
“main”, fname, loader, pkg_name)
File “/usr/lib64/python2.7/runpy.py”, line 72, in _run_code
exec code in run_globals
File “/home/cahyadi/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, li ne 79, in
main()
File “/home/cahyadi/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, li ne 16, in main
click.Group(commands=commands)(prog_name=‘bench’)
File "/home/cahyadi/frappe-bench/env/lib/python2.7/site-packages/click/core.py ", line 664, in call
return self.main(*args, **kwargs)
File "/home/cahyadi/frappe-bench/env/lib/python2.7/site-packages/click/core.py ", line 644, in main
rv = self.invoke(ctx)
File "/home/cahyadi/frappe-bench/env/lib/python2.7/site-packages/click/core.py ", line 991, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/cahyadi/frappe-bench/env/lib/python2.7/site-packages/click/core.py ", line 991, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/cahyadi/frappe-bench/env/lib/python2.7/site-packages/click/core.py ", line 837, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/cahyadi/frappe-bench/env/lib/python2.7/site-packages/click/core.py “, line 464, in invoke
return callback(*args, **kwargs)
File “/home/cahyadi/frappe-bench/apps/frappe/frappe/commands/init.py”, lin e 24, in _func
ret = f(frappe.dict(ctx.obj), *args, **kwargs)
File “/home/cahyadi/frappe-bench/apps/frappe/frappe/commands/site.py”, line 21 4, in migrate
migrate(context.verbose, rebuild_website=rebuild_website)
File “/home/cahyadi/frappe-bench/apps/frappe/frappe/migrate.py”, line 31, in m igrate
frappe.modules.patch_handler.run_all()
File “/home/cahyadi/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 29, in run_all
if not run_single(patchmodule = patch):
File “/home/cahyadi/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 63, in run_single
return execute_patch(patchmodule, method, methodargs)
File “/home/cahyadi/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 83, in execute_patch
frappe.get_attr(patchmodule.split()[0] + “.execute”)()
File "/home/cahyadi/frappe-bench/apps/frappe/frappe/patches/v8_0/set_currency field_precision.py”, line 22, in execute
ss.save()
File “/home/cahyadi/frappe-bench/apps/frappe/frappe/model/document.py”, line 2 30, in save
return self._save(*args, **kwargs)
File “/home/cahyadi/frappe-bench/apps/frappe/frappe/model/document.py”, line 2 63, in _save
self.run_before_save_methods()
File “/home/cahyadi/frappe-bench/apps/frappe/frappe/model/document.py”, line 7 71, in run_before_save_methods
self.run_method(“validate”)
File “/home/cahyadi/frappe-bench/apps/frappe/frappe/model/document.py”, line 6 66, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “/home/cahyadi/frappe-bench/apps/frappe/frappe/model/document.py”, line 8 91, in composer
return composed(self, method, *args, **kwargs)
File “/home/cahyadi/frappe-bench/apps/frappe/frappe/model/document.py”, line 8 74, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/cahyadi/frappe-bench/apps/frappe/frappe/model/document.py”, line 6 60, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/cahyadi/frappe-bench/apps/frappe/frappe/core/doctype/system_settin gs/system_settings.py”, line 16, in validate
minimum_password_score = cint(self.minimum_password_score) or 0
AttributeError: ‘SystemSettings’ object has no attribute 'minimum_password_score ’