AWS SAM CLI Error: Error: PythonPipBuilder:ResolveDependencies - {pyyaml==6.0(wheel)}

0

Hi, I am keeping running into the same error as mentioned in the title even though I have installed wheel. I have tried sam build --use-container (and there is a template.yaml in the folder), but it caused another error (Error: Docker is unreachable. Docker needs to be running to build inside a container).

It would be appreciated if there is anyone who could help me for solving this issue!

1개 답변
2
수락된 답변

Do you have docker installed and the docker daemon running on the machine from where you are trying to use sam build --use-container command.

Take a look at https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install-windows.html

Step 3 - Install Docker mentions the following - "Docker is a prerequisite only for testing your application locally and for building deployment packages using the --use-container option. If you don't plan to use these features initially, you can skip this section or install Docker at a later time."

So if you are using the --use-container option, then you do need docker to be running on the machine.

profile pictureAWS
전문가
답변함 2년 전
  • It worked. Thank you so much :)

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

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

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

관련 콘텐츠