Skip to content

Commit b8d74fe

Browse files
nohalonlexierule
authored andcommitted
fix warning so the user has a clear next step (#16751)
1 parent e25142a commit b8d74fe

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/lightning_app/components/serve/auto_scaler.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,9 @@ def _get_endpoint_info_page(self) -> Optional["APIAccessFrontend"]: # noqa: F82
453453
try:
454454
from lightning_api_access import APIAccessFrontend
455455
except ModuleNotFoundError:
456-
logger.warn("APIAccessFrontend not found. Please install lightning-api-access to enable the UI")
456+
logger.warn(
457+
"Some dependencies to run the UI are missing. To resolve, run `pip install lightning-api-access`"
458+
)
457459
return
458460

459461
if is_running_in_cloud():

src/lightning_app/components/serve/python_server.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,9 @@ def configure_layout(self) -> Optional["Frontend"]:
293293
try:
294294
from lightning_api_access import APIAccessFrontend
295295
except ModuleNotFoundError:
296-
logger.warn("APIAccessFrontend not found. Please install lightning-api-access to enable the UI")
296+
logger.warn(
297+
"Some dependencies to run the UI are missing. To resolve, run `pip install lightning-api-access`"
298+
)
297299
return
298300

299301
class_name = self.__class__.__name__

0 commit comments

Comments
 (0)