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
gefragt vor einem Monat82 Aufrufe
Keine Antworten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen