SAM Does not build the application, returns "PythonPipBuilder:ResolveDependencies failed"

0

I have a project where I upload a domain using SAM Build. I have packages that are inside helpers that uses setuptools. I am using a virtual environment using pyenv , python version 3.8.17 // sam version : 1.82.0 Note:** If I run the requirements.txt theirs no issue, even the pip install that is generated by the sam build it works fine

For each lambda I have a requirements file for example: -e ./helpers/adapters boto3==1.14.47 dataclasses-json==0.5.2 requests==2.23.0 python_dynamodb_lock==0.9.1 pycryptodome==3.16.0 numpy==1.20.1

If I keep the adapters I get error : error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.                                                                                                                                               
  │ exit code: 1                                                                                                                                                                                     
  ╰─> [1 lines of output]                                                                                                                                                                            
     ERROR: Can not execute `setup.py` since setuptools is not available in the build environment.                                                                                                  
    [end of output]                                                                                                                                                                                
                                                                                                                                                                                                 
 note: This error originates from a subprocess, and is likely not a problem with pip.                                                                                                               
 error: metadata-generation-failed 

If I delete the adapter library I get (this applys for all the librarys): aws_lambda_builders.workflows.python_pip.packager.NoSuchPackageError: Could not satisfy the requirement: dataclasses-json==0.5.2

profile picture
질문됨 한 달 전82회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠