Fix matplotlib.colormaps import in processing service

colormaps is a module attribute, not a submodule — remove the explicit import.
Also relax matplotlib pin back to >=3.5 (minimum for colormaps attribute).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Vadym Samoilenko 2026-03-11 13:34:00 +00:00
parent 0b7964b3dc
commit ce1d10d9b2
2 changed files with 1 additions and 2 deletions

View file

@ -12,7 +12,6 @@ import os
import matplotlib
matplotlib.use("Agg")
import matplotlib.colormaps
import numpy as np
from fastapi import FastAPI, Header, HTTPException
from PIL import Image, ImageDraw, ImageFont

View file

@ -2,7 +2,7 @@ fastapi>=0.115.0
uvicorn[standard]>=0.30.0
pillow>=10.0
numpy>=1.26
matplotlib==3.9.4
matplotlib>=3.5
scipy>=1.11
reportlab>=4.0
pydantic>=2.0