You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Something about the way that Python is installed is causing Python version detection to fail in the SAM CLI. It works in the legacy Python images.
Here are the debug logs for the SAM CLI:
2021-09-10 01:43:20,142 | Invalid executable for python at /home/circleci/.pyenv/shims/python3.9
Traceback (most recent call last):
File "aws_lambda_builders/workflow.py", line 58, in wrapper
File "aws_lambda_builders/workflows/python_pip/validator.py", line 48, in validate
aws_lambda_builders.exceptions.MisMatchRuntimeError: python executable found in your path does not match runtime.
Expected version: python3.9, Found version: /home/circleci/.pyenv/shims/python3.9.
Possibly related: https://github.com/awslabs/aws-lambda-builders/issues/30
2021-09-10 01:43:20,157 | Invalid executable for python at /home/circleci/.pyenv/shims/python
Traceback (most recent call last):
File "aws_lambda_builders/workflow.py", line 58, in wrapper
File "aws_lambda_builders/workflows/python_pip/validator.py", line 48, in validate
aws_lambda_builders.exceptions.MisMatchRuntimeError: python executable found in your path does not match runtime.
Expected version: python3.9, Found version: /home/circleci/.pyenv/shims/python.
Possibly related: https://github.com/awslabs/aws-lambda-builders/issues/30
Here is a code snippet from the aws-lambda-builders module that contains the Python version validation code:
When running the command /home/circleci/.pyenv/shims/python3.9 -c "import sys; assert sys.version_info.major == 3 and sys.version_info.minor == 9" myself, it passes correctly. I have also opened an issue with the aws-lambda-builders repository, but this issue could be caused by the image and could be causing other unknown issues.
The text was updated successfully, but these errors were encountered:
Closing this issue due to a lack of activity. This might be similar to #96? Which is also closed as of today. There's also the AWS image which an option now.
Something about the way that Python is installed is causing Python version detection to fail in the SAM CLI. It works in the legacy Python images.
Here are the debug logs for the SAM CLI:
Here is a code snippet from the aws-lambda-builders module that contains the Python version validation code:
When running the command
/home/circleci/.pyenv/shims/python3.9 -c "import sys; assert sys.version_info.major == 3 and sys.version_info.minor == 9"
myself, it passes correctly. I have also opened an issue with the aws-lambda-builders repository, but this issue could be caused by the image and could be causing other unknown issues.The text was updated successfully, but these errors were encountered: