Skip to content

Commit

Permalink
Add nicer error when init fails
Browse files Browse the repository at this point in the history
  • Loading branch information
frode-aarstad committed Jan 6, 2025
1 parent 68263ff commit 6982b4d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/everest/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6982b4d

Please sign in to comment.