From 595e3a92f2c2be9c10c49cf86d3f1e657ecaf376 Mon Sep 17 00:00:00 2001 From: juacrumar Date: Tue, 23 Jan 2024 18:06:55 +0100 Subject: [PATCH] add a helpful message for people who installed last before 4.0.8 --- validphys2/src/validphys/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/validphys2/src/validphys/__init__.py b/validphys2/src/validphys/__init__.py index 8dee4bf825..2848b606d1 100644 --- a/validphys2/src/validphys/__init__.py +++ b/validphys2/src/validphys/__init__.py @@ -1 +1,4 @@ -from ._version import __version__ +try: + from ._version import __version__ +except ModuleNotFoundError: + raise ModuleNotFoundError("`_version` not found, you might need to reinstall nnpdf (e.g., `pip install .`) if you installed last before nnpdf 4.0.8")