question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build failed - Error: PythonPipBuilder:ResolveDependencies

See original GitHub issue

Description

Trying to create Python Lambda function from PyCharm not working

Steps to reproduce

Invoke Lambda creation using “Create new AWS Lambda…” Runtime: Python 3.7 requirements.txt: https://pastebin.com/HpU1it63 Run using strict template file: template.yml:

AWSTemplateFormatVersion: '2010-09-09'
Transform: 'AWS::Serverless-2016-10-31'
Description: An AWS Serverless Specification template describing your function.
Resources:
  test3:
    Type: 'AWS::Serverless::Function'
    Properties:
      Handler: order.create_order
      Runtime: python3.7
      CodeUri: .
      Description: ''
      MemorySize: 128
      Timeout: 300
      Role: 'arn:aws:iam::123456789:role/service-role/test-role'
      VpcConfig:
        SecurityGroupIds:
          - sg-62e1c42f
        SubnetIds:
          - subnet-26e9c26e
          - subnet-68a3c632
          - subnet-b8edb5de

Observed result

Used graphical create, not CLI, error:

Build Failed
Error: PythonPipBuilder:ResolveDependencies - {msgpack-python==0.5.6(sdist), pyrsistent==0.15.7(sdist), simplejson==3.17.0(wheel), pyyaml==5.3(sdist)}

Full log: https://pastebin.com/asgCa9D4

Expected result

Successful build

Additional environment details (Ex: Windows, Mac, Amazon Linux etc)

OS: macOS Mojave 10.14.6 SAM: SAM CLI, version 0.43.0 P: Python 3.7.6 IDE: PyCharm 2019.3 AWS: aws-cli/2.0.1 Python/3.7.4 Darwin/18.7.0 botocore/2.0.0dev5 used wheel: wheel 0.34.2 used pip: pip 19.0.3

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:38 (7 by maintainers)

github_iconTop GitHub Comments

14reactions
etishkacommented, May 25, 2021

got the following error started appearing during sam build

Error: PythonPipBuilder:ResolveDependencies - {protobuf==3.17.1(wheel)}

SAM CLI, version 1.20.0 Python 3.8.7 pip 21.1.2

--use-container doesn’t solve the problem.

6reactions
lerysscommented, Nov 18, 2021

This fixed the ResolveDependencies error for me pip install wheel

Read more comments on GitHub >

github_iconTop Results From Across the Web

aws sam build not able to build packages which require ...
aws sam build not able to build packages which require paramiko due to "Error: PythonPipBuilder:ResolveDependencies" · Ask Question. Asked 3 ...
Read more >
Error: PythonPipBuilder:ResolveDependencies - pip ... - GitLab
CI fails with. Error: PythonPipBuilder:ResolveDependencies - pip executable not found in your python environment at /usr/bin/python3.7Docs ...
Read more >
Using "sam build" - Build includes non required folders
How can you force 'sam build' commands to not include sub directories such as ... AWS SAM CLI Error: Error: PythonPipBuilder:ResolveDependencies ...
Read more >
AWS SAM CLI を使用したLambdaのデプロイ
Build Failed Error: PythonPipBuilder:Validation - Binary validation failed for python, searched for python in following locations ...
Read more >
Snowflake Connector for Python - Alteryx Community
Running PythonPipBuilder:ResolveDependencies Build Failed Error: PythonPipBuilder:ResolveDependencies - {snowflake==0.0.3(sdist)} SAM Build ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found