Can't install app Insight on my ERPNEXT

Hello, i am running into an error trying to install the app Insights,

it was previously installed but it didn’t seem to show it on the app, so i tried to uninstall it but when i execute the command
bench install-app insights, i get this error

Installing insights...
An error occurred while installing insights: Module import failed for Insights Settings (insights.insights.doctype.insights_settings.insights_settings Error: No module named 'frappe.utils.caching')
Traceback (most recent call last):
  File "apps/frappe/frappe/modules/utils.py", line 243, in load_doctype_module
    doctype_python_modules[key] = frappe.get_module(module_name)
  File "apps/frappe/frappe/__init__.py", line 1206, in get_module
    return importlib.import_module(modulename)
  File "/usr/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 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 848, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "apps/insights/insights/insights/doctype/insights_settings/insights_settings.py", line 8, in <module>
    from insights.api.subscription import get_subscription_key
  File "apps/insights/insights/api/__init__.py", line 8, in <module>
    from frappe.utils.caching import redis_cache
ModuleNotFoundError: No module named 'frappe.utils.caching'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "apps/frappe/frappe/commands/site.py", line 293, in install_app
    _install_app(app, verbose=context.verbose)
  File "apps/frappe/frappe/installer.py", line 186, in install_app
    sync_for(name, force=True, sync_everything=True, verbose=verbose, reset_permissions=True)
  File "apps/frappe/frappe/model/sync.py", line 73, in sync_for
    import_file_by_path(
  File "apps/frappe/frappe/modules/import_file.py", line 146, in import_file_by_path
    import_doc(
  File "apps/frappe/frappe/modules/import_file.py", line 275, in import_doc
    doc.insert()
  File "apps/frappe/frappe/model/document.py", line 293, in insert
    self.run_post_save_methods()
  File "apps/frappe/frappe/model/document.py", line 1087, in run_post_save_methods
    self.run_method("on_update")
  File "apps/frappe/frappe/model/document.py", line 943, in run_method
    out = Document.hook(fn)(self, *args, **kwargs)
  File "apps/frappe/frappe/model/document.py", line 1264, in composer
    return composed(self, method, *args, **kwargs)
  File "apps/frappe/frappe/model/document.py", line 1246, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
  File "apps/frappe/frappe/model/document.py", line 940, in fn
    return method_object(*args, **kwargs)
  File "apps/frappe/frappe/core/doctype/doctype/doctype.py", line 376, in on_update
    self.run_module_method("on_doctype_update")
  File "apps/frappe/frappe/core/doctype/doctype/doctype.py", line 435, in run_module_method
    module = load_doctype_module(self.name, self.module)
  File "apps/frappe/frappe/modules/utils.py", line 245, in load_doctype_module
    raise ImportError(
ImportError: Module import failed for Insights Settings (insights.insights.doctype.insights_settings.insights_settings Error: No module named 'frappe.utils.caching')

I tried to do bench update, bench migrate, bench remove-from-installed-apps.

But nothing works, i 've tried to search it doesn’t seem that anyone got that same error.

Thank you !

Hi,

What does bench version return?

What is your frappe version?