Since few days ago our builds fails with log:
[Container] 2018/12/21 14:09:24 Entering phase INSTALL
[Container] 2018/12/21 14:09:24 Running command pip install --upgrade pip
/codebuild/output/tmp/script.sh: 4: /codebuild/output/tmp/script.sh: pip: not found
[Container] 2018/12/21 14:09:24 Command did not exit successfully pip install --upgrade pip exit status 127
[Container] 2018/12/21 14:09:24 Phase complete: INSTALL Success: false
[Container] 2018/12/21 14:09:24 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: pip install --upgrade pip. Reason: exit status 127
Is it possible that built image doesn't contain pip or there were some changes that causes issue?
Thanks.
@aterentic-basiq - which image on AWS CodeBuild are you using for your projects?
@subinataws , image is aws/codebuild/golang:1.10
@aterentic-basiq - This should be working now. Let us know if the problem persists.
@subinataws and @hareku, thanks for help and info, everything works fine now 馃
Image aws/codebuild/golang:1.11 is failing with the same error:
[Container] 2019/03/03 22:44:44 Running command pip install gitchangelog pystache
/codebuild/output/tmp/script.sh: 4: /codebuild/output/tmp/script.sh: pip: not found
[Container] 2019/03/03 22:44:44 Command did not exit successfully pip install gitchangelog pystache exit status 127
[Container] 2019/03/03 22:44:44 Phase complete: INSTALL Success: false
[Container] 2019/03/03 22:44:44 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: pip install gitchangelog pystache. Reason: exit status 127
@afdabro
You should use pip3 instead of pip.
Most helpful comment
FYI
https://whatibroke.com/2018/12/30/4-codebuild-output-tmp-script-sh-pip-not-found-node-js-and-codestar/