Skip to content

Not being able to sls deploy with python #35

Description

@biancabarria

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.<anonymous> (/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.<anonymous> (node:internal/child_process:451:11)
    at Socket.emit (node:events:526:28)
    at Socket.emit (node:domain:475:12)
    at Pipe.<anonymous> (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 release

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions