Unable to setup new site

aafpl@aafpl:~/frappe-bench$ bench new-site aafplnew.local
Traceback (most recent call last):
File “/usr/lib/python2.7/runpy.py”, line 162, in _run_module_as_main
main”, fname, loader, pkg_name)
File “/usr/lib/python2.7/runpy.py”, line 72, in _run_code
exec code in run_globals
File “/home/aafpl/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 79, in
main()
File “/home/aafpl/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 16, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/aafpl/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 664, in call
return self.main(*args, **kwargs)
File “/home/aafpl/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 644, in main
rv = self.invoke(ctx)
File “/home/aafpl/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 991, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/aafpl/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 991, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/aafpl/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 837, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/aafpl/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 464, in invoke
return callback(*args, **kwargs)
File “/home/aafpl/frappe-bench/apps/frappe/frappe/commands.py”, line 68, in new_site
frappe.init(site=site)
File “/home/aafpl/frappe-bench/apps/frappe/frappe/init.py”, line 137, in init
setup_module_map()
File “/home/aafpl/frappe-bench/apps/frappe/frappe/init.py”, line 723, in setup_module_map
for module in get_module_list(app):
File “/home/aafpl/frappe-bench/apps/frappe/frappe/init.py”, line 632, in get_module_list
return get_file_items(os.path.join(os.path.dirname(get_module(app_name).file), “modules.txt”))
File “/home/aafpl/frappe-bench/apps/frappe/frappe/init.py”, line 590, in get_module
return importlib.import_module(modulename)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
ImportError: No module named website_chat
aafpl@aafpl:~/frappe-bench$

Did you install website_chat and then delete the folder?

You will have to remove it from your apps.txt

where should I locate this file apps.txt

Getting the error of Website_chat … even after deleting the same from apps.txt

Hi I have removed the app but still getting the same error.

You have to remove it from sites/apps.txt