Aws-codebuild-docker-images: Build fails due to missing pip

Created on 21 Dec 2018  路  7Comments  路  Source: aws/aws-codebuild-docker-images

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.

All 7 comments

@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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nfisher picture nfisher  路  5Comments

anilmujagic picture anilmujagic  路  5Comments

vibhuyadav picture vibhuyadav  路  4Comments

irishgordo picture irishgordo  路  5Comments

DevBOFH picture DevBOFH  路  5Comments