From e9467a428542b3ef6f1bbef60ff9aee3ebf096dc Mon Sep 17 00:00:00 2001 From: Tai An Date: Mon, 7 Sep 2026 18:03:46 -0700 Subject: [PATCH] fix(reader_xlsx): add missing `import subprocess` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `_x_recalc_copy` calls `subprocess.run` twice but the module never imports `subprocess`. Because the whole body is wrapped in `except Exception: return None`, the resulting `NameError` is swallowed silently: whenever LibreOffice (`soffice`) is actually installed, the recalc path raises, returns None, and the workbook is marked "soffice unavailable" — so the formula-recalc feature never works even when it could. --- plugins/tools/_reader_xlsx.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/tools/_reader_xlsx.py b/plugins/tools/_reader_xlsx.py index 0d555e8..c02d293 100644 --- a/plugins/tools/_reader_xlsx.py +++ b/plugins/tools/_reader_xlsx.py @@ -15,6 +15,7 @@ import os import re import shutil +import subprocess import tempfile import xml.etree.ElementTree as _ET import zipfile