I got error in installation in AWS

TASK [bench : setup config] ********************************************************************************************************************************************************************
task path: /tmp/.bench/bench/playbooks/roles/bench/tasks/main.yml:51
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root
<127.0.0.1> EXEC /bin/sh -c ‘echo ~root && sleep 0’
<127.0.0.1> EXEC /bin/sh -c ‘( umask 77 && mkdir -p “echo /var/tmp”&& mkdir /var/tmp/ansible-tmp-1658906139.5013993-33770-231861163904204 && echo ansible-tmp-1658906139.5013993-33770-231861163904204="echo /var/tmp/ansible-tmp-1658906139.5013993-33770-231861163904204" ) && sleep 0’
Using module file /usr/local/lib/python3.8/dist-packages/ansible/modules/commands/command.py
<127.0.0.1> PUT /root/.ansible/tmp/ansible-local-30652gml66lug/tmp3q4ayky4 TO /var/tmp/ansible-tmp-1658906139.5013993-33770-231861163904204/AnsiballZ_command.py
<127.0.0.1> EXEC /bin/sh -c ‘setfacl -m u:teja:r-x /var/tmp/ansible-tmp-1658906139.5013993-33770-231861163904204/ /var/tmp/ansible-tmp-1658906139.5013993-33770-231861163904204/AnsiballZ_command.py && sleep 0’
<127.0.0.1> EXEC /bin/sh -c ‘chmod u+x /var/tmp/ansible-tmp-1658906139.5013993-33770-231861163904204/ /var/tmp/ansible-tmp-1658906139.5013993-33770-231861163904204/AnsiballZ_command.py && sleep 0’
<127.0.0.1> EXEC /bin/sh -c ‘chown teja /var/tmp/ansible-tmp-1658906139.5013993-33770-231861163904204/ /var/tmp/ansible-tmp-1658906139.5013993-33770-231861163904204/AnsiballZ_command.py && sleep 0’
<127.0.0.1> EXEC /bin/sh -c ‘sudo -H -S -n -u teja /bin/sh -c ‘"’"‘echo BECOME-SUCCESS-yujinyxakdqzagqsafqqownfgwwbvaxa ; /usr/bin/python3 /var/tmp/ansible-tmp-1658906139.5013993-33770-231861163904204/AnsiballZ_command.py’"’"’ && sleep 0’
<127.0.0.1> EXEC /bin/sh -c ‘rm -f -r /var/tmp/ansible-tmp-1658906139.5013993-33770-231861163904204/ > /dev/null 2>&1 && sleep 0’
fatal: [localhost]: FAILED! => {
“changed”: true,
“cmd”: [
“bench”,
“setup”,
“config”
],
“delta”: “0:00:00.481667”,
“end”: “2022-07-27 07:15:40.170544”,
“invocation”: {
“module_args”: {
“_raw_params”: “bench setup config”,
“_uses_shell”: false,
“argv”: null,
“chdir”: “/home/teja/frappe-bench”,
“creates”: “/home/teja/frappe-bench/sites/common_site_config.json”,
“executable”: null,
“removes”: null,
“stdin”: null,
“stdin_add_newline”: true,
“strip_empty_ends”: true,
“warn”: true
}
},
“msg”: “non-zero return code”,
“rc”: 1,
“start”: “2022-07-27 07:15:39.688877”,
“stderr”: “Traceback (most recent call last):\n File “/usr/local/bin/bench”, line 33, in \n sys.exit(load_entry_point(‘frappe-bench’, ‘console_scripts’, ‘bench’)())\n File “/home/teja/.bench/bench/cli.py”, line 104, in cli\n if sys.argv[1] in Bench(”.").apps:\n File “/home/teja/.bench/bench/bench.py”, line 66, in init\n self.apps = BenchApps(self)\n File “/home/teja/.bench/bench/bench.py”, line 172, in init\n self.initialize_apps()\n File “/home/teja/.bench/bench/bench.py”, line 274, in initialize_apps\n self.apps.remove(“frappe”)\nValueError: list.remove(x): x not in list",
“stderr_lines”: [
“Traceback (most recent call last):”,
" File “/usr/local/bin/bench”, line 33, in “,
" sys.exit(load_entry_point(‘frappe-bench’, ‘console_scripts’, ‘bench’)())”,
" File “/home/teja/.bench/bench/cli.py”, line 104, in cli",
" if sys.argv[1] in Bench(".").apps:",
" File “/home/teja/.bench/bench/bench.py”, line 66, in init",
" self.apps = BenchApps(self)",
" File “/home/teja/.bench/bench/bench.py”, line 172, in init",
" self.initialize_apps()",
" File “/home/teja/.bench/bench/bench.py”, line 274, in initialize_apps",
" self.apps.remove(“frappe”)",
“ValueError: list.remove(x): x not in list”
],
“stdout”: “WARN: bench is installed in editable mode!\n\nThis is not the recommended mode of installation for production. Instead, install the package from PyPI with: pip install frappe-bench\n\n/home/teja/frappe-bench/env/bin/python: Error while finding module specification for ‘frappe.utils.bench_helper’ (ModuleNotFoundError: No module named ‘frappe’)”,
“stdout_lines”: [
“WARN: bench is installed in editable mode!”,
“”,
"This is not the recommended mode of installation for production. Instead, install the package from PyPI with: pip install frappe-bench",
“”,
“/home/teja/frappe-bench/env/bin/python: Error while finding module specification for ‘frappe.utils.bench_helper’ (ModuleNotFoundError: No module named ‘frappe’)”
]
}

PLAY RECAP *************************************************************************************************************************************************************************************
localhost : ok=64 changed=14 unreachable=0 failed=1 skipped=66 rescued=0 ignored=0

Traceback (most recent call last):
File “install.py”, line 497, in
install_bench(args)
File “install.py”, line 278, in install_bench
run_playbook(‘site.yml’, sudo=True, extra_vars=extra_vars)
File “install.py”, line 413, in run_playbook
success = subprocess.check_call(args, cwd=playbooks_folder, stdout=log_stream, stderr=sys.stderr)
File “/usr/lib/python3.8/subprocess.py”, line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[‘ansible-playbook’, ‘-c’, ‘local’, ‘site.yml’, ‘-vvvv’, ‘-e’, ‘@/tmp/extra_vars.json’, ‘–become’, ‘–become-user=teja’]’ returned non-zero exit status 2.