Aws-toolkit-jetbrains: SAM build failed without error message

Created on 28 Jul 2020  路  3Comments  路  Source: aws/aws-toolkit-jetbrains

Describe the bug
After a SAM build fails for AWS explorer lamba, it doesn't display the error.

To reproduce

  1. Create bad AWS lambda project
  2. Build it.
  3. Event Log Displays: SAM build command failed with no error.

Expected behavior
When I run the same command from shell, I actually get a useful error:

% /usr/local/bin/sam build elasticsearchprocessalerts --template "/Users/michaelschem/PycharmProjects/AWS Lambdas/template.yaml" --build-dir "/Users/michaelschem/PycharmProjects/AWS Lambdas/.aws-sam/build"

Building function 'elasticsearchprocessalerts'

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.7. Do you have python for runtime: python3.7 on your PATH?

Screenshots
image
image

Your Environment

  • OS: macOS Catalina
  • JetBrains product: PyCharm
  • JetBrains product version: 2020.1.1
  • AWS Toolkit version: 1.17-201
  • SAM CLI version: 0.53.0
  • JVM/Python version: 3.7
bug

Most helpful comment

Do you have a tree on the left? Due to how IntelliJ builds the tree, the output goes to the parent node.

Screen Shot 2020-07-28 at 5 06 03 PM

All 3 comments

Do you have a tree on the left? Due to how IntelliJ builds the tree, the output goes to the parent node.

Screen Shot 2020-07-28 at 5 06 03 PM

You are the man, that's def there.

Thank you for reaching out

Was this page helpful?
0 / 5 - 0 ratings