Python flask reloader "Errno 2 No such file or directory" error when running on docker Python flask reloader "Errno 2 No such file or directory" error when running on docker flask flask

Python flask reloader "Errno 2 No such file or directory" error when running on docker


I've encountered the same problem here and the solution for me was to remove the executable flag from the "run.py" file.

$ chmod -x run.py

The error was very similar, but in my case I'm using an Ubuntu 18.04 WSL on a Windows 10 machine.


Try to run the app as a module:

python -m flask run

See https://github.com/pallets/flask/issues/1829 for more information.