Skip to content

Usage example not working on AWS Python 3.6 #249

@XerTheSquirrel

Description

@XerTheSquirrel

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:

  1. Setup new Lambda.
  2. Choose Python 3.6
  3. Follow https://github.com/iopipe/iopipe-python#installation
  4. Follow https://github.com/iopipe/iopipe-python#usage
  5. Create index.py
  6. Place as contents:
from iopipe import IOpipe
iopipe = IOpipe('token')

@iopipe
def lambda_handler(event, context):
    pass
  1. Set entry point to: index.lambda_handler
  2. Save it
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions