python/ray/ml/utils/remote_storage.py
def fs_hint(uri: str) -> str:
    """Return a hint how to install required filesystem package"""
    if pyarrow is None:
        return "Please make sure PyArrow is installed: `pip install pyarrow`."
    if fsspec is None:
        return "Try installing fsspec: `pip install fsspec`."

    from fsspec.registry import known_implementations

    protocol = urllib.parse.urlparse(uri).scheme

    if protocol in known_implementations:
        return known_implementations[protocol]["err"]

    return "Make sure to install and register your fsspec-compatible filesystem."
Return a hint how to install required filesystem package
Return a hint how to install required filesystem package
Return a hint how to install required filesystem package
def fs_hint(uri: str) -> str:
    if pyarrow is None:
        return "Please make sure PyArrow is installed: `pip install pyarrow`."
    if fsspec is None:
        return "Try installing fsspec: `pip install fsspec`."
    from fsspec.registry import known_implementations
    protocol = urllib.parse.urlparse(uri).scheme
    if protocol in known_implementations:
        return known_implementations[protocol]["err"]
    return "Make sure to install and register your fsspec-compatible filesystem."
def fs_hint ( uri : str ) -> str : if pyarrow is None : return "Please make sure PyArrow is installed: `pip install pyarrow`." if fsspec is None : return "Try installing fsspec: `pip install fsspec`." from fsspec . registry import known_implementations protocol = urllib . parse . urlparse ( uri ) . scheme if protocol in known_implementations : return known_implementations [ protocol ] [ "err" ] return "Make sure to install and register your fsspec-compatible filesystem."
Return a hint how to install required filesystem package
Return a hint how to install required filesystem package
"""Return a hint how to install required filesystem package"""
uri
str