suggestion: When a deploy fails because the sls fi...
# seed
f
suggestion: When a deploy fails because the sls file specify “Python 3.8” and the seed Build Image is incompatible (ex.: General Purpose v4.0), it would be nice to trap that mismatch and have a user friendly error message. Otherwise it takes time to figure out. 😅 Thanks! 🚀
f
Hey @François-Michel L'Heureux, can you share a link to the build that had this issue? I wanted to see what error you were getting.
f
Copy code
$ SLS_DEBUG=* serverless package --stage qa --package sls-package-output

5.24 s

Running "serverless" from node_modules

Packaging data-profiles3 for stage qa (us-east-2)

Environment: linux, node 14.18.1, framework 3.3.0 (local) 3.3.0v (global), plugin 6.1.0, SDK 4.3.1

Docs:        <http://docs.serverless.com|docs.serverless.com>

Support:     <http://forum.serverless.com|forum.serverless.com>

Bugs:        <http://github.com/serverless/serverless/issues|github.com/serverless/serverless/issues>

Error:

Error: `python3.8 -m pip help install` Exited with code 1

    at ChildProcess.<anonymous> (/tmp/seed/source/lambda/api/data-profiles3/node_modules/child-process-ext/spawn.js:38:8)

    at ChildProcess.emit (events.js:400:28)

    at ChildProcess.emit (domain.js:475:12)

    at maybeClose (internal/child_process.js:1058:16)

    at Process.ChildProcess._handle.onexit (internal/child_process.js:293:5)

ERROR: Failed to run: SLS_DEBUG=* serverless package --stage qa --package sls-package-output
f
Ah gotcha. Thanks for the details. I will add it to our roadmap. 👍