OSError: [Errno 8] Exec format error

OSError: [Errno 8] Exec format error

OSError: [Errno 8] Exec format error can happen if there is no shebang line at the top of the shell script and you are trying to execute the script directly.

Solution: Add a shebang eg. #!/usr/bin/env bash to the start of the script you are trying to execute.

Source

Leave a Reply

Your email address will not be published. Required fields are marked *