Build script returned non-zero exit code: 1 (Flask)

I’m trying to make my first web app with flask library. I also use freeze, and i did complete the runtime.txt and requirements.txt but i keep getting an error when i build it. btw i use python freeze.py as a command.

5:10:12 PM: $ python freeze.py
5:10:12 PM: python: can’t open file ‘freeze.py’: [Errno 2] No such file or directory

5:10:12 PM: ┌─────────────────────────────┐
5:10:12 PM: │ “build.command” failed │
5:10:12 PM: └─────────────────────────────┘
5:10:12 PM: ​
5:10:12 PM: Error message
5:10:12 PM: Command failed with exit code 2: python freeze.py
5:10:12 PM: ​
5:10:12 PM: Error location
5:10:12 PM: In Build command from Netlify app:
5:10:12 PM: python freeze.py
5:10:12 PM: ​
5:10:12 PM: Resolved config
5:10:12 PM: build:
5:10:12 PM: base: /opt/build/repo/build
5:10:12 PM: command: python freeze.py
5:10:12 PM: commandOrigin: ui

any kind of advice would be appreciated. thank you.

so you have a filed called /freeze.py in your repo? That is what we are looking for - at the root of it. Our system seems to think it is not there.

Also - just a heads up - most folks who use Flask seem to expect us to run it at browse time which we DO NOT DO. Our web hosting follows this philosophy:

https://jamstack.org