Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invoke local failed for python3.6 AWS Lambda #3535

Closed
jnicho02 opened this issue Apr 28, 2017 · 3 comments
Closed

invoke local failed for python3.6 AWS Lambda #3535

jnicho02 opened this issue Apr 28, 2017 · 3 comments
Labels

Comments

@jnicho02
Copy link

jnicho02 commented Apr 28, 2017

This is a Bug Report

Description

From 18 April 2017 AWS Lambda has python3.6 https://aws.amazon.com/releasenotes/5198208415517126

  • What went wrong?
    I configured runtime: python3.6 in serverless.yml
    sls invoke local -f hello errored

  • What did you expect should have happened?
    sls deploy followed by sls invoke -f hello was successful

  • What was the config you used?

service: an-alexa-skill

provider:
  name: aws
  runtime: python3.6
  stage: dev
  region: eu-west-1

functions:
  hello:
    handler: handler.hello
    events:
      - alexaSkill

handler.py

import json

def hello(event, context):
    response = {
        'version': '1.0',
        'response': {
            'outputSpeech': {
                'type': 'PlainText',
                'text': 'Go Serverless v1.0! Your function executed successfully!',
            }
        }
    }
    return response
  • What stacktrace or error message from your provider did you see?

events.js:160
throw er; // Unhandled 'error' event
^

Error: spawn python3.6 ENOENT
at exports._errnoException (util.js:1007:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:182:32)
at onErrorNT (internal/child_process.js:348:16)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickDomainCallback (internal/process/next_tick.js:122:9)

Similar or dependent issues:
*

Additional Data

  • Serverless Framework Version you're using: 1.12.1
  • Operating System: Mac OS Sierra 10.12.4
  • Stack Trace:
  • Provider Error messages:
@pmuens
Copy link
Contributor

pmuens commented Apr 28, 2017

@jnicho02 thanks for reporting.

Do you have Python 3.6 installed locally?

@jnicho02
Copy link
Author

jnicho02 commented Apr 28, 2017 via email

@pmuens
Copy link
Contributor

pmuens commented Apr 28, 2017

No worries @jnicho02! I ran into the exact same issue when I tested out the PR 😄

@jnicho02 jnicho02 closed this as completed May 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants