I’m inheriting a serverless project so I’m not super familiar with the whole framework so my apologies if I missed something obvious. I’m running into an issue and haven’t found a single hit about it on Google. I’ve installed the serverless cli, installed docker and setup my aws auth. However, when trying to deploy the API I’m getting this error message:
Dereks-iMac:Purchases derekmaurer$ sls deploy
Serverless: Generated requirements from /Users/derekmaurer/dev/MocaApps/noisely/Serverless_Backend/Purchases/requirements.txt in /Users/derekmaurer/dev/MocaApps/noisely/Serverless_Backend/Purchases/.serverless/requirements.txt…
Serverless: Installing requirements from /Users/derekmaurer/dev/MocaApps/noisely/Serverless_Backend/Purchases/.serverless/requirements/requirements.txt …
Serverless: Docker Image: lambci/lambda:build-python2.7
Serverless: Running docker run --rm -v /Users/derekmaurer/dev/MocaApps/noisely/Serverless_Backend/Purchases/.serverless/requirements:/var/task:z -u 0 lambci/lambda:build-python2.7 python2.7 -m pip install -t /var/task/ -r /var/task/requirements.txt…
Serverless: Packaging service…
Serverless: Excluding development dependencies…
Serverless: Injecting required Python packages to package…
Huh, interesting that it only happened to you after installing the severless-python-requirements. I installed that as well, but I wasn’t able to even start the install without installing it because it need a package called “fs-extra”. So you were able to deploy without having the “serverless-python-requirements” package installed?
However, if I try to package that file up for the function like below (which I do on many other serverless apis) then I’m running into the nodestream issue:
Then it will deploy but the lambda errors because the python file isn’t packaged up, which in turn requires the serverless-python-requirements package which in turn is causing the deployment issue.