From 6540438f7fe135ea6fd7925a9f4e93779c4057bd Mon Sep 17 00:00:00 2001 From: Michael Carlstrom Date: Sun, 15 Mar 2026 11:30:03 -0700 Subject: [PATCH] Python3.14 fix Signed-off-by: Michael Carlstrom --- ros2_batch_job/util.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ros2_batch_job/util.py b/ros2_batch_job/util.py index cbacce93..132a7099 100644 --- a/ros2_batch_job/util.py +++ b/ros2_batch_job/util.py @@ -217,7 +217,10 @@ async def run_coroutine(future): returncode = await protocol.complete future.set_result(returncode) - future = asyncio.Future() + if sys.version_info >= (3, 14): + future = get_loop().create_future() + else: + future = asyncio.Future() get_loop().run_until_complete(run_coroutine(future)) retcode = future.result() if exit_on_error and retcode != 0: