I am following https://aws.amazon.com/blogs/aws/new-aws-toolkits-for-pycharm-intellij-preview-and-visual-studio-code-preview/
I am getting an issue when I try to deploy the service from the PyCharm IDE. It's failing on sam build because it's picking the Python 2.7. But when I run sam build from the console with (venv) It's picking the correct python version.
You can see all on the screenshot in https://stackoverflow.com/questions/53600974/pycharm-aws-toolkit-not-picking-the-correct-python-version-for-sam-build-from
I'm facing the exact same issue. Any solutions?
I believe you are getting hit by these SAM issues: https://github.com/awslabs/aws-sam-cli/issues/797, https://github.com/awslabs/aws-lambda-builders/issues/30
same issue
Please upgrade SAM CLI to at least 0.12.0. It contains fixes to find the correct python version if you have multiple installed.
I am facing this issue with SAM version 0.53.0 and a conda virtual environment on Windows 10. I am able to build it from the activated environment in the console but not from Pycharm IDE. I created the conda virtual env within an anaconda prompt and set it to the project interpreter within Pycharm.
Most helpful comment
same issue