Error creating a new site

Hello guys, i am a java and python programmer, i have installed frappe bench and when ever i want to create a new site i always get an error saying i have not installed frappe(WTF), Frappe is already installed, am so frustrated, and i need to complete a project.

INFO:bench.utils:creating new site demobox.local
frappe app is not installed. Run the following command to install frappe
bench get-app GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript
/bin/sh: 1: /home/ubuntu/frappe-bench/env/bin/frappe: not found
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 11, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/home/frappe/.bench/bench/cli.py”, line 40, in cli
bench_command()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 722, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 697, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 535, in invoke
return callback(*args, **kwargs)
File “/home/frappe/.bench/bench/commands/make.py”, line 56, in new_site
new_site(site, mariadb_root_password=mariadb_root_password, admin_password=admin_password)
File “/home/frappe/.bench/bench/utils.py”, line 150, in new_site
), cwd=os.path.join(bench_path, ‘sites’))
File “/home/frappe/.bench/bench/utils.py”, line 127, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: /home/ubuntu/frappe-bench/env/bin/frappe demobox.local --install a8facd9cc6

from frappe-bench location run

./env/bin/pip install -q frappe

also, check whether app name exists in frappe-bench/sites/app.txt

sir it is not working

Paste output for following commands

cd frappe-bench && ls -l
vi frappe-bench/sites/app.txt

-bash: cd: frappe-bench: No such file or directory

and when i tried reinstalling erpnext and frappe it was giving me this error
INFO:bench.app:installing erpnext
/home/ubuntu/frappe-bench/env/bin/python: libmysqlclient.so.18: cannot open shared object file: No such file or directory

ubuntu@ip-172-31-32-133:~/frappe-bench$ print frappe-bench/sites/app.txt
Unescaped left brace in regex is deprecated, passed through in regex; marked by ← HERE in m/%{ ← HERE (.*?)}/ at /usr/b
in/print line 528.
Error: no such file “frappe-bench/sites/app.txt”

this is no frustrating, sir should i reinstall frappe, and start from the scratch, (THANKS FOR YOUR PATIENCE, PLS STAY WITH ME ON THIS)

  1. cd /home/ubuntu/frappe-bench/
  2. ls -l
    paste output

then

  1. vi sites/app.txt (vi is basic text editor for linux based systems)

paste output

i will try that now

ls -l
drwxrwxr-x 4 ubuntu ubuntu 4096 Feb 27 10:54 apps
drwxrwxr-x 3 ubuntu ubuntu 4096 Feb 27 10:51 config
drwxrwxr-x 9 ubuntu ubuntu 4096 Feb 27 10:52 env
drwxrwxr-x 2 ubuntu ubuntu 4096 Feb 27 10:54 logs
drwxrwxr-x 98 ubuntu ubuntu 4096 Feb 27 10:52 node_modules
-rw-rw-r-- 1 ubuntu ubuntu 128 Feb 27 10:52 patches.txt
drwxrwxr-x 2 ubuntu ubuntu 4096 Feb 27 10:52 sites

it popped up a test editor

@techrex

instead of vi (unintuitive text editor) ,use cat (simple text viewer):
do:

$cat sites/app.txt

and paste output here