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.12USER someteam
WORKDIR $HOME
RUN pip install --user --upgrade awscli aws-sam-cli;USER root
Solution 2:
after this pull request is released, serverlessrepo should be on 5.1. According to the PR, SAM CLI will be upgraded to 5.1 soon.
Post a Comment for "Error: Serverlessrepo 0.1.8 Has Requirement Pyyaml~=3.12"