You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which python
/home/kadrach/.pyenv/shims/python
which python3.6
/home/kadrach/.pyenv/versions/3.6.0/bin/python3.6
(these refer to the same python 3.6 installation). The pyenv shim is on path, yet the serverless plugin fails to pick it up:
Serverless: Generating requirements.txt from Pipfile...
Serverless: Installing required Python packages with undefined...
Type Error ---------------------------------------------
"file" argument must be a non-empty string
For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Forums: forum.serverless.com
Chat: gitter.im/serverless/serverless
Your Environment Information -----------------------------
OS: linux
Node Version: 8.2.0
Serverless Version: 1.24.0
I can fix this with the following directive:
custom:
pythonRequirements:
pythonBin: python
but isn't this just referencing the same Python it should be using by default? Should this not work out of the box?
(these refer to the same python 3.6 installation). The pyenv shim is on path, yet the serverless plugin fails to pick it up:
I can fix this with the following directive:
but isn't this just referencing the same Python it should be using by default? Should this not work out of the box?