Skip to content Skip to sidebar Skip to footer

ERROR: Serverlessrepo 0.1.8 Has Requirement Pyyaml~=3.12

Below is the docker file with base image python 3.7: FROM python:3.7-alpine3.9 ENV HOME /home/someteam ENV PATH $HOME/.local/bin:$PATH RUN ln -fs /usr/share/zoneinfo/Etc/UTC /etc

Solution 1:

You need to install PyYAML==3.12 for your aws-sam-cli as you Docker image come with pyyaml 5.1 by default which have compatibility issue with aws-sam-cli. All you need to install pyyaml 3.12 before installation of aws-sam-cli

RUN pip install PyYAML==3.12
USER someteam
WORKDIR $HOME
RUN pip install --user --upgrade awscli aws-sam-cli;
USER root

Solution 2:


Post a Comment for "ERROR: Serverlessrepo 0.1.8 Has Requirement Pyyaml~=3.12"