ModuleNotFoundError: No module named 'insights' but no need for me

I have installed frappe insights in localhost ,since then i got following error ,please help me regarding, thanks in advance.
15:10:06 schedule.1 | return _bootstrap._gcd_import(name[level:], package, level)
15:10:06 schedule.1 | File “”, line 1050, in _gcd_import
15:10:06 schedule.1 | File “”, line 1027, in _find_and_load
15:10:06 schedule.1 | File “”, line 992,
in _find_and_load_unlocked
15:10:06 schedule.1 | File “”, line 241,
in _call_with_frames_removed
15:10:06 schedule.1 | File “”, line 1050, in _gcd_import
15:10:06 schedule.1 | File “”, line 1027, in _find_and_load
15:10:06 schedule.1 | File “”, line 1004, in _find_and_load_unlocked
15:10:06 schedule.1 | ModuleNotFoundError: No module named ‘insights’
15:10:06 watch.1 | Traceback (most recent call last):
15:10:06 watch.1 | File “/mnt/d/hippocloud/erp/manufacturing_of_erp/manufacturing/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 75, in get_app_commands
15:10:06 watch.1 | app_command_module = importlib.import_module(f"{app}.commands")
15:10:06 watch.1 | File “/usr/lib/python3.10/importlib/init.py”, line 126, in import_module
15:10:06 watch.1 | return _bootstrap._gcd_import(name[level:], package, level)
15:10:06 watch.1 | File “”, line 1050, in _gcd_import
15:10:06 watch.1 | File “”, line 1027, in _find_and_load
15:10:06 watch.1 | File “”, line 992,
in _find_and_load_unlocked
15:10:06 watch.1 | File “”, line 241,
in _call_with_frames_removed
15:10:06 watch.1 | File “”, line 1050, in _gcd_import
15:10:06 watch.1 | File “”, line 1027, in _find_and_load
15:10:06 watch.1 | File “”, line 1004, in _find_and_load_unlocked
15:10:06 watch.1 | ModuleNotFoundError: No module named ‘insights’
15:10:06 web.1 | Traceback (most recent call last):
15:10:06 web.1 | File “/mnt/d/hippocloud/erp/manufacturing_of_erp/manufacturing/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 75, in get_app_commands
15:10:06 web.1 | app_command_module = importlib.import_module(f"{app}.commands")
15:10:06 web.1 | File “/usr/lib/python3.10/importlib/init.py”, line 126, in import_module
15:10:06 web.1 | return _bootstrap._gcd_import(name[level:], package, level)
15:10:06 web.1 | File “”, line 1050, in _gcd_import
15:10:06 web.1 | File “”, line 1027, in _find_and_load
15:10:06 web.1 | File “”, line 992,
in _find_and_load_unlocked
15:10:06 web.1 | File “”, line 241,
in _call_with_frames_removed
15:10:06 web.1 | File “”, line 1050, in _gcd_import
15:10:06 web.1 | File “”, line 1027, in _find_and_load
15:10:06 web.1 | File “”, line 1004, in _find_and_load_unlocked
15:10:06 web.1 | ModuleNotFoundError: No module named ‘insights’
15:10:07 schedule.1 | Traceback (most recent call last):
15:10:07 schedule.1 | File “/usr/lib/python3.10/runpy.py”, line 196, in _run_module_as_main
15:10:07 watch.1 | Traceback (most recent call last):
15:10:07 watch.1 | File “/usr/lib/python3.10/runpy.py”, line 196, in _run_module_as_main
15:10:07 schedule.1 | return _run_code(code, main_globals, None,
15:10:07 watch.1 | return _run_code(code, main_globals, None,
15:10:07 schedule.1 | File “/usr/lib/python3.10/runpy.py”, line 86, in _run_code
15:10:07 watch.1 | File “/usr/lib/python3.10/runpy.py”, line 86, in _run_code
15:10:07 watch.1 | exec(code, run_globals)
15:10:07 watch.1 | File “/mnt/d/hippocloud/erp/manufacturing_of_erp/manufacturing/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 114, in
15:10:07 schedule.1 | exec(code, run_globals)
15:10:07 schedule.1 | File “/mnt/d/hippocloud/erp/manufacturing_of_erp/manufacturing/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 114, in
15:10:07 watch.1 | main()
15:10:07 watch.1 | File “/mnt/d/hippocloud/erp/manufacturing_of_erp/manufacturing/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 20, in main
15:10:07 schedule.1 | main()
15:10:07 schedule.1 | File “/mnt/d/hippocloud/erp/manufacturing_of_erp/manufacturing/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 20, in main
15:10:07 watch.1 | click.Group(commands=commands)(prog_name=“bench”)
15:10:07 watch.1 | File “/mnt/d/hippocloud/erp/manufacturing_of_erp/backup-manufacture/manufacturing/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 1157, in call
15:10:07 schedule.1 | click.Group(commands=commands)(prog_name=“bench”)
15:10:07 schedule.1 | File “/mnt/d/hippocloud/erp/manufacturing_of_erp/backup-manufacture/manufacturing/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 1157, in call
15:10:07 watch.1 | return self.main(*args, **kwargs)
15:10:07 watch.1 | File “/mnt/d/hippocloud/erp/manufacturing_of_erp/backup-manufacture/manufacturing/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 1078, in main
15:10:07 schedule.1 | return self.main(*args, **kwargs)
15:10:07 schedule.1 | File “/mnt/d/hippocloud/erp/manufacturing_of_erp/backup-manufacture/manufacturing/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 1078, in main
15:10:07 watch.1 | rv = self.invoke(ctx)
15:10:07 schedule.1 | rv = self.invoke(ctx)
15:10:07 watch.1 | File “/mnt/d/hippocloud/erp/manufacturing_of_erp/backup-manufacture/manufacturing/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 1688, in invoke
15:10:07 schedule.1 | File “/mnt/d/hippocloud/erp/manufacturing_of_erp/backup-manufacture/manufacturing/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 1688, in invoke
15:10:07 watch.1 | return _process_result(sub_ctx.command.invoke(sub_ctx))
15:10:07 schedule.1 | return _process_result(sub_ctx.command.invoke(sub_ctx))
15:10:07 watch.1 | File “/mnt/d/hippocloud/erp/manufacturing_of_erp/backup-manufacture/manufacturing/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 1685, in invoke
15:10:07 schedule.1 | File “/mnt/d/hippocloud/erp/manufacturing_of_erp/backup-manufacture/manufacturing/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 1685, in invoke
15:10:07 schedule.1 | super().invoke(ctx)
15:10:07 schedule.1 | File “/mnt/d/hippocloud/erp/manufacturing_of_erp/backup-manufacture/manufacturing/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 1434, in invoke
15:10:07 watch.1 | super().invoke(ctx)
15:10:07 watch.1 | File “/mnt/d/hippocloud/erp/manufacturing_of_erp/backup-manufacture/manufacturing/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 1434, in invoke
15:10:07 schedule.1 | return ctx.invoke(self.callback, **ctx.params)15:10:07 schedule.1 | File “/mnt/d/hippocloud/erp/manufacturing_of_erp/backup-manufacture/manufacturing/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 783, in invoke
15:10:07 watch.1 | return ctx.invoke(self.callback, **ctx.params)15:10:07 watch.1 | File “/mnt/d/hippocloud/erp/manufacturing_of_erp/backup-manufacture/manufacturing/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 783, in invoke
15:10:07 schedule.1 | return __callback(*args, **kwargs)
15:10:07 schedule.1 | File “/mnt/d/hippocloud/erp/manufacturing_of_erp/backup-manufacture/manufacturing/frappe-bench/env/lib/python3.10/site-packages/click/decorators.py”, line 33, in new_func
15:10:07 watch.1 | return __callback(*args, **kwargs)
15:10:07 watch.1 | File “/mnt/d/hippocloud/erp/manufacturing_of_erp/backup-manufacture/manufacturing/frappe-bench/env/lib/python3.10/site-packages/click/decorators.py”, line 33, in new_func
15:10:07 watch.1 | return f(get_current_context(), *args, **kwargs)
15:10:07 watch.1 | File “/mnt/d/hippocloud/erp/manufacturing_of_erp/manufacturing/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 44, in app_group
15:10:07 schedule.1 | return f(get_current_context(), *args, **kwargs)
15:10:07 schedule.1 | File “/mnt/d/hippocloud/erp/manufacturing_of_erp/manufacturing/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 44, in app_group
15:10:07 watch.1 | ctx.obj = {“sites”: get_sites(site), “force”:
force, “verbose”: verbose, “profile”: profile}
15:10:07 watch.1 | File “/mnt/d/hippocloud/erp/manufacturing_of_erp/manufacturing/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 56, in get_sites
15:10:07 schedule.1 | ctx.obj = {“sites”: get_sites(site), “force”:
force, “verbose”: verbose, “profile”: profile}
15:10:07 schedule.1 | File “/mnt/d/hippocloud/erp/manufacturing_of_erp/manufacturing/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 56, in get_sites
15:10:07 watch.1 | elif default_site := frappe.get_conf().default_site:
15:10:07 watch.1 | File “/mnt/d/hippocloud/erp/manufacturing_of_erp/manufacturing/frappe-bench/apps/frappe/frappe/init.py”, line 445, in get_conf
15:10:07 schedule.1 | elif default_site := frappe.get_conf().default_site:
15:10:07 schedule.1 | File “/mnt/d/hippocloud/erp/manufacturing_of_erp/manufacturing/frappe-bench/apps/frappe/frappe/init.py”, line 445, in get_conf
15:10:07 watch.1 | with init_site(site):
15:10:07 watch.1 | File “/mnt/d/hippocloud/erp/manufacturing_of_erp/manufacturing/frappe-bench/apps/frappe/frappe/init.py”, line 455, in enter
15:10:07 schedule.1 | with init_site(site):
15:10:07 schedule.1 | File “/mnt/d/hippocloud/erp/manufacturing_of_erp/manufacturing/frappe-bench/apps/frappe/frappe/init.py”, line 455, in enter
15:10:07 schedule.1 | init(self.site)
15:10:07 watch.1 | init(self.site)
15:10:07 schedule.1 | File “/mnt/d/hippocloud/erp/manufacturing_of_erp/manufacturing/frappe-bench/apps/frappe/frappe/init.py”, line 313, in init
15:10:07 watch.1 | File “/mnt/d/hippocloud/erp/manufacturing_of_erp/manufacturing/frappe-bench/apps/frappe/frappe/init.py”, line 313, in init
15:10:07 watch.1 | setup_module_map(include_all_apps=not (frappe.request or frappe.job or frappe.flags.in_migrate))
15:10:07 schedule.1 | setup_module_map(include_all_apps=not (frappe.request or frappe.job or frappe.flags.in_migrate))
15:10:07 watch.1 | File “/mnt/d/hippocloud/erp/manufacturing_of_erp/manufacturing/frappe-bench/apps/frappe/frappe/init.py”, line 1692, in
setup_module_map
15:10:07 schedule.1 | File “/mnt/d/hippocloud/erp/manufacturing_of_erp/manufacturing/frappe-bench/apps/frappe/frappe/init.py”, line 1692, in
setup_module_map
15:10:07 watch.1 | for module in get_module_list(app):
15:10:07 watch.1 | File “/mnt/d/hippocloud/erp/manufacturing_of_erp/manufacturing/frappe-bench/apps/frappe/frappe/init.py”, line 1540, in
get_module_list
15:10:07 schedule.1 | for module in get_module_list(app):
15:10:07 schedule.1 | File “/mnt/d/hippocloud/erp/manufacturing_of_erp/manufacturing/frappe-bench/apps/frappe/frappe/init.py”, line 1540, in
get_module_list
15:10:07 schedule.1 | return get_file_items(get_app_path(app_name, “modules.txt”))
15:10:07 schedule.1 | File “/mnt/d/hippocloud/erp/manufacturing_of_erp/manufacturing/frappe-bench/apps/frappe/frappe/init.py”, line 1505, in
get_app_path
15:10:07 watch.1 | return get_file_items(get_app_path(app_name, “modules.txt”))
15:10:07 watch.1 | File “/mnt/d/hippocloud/erp/manufacturing_of_erp/manufacturing/frappe-bench/apps/frappe/frappe/init.py”, line 1505, in
get_app_path
15:10:07 watch.1 | return get_pymodule_path(app_name, *joins)
15:10:07 watch.1 | File “/mnt/d/hippocloud/erp/manufacturing_of_erp/manufacturing/frappe-bench/apps/frappe/frappe/init.py”, line 1535, in
get_pymodule_path
15:10:07 schedule.1 | return get_pymodule_path(app_name, *joins)
15:10:07 schedule.1 | File “/mnt/d/hippocloud/erp/manufacturing_of_erp/manufacturing/frappe-bench/apps/frappe/frappe/init.py”, line 1535, in
get_pymodule_path
15:10:07 watch.1 | return abspath(join(dirname(get_module(scrub(modulename)).file or “”), *joins))
15:10:07 watch.1 | File “/mnt/d/hippocloud/erp/manufacturing_of_erp/manufacturing/frappe-bench/apps/frappe/frappe/init.py”, line 1476, in
get_module
15:10:07 schedule.1 | return abspath(join(dirname(get_module(scrub(modulename)).file or “”), *joins))
15:10:07 schedule.1 | File “/mnt/d/hippocloud/erp/manufacturing_of_erp/manufacturing/frappe-bench/apps/frappe/frappe/init.py”, line 1476, in
get_module
15:10:07 schedule.1 | return importlib.import_module(modulename)
15:10:07 schedule.1 | File “/usr/lib/python3.10/importlib/init.py”, line 126, in import_module
15:10:07 schedule.1 | return _bootstrap._gcd_import(name[level:], package, level)
15:10:07 schedule.1 | File “”, line 1050, in _gcd_import
15:10:07 watch.1 | return importlib.import_module(modulename)
15:10:07 watch.1 | File “/usr/lib/python3.10/importlib/init.py”, line 126, in import_module
15:10:07 watch.1 | return _bootstrap._gcd_import(name[level:], package, level)
15:10:07 watch.1 | File “”, line 1050, in _gcd_import
15:10:07 watch.1 | File “”, line 1027, in _find_and_load
15:10:07 schedule.1 | File “”, line 1027, in _find_and_load
15:10:07 watch.1 | File “”, line 1004, in _find_and_load_unlocked
15:10:07 schedule.1 | File “”, line 1004, in _find_and_load_unlocked
15:10:07 watch.1 | ModuleNotFoundError: No module named ‘insights’
15:10:07 schedule.1 | ModuleNotFoundError: No module named ‘insights’
15:10:07 system | watch.1 stopped (rc=1)
15:10:07 system | sending SIGTERM to redis_cache.1 (pid 23648)
15:10:07 system | sending SIGTERM to redis_queue.1 (pid 23649)
15:10:07 system | sending SIGTERM to web.1 (pid 23653)
15:10:07 system | sending SIGTERM to socketio.1 (pid 23656)
15:10:07 system | sending SIGTERM to schedule.1 (pid 23666)
15:10:07 system | sending SIGTERM to worker.1 (pid 23668)
15:10:07 redis_cache.1 | 23658:signal-handler (1720518007) Received SIGTERM scheduling shutdown…
15:10:07 redis_queue.1 | 23657:signal-handler (1720518007) Received SIGTERM scheduling shutdown…
15:10:07 system | schedule.1 stopped (rc=-15)
15:10:07 system | worker.1 stopped (rc=-15)
15:10:07 system | web.1 stopped (rc=-15)
15:10:07 system | socketio.1 stopped (rc=-15)
15:10:07 redis_cache.1 | 23658:M 09 Jul 2024 15:10:07.460 * User requested
shutdown…
15:10:07 redis_cache.1 | 23658:M 09 Jul 2024 15:10:07.460 * Removing the pid file.
15:10:07 redis_cache.1 | 23658:M 09 Jul 2024 15:10:07.462 # Redis is now ready to exit, bye bye…
15:10:07 redis_queue.1 | 23657:M 09 Jul 2024 15:10:07.464 * User requested
shutdown…
15:10:07 redis_queue.1 | 23657:M 09 Jul 2024 15:10:07.464 * Saving the final RDB snapshot before exiting.
15:10:07 system | redis_cache.1 stopped (rc=-15)
15:10:07 redis_queue.1 | 23657:M 09 Jul 2024 15:10:07.476 * DB saved on disk
15:10:07 redis_queue.1 | 23657:M 09 Jul 2024 15:10:07.476 * Removing the pid file.
15:10:07 redis_queue.1 | 23657:M 09 Jul 2024 15:10:07.478 # Redis is now ready to exit, bye bye…
15:10:07 system | redis_queue.1 stopped (rc=-15)

1st try

bench migrate

if not works then check this-

`bench --site (sitename) list-apps

if it shows frappe-insights then run

 bench --site (sitename) remove-from-installed-apps frappe-insights

And if the app is not there then just install the app again, after that simply Uninstall it.

   bench --site [sitename] uninstall-app insights

Hope it helps.