Frappe installation error (FileNotFoundError:)

On bench start im getting the following error when i open localhost:8000
FileNotFoundError: [Errno 2] No such file or directory: ‘/Users/USER/Desktop/first-bench/sites/localhost/logs/frappe.web.log’

I have also seen that.

What happens if you explicitly create the directory and file before creating the site?

mkdir -p /Users/USER/Desktop/first-bench/sites/localhost/logs
touch /Users/USER/Desktop/first-bench/sites/localhost/logs/frappe.web.log

Also, please indicate your system type, install method, and the commands you run leading up to the problem occuring. Thanks.

Hey MartinHBramwell

im using a mac and followed the steps in the install bench github repo readme.
i was facing some errors so after reading some errors in of other people i used these commands to get bench start to work…

==>source env/bin/activate
==>pip install -e ./apps/frappe --no-cache-dir
==>bench build

after that i ran into this issue !
Your suggestions didnt work. so how did you resolve this issue?
Thank you !

What happens if you explicitly create the directory and file before creating the site?

mkdir -p /Users/USER/Desktop/first-bench/sites/localhost/logs
touch /Users/USER/Desktop/first-bench/sites/localhost/logs/frappe.web.log

doesnt work.
actually this might be because bench new site loacal.site failed.

What error message do you see if you explicitly create the directory and file before creating the site?

mkdir -p /Users/USER/Desktop/first-bench/sites/localhost/logs
touch /Users/USER/Desktop/first-bench/sites/localhost/logs/frappe.web.log

Are you on Catalina? Frappe can not be installed on Catalina.
It still can on Mojave.

Yes catalina!. i have decided to go with the docker installation and it worked fine!
thanks you !