Skip to content

Python pip builder resolve dependency error : numpy==1.20.3 #233

Description

@vynu

Description:
Python pip builder resolve dependency error : numpy==1.20.3 while running sam build with pandas in lambda app requirements.txt

deep debugging :

ran pip download --only-binary=:all: --no-deps --platform manylinux2014_x86_64 --implementation cp --abi cp38 --dest /tmp/samcli/scratch numpy==1.20.3 by logging into actively running amazon/aws-sam-cli-build-image-python3.8

its downloading with wheel file name : Saved /tmp/samcli/scratch/numpy-1.20.3-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl

I guess its failing at : this-line

and I've tried with pip download --only-binary=:all: --no-deps --platform manylinux2014_x86_64 --implementation cp --abi cp38 --dest /tmp/samcli/scratch numpy==1.20.1

this downloaded wheel file : Saved /tmp/samcli/scratch/numpy-1.20.1-cp38-cp38-manylinux2010_x86_64.whl

clearly numpy==1.20.1 does not have any issue in file name

Steps to reproduce the issue:

  1. Run sam build --use-container --build-image amazon/aws-sam-cli-build-image-python3.8 --debug with pandas lib dependency in lambda app requirements.txt

Observed result:
PythonPipBuilder:ResolveDependencies - {numpy==1.20.3(wheel)}

Expected result:
build successful

Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
linux container env : amazon/aws-sam-cli-build-image-python3.8

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions