From decfdfdb33bd239627b3c514c16fbb8e61fc1b69 Mon Sep 17 00:00:00 2001 From: Frode Aarstad Date: Mon, 6 Jan 2025 08:48:01 +0100 Subject: [PATCH] Add nicer error when init fails --- src/everest/__init__.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/everest/__init__.py b/src/everest/__init__.py index f6aa2421ce2..a2d600fbac6 100644 --- a/src/everest/__init__.py +++ b/src/everest/__init__.py @@ -3,7 +3,15 @@ """ -from .loader import load +try: + from .loader import load +except Exception as e: + print( + f"Error during initialization: {e}\nPlease make sure that everest is installed correctly and that all dependencies are updated." + ) + import sys + + sys.exit(1) try: from ert.shared.version import version