From f7a03092953411bf708974651e763ed25ce03d45 Mon Sep 17 00:00:00 2001 From: Jg_Piccinali <> Date: Mon, 29 Sep 2025 18:48:47 +0200 Subject: [PATCH 1/2] Check that uenv was pulled --- config/utilities/uenv.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/utilities/uenv.py b/config/utilities/uenv.py index 48aa34434..390714391 100644 --- a/config/utilities/uenv.py +++ b/config/utilities/uenv.py @@ -78,6 +78,8 @@ def _get_uenvs(): f"{inspect_cmd}='{{system}}'", shell=True).stdout.strip() image_path = pathlib.Path(image_path) + if not(image_path.is_file() and image_path.stat().st_size > 0): + raise ConfigError(f"{uenv_name} was not pulled or is empty") # FIXME temporary workaround for older uenv versions if Version(uenv_version) >= Version('5.1.0-dev'): From e09aac582d85a7aed832a8da1c819bb7f1b8a12d Mon Sep 17 00:00:00 2001 From: Jg_Piccinali <> Date: Mon, 29 Sep 2025 18:55:20 +0200 Subject: [PATCH 2/2] fix --- config/utilities/uenv.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/config/utilities/uenv.py b/config/utilities/uenv.py index 390714391..4ef16e5e4 100644 --- a/config/utilities/uenv.py +++ b/config/utilities/uenv.py @@ -78,8 +78,16 @@ def _get_uenvs(): f"{inspect_cmd}='{{system}}'", shell=True).stdout.strip() image_path = pathlib.Path(image_path) - if not(image_path.is_file() and image_path.stat().st_size > 0): - raise ConfigError(f"{uenv_name} was not pulled or is empty") + # Check that uenv was pulled + if not image_path.is_file(): + raise ConfigError(f"{uenv_name} is missing, " + f"try pulling it with: uenv image pull {uenv_name}") + try: + if image_path.stat().st_size == 0: + raise ConfigError(f"{uenv_name} is empty, " + f"try pulling it with: uenv image pull {uenv_name}") + except FileNotFoundError: + raise ConfigError(f"{uenv_name} was not found") # FIXME temporary workaround for older uenv versions if Version(uenv_version) >= Version('5.1.0-dev'):