Hi
i am trying update from v12 to v13. but I am getting this error.
please can one faced this before ?
Traceback (most recent call last):
File “/usr/lib/python3.6/runpy.py”, line 193, in _run_module_as_main
“main”, mod_spec)
File “/usr/lib/python3.6/runpy.py”, line 85, in _run_code
exec(code, run_globals)
File “/home/def_user/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 99, in
main()
File “/home/def_user/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/def_user/frappe-bench/env/lib/python3.6/site-packages/click/core.py”, line 829, in call
return self.main(*args, **kwargs)
File “/home/def_user/frappe-bench/env/lib/python3.6/site-packages/click/core.py”, line 782, in main
rv = self.invoke(ctx)
File “/home/def_user/frappe-bench/env/lib/python3.6/site-packages/click/core.py”, line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/def_user/frappe-bench/env/lib/python3.6/site-packages/click/core.py”, line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/def_user/frappe-bench/env/lib/python3.6/site-packages/click/core.py”, line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/def_user/frappe-bench/env/lib/python3.6/site-packages/click/core.py”, line 610, in invoke
return callback(*args, **kwargs)
File “/home/def_user/frappe-bench/env/lib/python3.6/site-packages/click/decorators.py”, line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File “/home/def_user/frappe-bench/apps/frappe/frappe/commands/init.py”, line 26, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File “/home/def_user/frappe-bench/apps/frappe/frappe/commands/site.py”, line 296, in migrate
skip_search_index=skip_search_index
File “/home/def_user/frappe-bench/apps/frappe/frappe/migrate.py”, line 59, in migrate
clear_global_cache()
File “/home/def_user/frappe-bench/apps/frappe/frappe/cache_manager.py”, line 59, in clear_global_cache
clear_website_cache()
File “/home/def_user/frappe-bench/apps/frappe/frappe/website/render.py”, line 315, in clear_cache
for method in frappe.get_hooks(“website_clear_cache”):
File “/home/def_user/frappe-bench/apps/frappe/frappe/init.py”, line 1032, in get_hooks
hooks = _dict(load_app_hooks())
File “/home/def_user/frappe-bench/apps/frappe/frappe/init.py”, line 1008, in load_app_hooks
for app in [app_name] if app_name else get_installed_apps(sort=True):
File “/home/def_user/frappe-bench/apps/frappe/frappe/init.py”, line 972, in get_installed_apps
installed = json.loads(db.get_global(“installed_apps”) or “[]”)
File “/home/def_user/frappe-bench/apps/frappe/frappe/database/database.py”, line 714, in get_global
return self.get_default(key, user)
File “/home/def_user/frappe-bench/apps/frappe/frappe/database/database.py”, line 718, in get_default
d = self.get_defaults(key, parent)
File “/home/def_user/frappe-bench/apps/frappe/frappe/database/database.py”, line 736, in get_defaults
defaults = frappe.defaults.get_defaults(parent)
File “/home/def_user/frappe-bench/apps/frappe/frappe/defaults.py”, line 77, in get_defaults
globald = get_defaults_for()
File “/home/def_user/frappe-bench/apps/frappe/frappe/defaults.py”, line 204, in get_defaults_for
where parent = %s order by creation"“”, (parent,), as_dict=1)
File “/home/def_user/frappe-bench/apps/frappe/frappe/database/database.py”, line 122, in sql
self.connect()
File “/home/def_user/frappe-bench/apps/frappe/frappe/database/database.py”, line 75, in connect
self._conn = self.get_connection()
File “/home/def_user/frappe-bench/apps/frappe/frappe/database/mariadb/database.py”, line 91, in get_connection
local_infile = frappe.conf.local_infile)
TypeError: init() takes 1 positional argument but 4 positional arguments (and 5 keyword-only arguments) were given