Docker compose “The system cannot find the file specified” error

Issue

When running “docker-compose up –build” I experienced the following error:

Traceback (most recent call last): File "", line 3, in File "compose\cli\main.py", line 65, in main File "compose\cli\main.py", line 117, in perform_command File "compose\cli\main.py", line 849, in up File "compose\project.py", line 372, in up File "compose\project.py", line 539, in warn_for_swarm_mode File "site-packages\docker\api\daemon.py", line 33, in info