From fc2bc47889b980c8de37de5528e3d07e6b1a942e Mon Sep 17 00:00:00 2001 From: Isaac Yang Date: Tue, 18 Jun 2024 11:17:55 -0700 Subject: [PATCH] Add feedback when users launch dashboard to cloud with editable version (#2655) --- nvflare/dashboard/cli.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nvflare/dashboard/cli.py b/nvflare/dashboard/cli.py index 2c18cdae0c..fef82525d6 100644 --- a/nvflare/dashboard/cli.py +++ b/nvflare/dashboard/cli.py @@ -146,6 +146,11 @@ def cloud(args): dest = os.path.join(cwd, f"{csp}_start_dsb.sh") dsb_start = template[f"{csp}_start_dsb_sh"] version = nvflare.__version__ + if "+" in version: + print( + f"Unable to launching dashboard on cloud with {version}. Please install official NVFlare release from PyPi." + ) + exit(0) replacement_dict = {"NVFLARE": f"nvflare=={version}", "START_OPT": f"-i {args.image}" if args.image else ""} utils._write( dest,