From 1e98ddee721cc13dfc6ffd583021a196f59dba5b Mon Sep 17 00:00:00 2001 From: Radostin Stoyanov Date: Mon, 3 Mar 2025 15:03:51 +0000 Subject: [PATCH] scripts/uninstall_module: import signal module With Python 3.13, the `subprocess` module now uses the `posix_spawn()` function [1], which requires the `signal` module to be imported. Fixes: #2607 [1] https://docs.python.org/3/whatsnew/3.13.html#subprocess Signed-off-by: Radostin Stoyanov --- scripts/uninstall_module.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/uninstall_module.py b/scripts/uninstall_module.py index 8a9b70892b..ab9c3429ec 100755 --- a/scripts/uninstall_module.py +++ b/scripts/uninstall_module.py @@ -10,6 +10,11 @@ import subprocess import sys +# With Python 3.13 the subprocess module uses `posix_spawn()` function +# which requires loading the `signal`: +# https://docs.python.org/3/whatsnew/3.13.html#subprocess +import signal + import importlib_metadata