-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Labels
Description
Description
Following the README, the minimalist sample does not seem to work at all on Python 3.6. The README does say "This package supports Python 2.7 and 3.6, the runtimes supported by AWS Lambda.".
Steps to reproduce the issue:
- Setup new Lambda.
- Choose Python 3.6
- Follow https://github.com/iopipe/iopipe-python#installation
- Follow https://github.com/iopipe/iopipe-python#usage
- Create
index.py - Place as contents:
from iopipe import IOpipe
iopipe = IOpipe('token')
@iopipe
def lambda_handler(event, context):
pass- Set entry point to:
index.lambda_handler - Save it
- Test it with anything
Describe the results you received:
Response:
{
"errorMessage": "Syntax error in module 'index'"
}
Request ID:
"102bedeb-86bf-11e8-8562-97ea3fe2926e"
Function Logs:
START RequestId: 102bedeb-86bf-11e8-8562-97ea3fe2926e Version: $LATEST
Syntax error in module 'index': invalid syntax (_base.py, line 414)
END RequestId: 102bedeb-86bf-11e8-8562-97ea3fe2926e
REPORT RequestId: 102bedeb-86bf-11e8-8562-97ea3fe2926e Duration: 0.83 ms Billed Duration: 100 ms Memory Size: 128 MB Max Memory Used: 22 MB
Describe the results you expected:
Expected the lambda to pass.
Additional information you deem important (e.g. issue happens only occasionally):
Switching to Python 2.7 works.