Replies: 4 comments 1 reply
-
Hello @dj-ash - it looks like an issue with I'm going to move this to Discussions as it's not a bug or feature request |
Beta Was this translation helpful? Give feedback.
-
I am also hitting this issue. I upgraded my runtime to python3.9 and it solved the issue 🤷♀️ |
Beta Was this translation helpful? Give feedback.
-
From 3.9 to 3.11 solved the issue 😕 |
Beta Was this translation helpful? Give feedback.
-
Choosing the right Python interpreter resolved this issue in my case. I used to meet this error when I accidentally use the global Python interpreter. |
Beta Was this translation helpful? Give feedback.
-
Are you certain it's a bug?
Is the issue caused by a plugin?
Are you using the latest version?
Is there an existing issue for this?
Issue description
When trying to deploy a python based serverless function, this is the error received in serverless deploy step.
The error is found tryint to deploy through github actions as well as circleci - both gave the same issue.
Environment: linux, node 14.19.1, framework 3.15.0 (local) 3.15.0v (global), plugin 6.2.2, SDK 4.3.2
Error: spawn python3.8 ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:274:19)
at onErrorNT (internal/child_process.js:469:16)
at processTicksAndRejections (internal/process/task_queues.js:82:21)
Node version is 16.x and python is 3.10. Serverless installation was fine using python 3.10.4. Plugin serverless-python-requirements installation was fine too. But the error is thrown in serverless deploy
Service configuration (serverless.yml) content
Command name and used flags
serverless deploy
Command output
Environment information
Beta Was this translation helpful? Give feedback.
All reactions