Erpnext failing with ModuleNotFoundError: No module named 'restore'

erpnext failing with error

ModuleNotFoundError: No module named ‘restore’

On console, i am getting

21:17:58 web.1            | During handling of the above exception, another exception occurred:
21:17:58 web.1            | 
21:17:58 web.1            | Traceback (most recent call last):
21:17:58 web.1            |   File "/home/erpnext/frappe-bench/apps/frappe/frappe/middlewares.py", line 16, in __call__
21:17:58 web.1            |     return super(StaticDataMiddleware, self).__call__(environ, start_response)
21:17:58 web.1            |   File "/home/erpnext/frappe-bench/env/lib/python3.8/site-packages/werkzeug/middleware/shared_data.py", line 220, in __call__
21:17:58 web.1            |     return self.app(environ, start_response)
21:17:58 web.1            |   File "/home/erpnext/frappe-bench/env/lib/python3.8/site-packages/werkzeug/middleware/shared_data.py", line 220, in __call__
21:17:58 web.1            |     return self.app(environ, start_response)
21:17:58 web.1            |   File "/home/erpnext/frappe-bench/env/lib/python3.8/site-packages/werkzeug/local.py", line 231, in application
21:17:58 web.1            |     return ClosingIterator(app(environ, start_response), self.cleanup)
21:17:58 web.1            |   File "/home/erpnext/frappe-bench/env/lib/python3.8/site-packages/werkzeug/wrappers/base_request.py", line 237, in application
21:17:58 web.1            |     resp = f(*args[:-2] + (request,))
21:17:58 web.1            |   File "/home/erpnext/frappe-bench/apps/frappe/frappe/app.py", line 85, in application
21:17:58 web.1            |     response = handle_exception(e)
21:17:58 web.1            |   File "/home/erpnext/frappe-bench/apps/frappe/frappe/app.py", line 202, in handle_exception
21:17:58 web.1            |     response = frappe.website.render.render("message",
21:17:58 web.1            |   File "/home/erpnext/frappe-bench/apps/frappe/frappe/website/render.py", line 80, in render
21:17:58 web.1            |     data = render_page(path)
21:17:58 web.1            |   File "/home/erpnext/frappe-bench/apps/frappe/frappe/website/render.py", line 193, in render_page
21:17:58 web.1            |     return build(path)
21:17:58 web.1            |   File "/home/erpnext/frappe-bench/apps/frappe/frappe/website/render.py", line 200, in build
21:17:58 web.1            |     return build_page(path)
21:17:58 web.1            |   File "/home/erpnext/frappe-bench/apps/frappe/frappe/website/render.py", line 215, in build_page
21:17:58 web.1            |     context = get_context(path)
21:17:58 web.1            |   File "/home/erpnext/frappe-bench/apps/frappe/frappe/website/context.py", line 15, in get_context
21:17:58 web.1            |     context = get_page_context(path)
21:17:58 web.1            |   File "/home/erpnext/frappe-bench/apps/frappe/frappe/website/router.py", line 42, in get_page_context
21:17:58 web.1            |     page_context = make_page_context(path)
21:17:58 web.1            |   File "/home/erpnext/frappe-bench/apps/frappe/frappe/website/router.py", line 50, in make_page_context
21:17:58 web.1            |     context = resolve_route(path)
21:17:58 web.1            |   File "/home/erpnext/frappe-bench/apps/frappe/frappe/website/router.py", line 25, in resolve_route
21:17:58 web.1            |     context = get_page_info_from_template(path)
21:17:58 web.1            |   File "/home/erpnext/frappe-bench/apps/frappe/frappe/website/router.py", line 66, in get_page_info_from_template
21:17:58 web.1            |     app_path = frappe.get_app_path(app)
21:17:58 web.1            |   File "/home/erpnext/frappe-bench/apps/frappe/frappe/__init__.py", line 859, in get_app_path
21:17:58 web.1            |     return get_pymodule_path(app_name, *joins)
21:17:58 web.1            |   File "/home/erpnext/frappe-bench/apps/frappe/frappe/__init__.py", line 874, in get_pymodule_path
21:17:58 web.1            |     return os.path.join(os.path.dirname(get_module(scrub(modulename)).__file__), *joins)
21:17:58 web.1            |   File "/home/erpnext/frappe-bench/apps/frappe/frappe/__init__.py", line 836, in get_module
21:17:58 web.1            |     return importlib.import_module(modulename)
21:17:58 web.1            |   File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
21:17:58 web.1            |     return _bootstrap._gcd_import(name[level:], package, level)
21:17:58 web.1            |   File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
21:17:58 web.1            |     
21:17:58 web.1            |   File "<frozen importlib._bootstrap>", line 991, in _find_and_load
21:17:58 web.1            |     
21:17:58 web.1            |   File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
21:17:58 web.1            |     
21:17:58 web.1            | ModuleNotFoundError: No module named 'restore'

This happened after i restore backup of epnext on a local install.

Here is the apps i have installed.

(venv) erpnext@vagrant:~/frappe-bench$ bench  list-apps
frappe
erpnext
restore
(venv) erpnext@vagrant:~/frappe-bench$ 

I tried to uninstall this app, but it fails

(venv) erpnext@vagrant:~/frappe-bench$ bench --site erp.bizhat.com uninstall-app restore
Uninstalling App restore from Site erp.bizhat.com...
All doctypes (including custom), modules related to this app will be deleted. Are you sure you want to continue? [y/N]: y
Backing up...
Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 99, in <module>
    main()
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 18, in main
    click.Group(commands=commands)(prog_name='bench')
  File "/home/erpnext/frappe-bench/env/lib/python3.8/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/home/erpnext/frappe-bench/env/lib/python3.8/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/home/erpnext/frappe-bench/env/lib/python3.8/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/erpnext/frappe-bench/env/lib/python3.8/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/erpnext/frappe-bench/env/lib/python3.8/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/erpnext/frappe-bench/env/lib/python3.8/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/erpnext/frappe-bench/env/lib/python3.8/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/commands/__init__.py", line 26, in _func
    ret = f(frappe._dict(ctx.obj), *args, **kwargs)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/commands/site.py", line 448, in uninstall
    remove_app(app_name=app, dry_run=dry_run, yes=yes, no_backup=no_backup, force=force)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/installer.py", line 146, in remove_app
    for module_name in frappe.get_module_list(app_name):
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/__init__.py", line 878, in get_module_list
    return get_file_items(os.path.join(os.path.dirname(get_module(app_name).__file__), "modules.txt"))
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/__init__.py", line 836, in get_module
    return importlib.import_module(modulename)
  File "/home/erpnext/frappe-bench/env/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'restore'
(venv) erpnext@vagrant:~/frappe-bench$ 

Any idea how to fix this error ?