CircleCI-Public / CircleCI-Public/serverless-framework-orb
Not being able to sls deploy with python
- Dominant language
- TypeScript
- Stars
- 6
- Forks
- 15
- PR merge metrics
- No merged PRs in 30d
Description
**Orb Version**
`circleci/serverless-framework@2.0.0`
**Describe the bug**
Build is currently failing due to not being able to do: sls deploy
```
Error:
Error: `python3.7 -m pip help install` Exited with code 1
at ChildProcess. (/home/circleci/project/node_modules/child-process-ext/spawn.js:38:8)
at ChildProcess.emit (node:events:526:28)
at ChildProcess.emit (node:domain:475:12)
at maybeClose (node:internal/child_process:1092:16)
at Socket. (node:internal/child_process:451:11)
at Socket.emit (node:events:526:28)
at Socket.emit (node:domain:475:12)
at Pipe. (node:net:687:12)
Exited with code exit status 1
CircleCI received exit code 1
```
**To Reproduce**
Use orb and run - run: sls deploy
```
version: 2.1
orbs:
aws-cli: circleci/aws-cli@3.1
serverless-framework: circleci/serverless-framework@2.0.0
python: circleci/python@1.4.0
executors:
python-version: 3.7-node
jobs:
build_and_deploy:
executor: serverless-framework/default
steps:
- checkout
- aws-cli/setup
- serverless-framework/setup
- run: npm install -n serverless-plugin-git-variables
- run: npm install -n serverless-python-requirements
- run: sudo add-apt-repository ppa:deadsnakes/ppa
- run: sudo apt update
- run: sudo apt install python3.7
- run: sudo apt install python3-pip
- run: sls deploy
workflows:
one_and_two:
jobs:
- build_and_deploy
```
**Expected behavior**
Being able to deploy with python.
**Additional context**
Not able to deploy since [Serverless Compose](https://www.serverless.com/blog/serverless-framework-compose-multi-service-deployments) release
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the provided CircleCI configuration, especially serverless-framework/setup and the final `sls deploy` step. Reproduce the `python3.7 -m pip help install` failure and inspect how the orb prepares Python before deployment. Done means the shown configuration can deploy successfully with Python dependencies installed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, python
- Domain
- ci-cd, cloud, devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100