Purchase-Analytics icon indicating copy to clipboard operation
Purchase-Analytics copied to clipboard

What does it mean when I have this error message on the website testing website: "Failed! Error executing run.sh (often due to location of shell 'env')"?

Open insight-cc-bot opened this issue 6 years ago • 3 comments

You most likely used a Windows machine to develop your code and there is most likely a ^M carriage character in your run.sh that is preventing the file from being executed in a Unix environment. Please replace all occurrences with a newline.

insight-cc-bot avatar Apr 01 '19 01:04 insight-cc-bot

Thank you!

bmareddy avatar Apr 01 '19 19:04 bmareddy

If you are unable to figure out how to work the newline character, just recreate run.sh using the following command from the repository root of GIT Bash.

echo $'command to execute the python program' > run.sh

bmareddy avatar Apr 01 '19 19:04 bmareddy

Hi, had the same issue myself. I ended up fixing it by adding the following to the first line of my run.sh file.

#!/usr/bin/env bash

Zibble55 avatar Jul 27 '20 04:07 Zibble55