skypilot-org / skypilot

SkyPilot: Run AI and batch jobs on any infra (Kubernetes or 12+ clouds). Get unified execution, cost savings, and high GPU availability via a simple interface.
https://skypilot.readthedocs.io
Apache License 2.0
6.81k stars 513 forks source link

[Kubernates] Not user-friendly message shown if Kubernates is not enabled. #4324

Closed HysunHe closed 1 week ago

HysunHe commented 1 week ago

When Kubernates is not enabled, "sky check" shows the following exceptions, which is not user-friendly:

Kubernetes: disabled Reason: Traceback (most recent call last): File "/home/hysunhe/prjdev/skypilot/skypilot/sky/adaptors/common.py", line 31, in load_module self._module = importlib.import_module(self._module_name) File "/home/hysunhe/miniconda3/envs/sky/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1004, in _find_and_load_unlocked ModuleNotFoundError: No module named 'kubernetes'

concretevitamin commented 1 week ago

cc @zpoint to take a look

zpoint commented 1 week ago

PR submitted