Hi,
I follow the step here to install Ray in Kubernetes using helm.
The python version is 3.7.7 and ray version is 1.9.2.
I port-forwarded the svc 10001 to my local and run the following script:
import ray
import requests
runtime_env = {"pip": ["requests", "ray[serve]"]}
ray.init(address="ray://127.0.0.1:10001", runtime_env=runtime_env)
@ray.remote
def reqs():
return requests.get("https://www.ray.io/")
if __name__ == "__main__":
print(ray.get(reqs.remote()))
Getting this error:
ConnectionAbortedError: Initialization failure from server:
Traceback (most recent call last):
File "/home/ray/anaconda3/lib/python3.7/site-packages/ray/util/client/server/proxier.py", line 624, in Datapath
client_id, job_config):
File "/home/ray/anaconda3/lib/python3.7/site-packages/ray/util/client/server/proxier.py", line 281, in start_specific_server
specific_server=specific_server,
File "/home/ray/anaconda3/lib/python3.7/site-packages/ray/util/client/server/proxier.py", line 234, in _create_runtime_env
"Failed to create runtime_env for Ray client "
RuntimeError: Failed to create runtime_env for Ray client server: [Errno 2] No such file or directory: '/tmp/ray/session_2022-02-04_08-56-23_262496_116/runtime_resources/conda/c390bf3cf7e61e5e2ee55126ce55ec8f1eb8e565'
The same script works against a local ray server. Any ideas?
Thanks in advance!