Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

571
Visualizações
Endless import of matplotlib in Lambda Container: Matplotlib is building the font cache; this may take a moment

I am using the following Docker Image as a Lambda Container. When I invoke the Container, it exceeds the time limit of 15 min because of the matplotlib import building the font cache. I tried all the tips provided to this issue on Stack Overflow but it is not working. Does anybody know some ways to solve this problem? My matplotlib version is 3.5.1

FROM public.ecr.aws/lambda/python:3.7

COPY . /var/task/

RUN pip install -r /var/task/requirements.txt
#ENV MPLCONFIGDIR = /tmp
RUN rm -rf ~/.cache/matplotlib
RUN rm -rf /root/.cache/matplotlib
#RUN pip uninstall -y matplotlib

CMD ["my_handler.lambda_handler"]

Many thanks in advance!

over 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda