Running example HelloWorld for AWS Toolkit/SAM. Can't find python3.8
Hello,
I've installed the AWS Toolkit and configured it properly. When I select Run>Run I get the following:
docker ps
/usr/local/bin/sam build HelloWorldFunction --template /Users/jungerle/PycharmProjects/garner-dev/template.yaml --build-dir /Users/jungerle/PycharmProjects/garner-dev/.aws-sam/build
Building codeuri: /Users/jungerle/PycharmProjects/garner-dev/hello_world runtime: python3.8 metadata: {} functions: ['HelloWorldFunction']
Build Failed
Error: PythonPipBuilder:Validation - Binary validation failed for python, searched for python in following locations : ['/usr/bin/python'] which did not satisfy constraints for runtime: python3.8. Do you have python for runtime: python3.8 on your PATH?
SAM Build has failed: Command did not exist successfully, exit code: 1
5 has failed: Command did not exist successfully, exit code: 1
However, when I run the following in the pyCharm Terminal it works fine:
/usr/local/bin/sam build HelloWorldFunction --template /Users/jungerle/PycharmProjects/garner-dev/template.yaml --build-dir /Users/jungerle/PycharmProjects/garner-dev/.aws-sam/build
How can I get the Run to recognize Python3.8? (BTW, I do have Python3.8 selected as the interpreter for the project) Thanks for your help.
Please sign in to leave a comment.
Hi,
AWS Toolkit plugin is being developed and maintained by the AWS team. Please file an issue to their issue tracker https://github.com/aws/aws-toolkit-jetbrains/issues