Pythonpipbuilder: resolve dependencies - list index out of range

Viewed 2385

Description: I am trying to use sam build with the following requirements but its throwing the error: Pythonpipbuilder: resolve dependencies - list index out of range

  • pyotp
  • ulid-py
  • aws_encryption_sdk
  • boto3
  • requests
  • attrs
  • cryptography

Steps to reproduce the issue:

  1. Create a virtual env.
  2. Activate virtual env in a terminal
  3. pip install -r requirements.txt
  4. sam build

Observed result: Build Failed Error: PythonPipBuilder:ResolveDependencies - list index out of range

Expected result: Build Succeeded

Additional environment details Amazon Linux 2 Workspace Python3.8

2 Answers

I had the same failure when my serverless application specified Runtime as python3.6, while the environment was using Python3.7.

Related