Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

574
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda