From ff3812c22b87ef0caf60d5e76572e9e288624ada Mon Sep 17 00:00:00 2001 From: AljazRant Date: Mon, 28 Jul 2025 12:19:50 +0200 Subject: [PATCH 1/3] corrected subprocess call code so it's called as a module --- niaaml_gui/windows/threads/pipeline_runner_thread.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/niaaml_gui/windows/threads/pipeline_runner_thread.py b/niaaml_gui/windows/threads/pipeline_runner_thread.py index 78c07ae..b6121c8 100644 --- a/niaaml_gui/windows/threads/pipeline_runner_thread.py +++ b/niaaml_gui/windows/threads/pipeline_runner_thread.py @@ -39,7 +39,7 @@ def run(self): } process = subprocess.Popen( - ["python", "niaaml_gui/utils/run_pipeline_subprocess.py"], + ["python", "-m", "niaaml_gui.utils.run_pipeline_subprocess"], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, From 239b1f0cee0b606f5ad711819fe75649f5a97823 Mon Sep 17 00:00:00 2001 From: AljazRant Date: Mon, 28 Jul 2025 12:33:05 +0200 Subject: [PATCH 2/3] fix for python 3.10 --- niaaml_gui/windows/threads/pipeline_runner_thread.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/niaaml_gui/windows/threads/pipeline_runner_thread.py b/niaaml_gui/windows/threads/pipeline_runner_thread.py index b6121c8..b1763fc 100644 --- a/niaaml_gui/windows/threads/pipeline_runner_thread.py +++ b/niaaml_gui/windows/threads/pipeline_runner_thread.py @@ -1,3 +1,4 @@ +from pathlib import Path import subprocess import json from PyQt6.QtCore import QThread, pyqtSignal @@ -39,11 +40,13 @@ def run(self): } process = subprocess.Popen( + ["python", "-m", "niaaml_gui.utils.run_pipeline_subprocess"], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, - text=True + text=True, + cwd=str(Path(__file__).resolve().parent.parent.parent) ) json.dump(args, process.stdin) From 84aeaf520de667eecc1ddb42365a3fbe9f614923 Mon Sep 17 00:00:00 2001 From: AljazRant Date: Mon, 28 Jul 2025 12:36:30 +0200 Subject: [PATCH 3/3] reverting fix --- niaaml_gui/windows/threads/pipeline_runner_thread.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/niaaml_gui/windows/threads/pipeline_runner_thread.py b/niaaml_gui/windows/threads/pipeline_runner_thread.py index b1763fc..b6121c8 100644 --- a/niaaml_gui/windows/threads/pipeline_runner_thread.py +++ b/niaaml_gui/windows/threads/pipeline_runner_thread.py @@ -1,4 +1,3 @@ -from pathlib import Path import subprocess import json from PyQt6.QtCore import QThread, pyqtSignal @@ -40,13 +39,11 @@ def run(self): } process = subprocess.Popen( - ["python", "-m", "niaaml_gui.utils.run_pipeline_subprocess"], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, - text=True, - cwd=str(Path(__file__).resolve().parent.parent.parent) + text=True ) json.dump(args, process.stdin)