Skip to content

spawn python3.11 ENOENT when set runtime to ython3.11 #811

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

Closed
3 tasks done
biz-rl opened this issue Dec 14, 2023 · 5 comments
Closed
3 tasks done

spawn python3.11 ENOENT when set runtime to ython3.11 #811

biz-rl opened this issue Dec 14, 2023 · 5 comments

Comments

@biz-rl
Copy link

biz-rl commented Dec 14, 2023

Are you certain it's a bug?

  • Yes, it looks like a bug

Are you using the latest plugin release?

  • Yes, I'm using the latest plugin release

Is there an existing issue for this?

  • I have searched existing issues, it hasn't been reported yet

Issue description

Error: spawn python3.11 ENOENT
at ChildProcess._handle.onexit (node:internal/child_process:284:19)
at onErrorNT (node:internal/child_process:477:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

Service configuration (serverless.yml) content

provider:
  name: aws
  runtime: python3.11
  stage: dev
  region: us-west-2
custom:
  pythonRequirements:
   zip: true

Command name and used flags

sls deploy -s staging

Command output

Environment: darwin, node 18.18.2, framework 3.38.0 (local) 3.36.0v (global), plugin 7.2.0, SDK 4.5.1
Credentials: Local, "default-staging" profile
Docs:        docs.serverless.com
Support:     forum.serverless.com
Bugs:        github.com/serverless/serverless/issues

Error:
Error: spawn python3.11 ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:284:19)
    at onErrorNT (node:internal/child_process:477:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

Environment information

Framework Core: 3.38.0 (local) 3.36.0 (global)
Plugin: 7.2.0
SDK: 4.5.1
@pgrzesik
Copy link
Contributor

Hello 👋

It looks like you might not have python3.11 available in your system's PATH. Do you have it installed?

@ramonpaolo
Copy link

Thankss @pgrzesik

This is the solution!

@biz-rl
Copy link
Author

biz-rl commented Feb 5, 2024

@pgrzesik no, i have installed python3.11 in my mac, i run in aws ec2 have same issue, when i recreate a ec2 restore my mac that working, confused for me

@ramonpaolo
Copy link

@pgrzesik no, i have installed python3.11 in my mac, i run in aws ec2 have same issue, when i recreate a ec2 restore my mac that working, confused for me

You is running serverless deploy on your EC2 instance?

If yes, you need install python 3.11 in your instance!

@pgrzesik
Copy link
Contributor

This looks to be the problem with missing python3.11 on your machine. I'm closing it as it does not seem to be a bug with plugin, but feel free to report back if you feel it should be reopened 🙇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants