mirror of
https://github.com/vale981/ray
synced 2025-03-05 10:01:43 -05:00

* Make it so pydantic is required before we launch dashboard api server Signed-off-by: Alan Guo <aguo@anyscale.com>
18 lines
725 B
Python
18 lines
725 B
Python
# These imports determine whether or not a user has the required dependencies
|
|
# to launch the optional dashboard API server.
|
|
# If any of these imports fail, the dashboard API server will not be launched.
|
|
# Please add important dashboard-api dependencies to this list.
|
|
|
|
# These checks have to come first because aiohttp looks
|
|
# for opencensus, too, and raises a different error otherwise.
|
|
import opencensus # noqa: F401
|
|
|
|
import prometheus_client # noqa: F401
|
|
|
|
import aiohttp # noqa: F401
|
|
import aiohttp.web # noqa: F401
|
|
import aiohttp_cors # noqa: F401
|
|
from aiohttp import hdrs # noqa: F401
|
|
from aiohttp.typedefs import PathLike # noqa: F401
|
|
from aiohttp.web import RouteDef # noqa: F401
|
|
import pydantic # noqa: F401
|