From 42615e506ac991b1ebdb23689fa0c618dafea00a Mon Sep 17 00:00:00 2001 From: Alexander Myasoedov Date: Tue, 23 Jun 2026 10:20:10 +0300 Subject: [PATCH] fix(build): --- agentic_security/probe_data/image_generator.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/agentic_security/probe_data/image_generator.py b/agentic_security/probe_data/image_generator.py index c417c81..cca4631 100644 --- a/agentic_security/probe_data/image_generator.py +++ b/agentic_security/probe_data/image_generator.py @@ -5,7 +5,6 @@ import re import httpx import matplotlib -matplotlib.use("Agg") import matplotlib.pyplot as plt # noqa: E402 from cache_to_disk import cache_to_disk from tqdm import tqdm @@ -56,7 +55,7 @@ def generate_image(prompt: str, variant: int = 0) -> bytes: # Sanitize prompt: replace non-renderable whitespace characters (tabs, etc.) # with spaces to avoid matplotlib UserWarning about missing glyphs. prompt = re.sub(r"[\t\r\x0b\x0c]", " ", prompt) - + matplotlib.use("Agg") # Create a matplotlib figure fig, ax = plt.subplots(figsize=(6, 4))