Hello, I tried using ray client library to connect to minikube cluster by following steps in documentation :
https://docs.ray.io/en/master/cluster/kubernetes.html
I ran:
python ray/doc/kubernetes/example_scripts/run_local_example.py
I get the below error:
$ python ray/doc/kubernetes/example_scripts
Traceback (most recent call last):
File “ray/doc/kubernetes/example_scripts/run_local_example.py”, line 57, in
ray.util.connect(f"127.0.0.1:{LOCAL_PORT}")
File “/home/asmalvan/anaconda3/envs/ray/lib/python3.7/site-packages/ray/util/client_connect.py”, line 26, in connect
conn_str, secure=secure, metadata=metadata, connection_retries=3)
File “/home/asmalvan/anaconda3/envs/ray/lib/python3.7/site-packages/ray/util/client/init.py”, line 40, in connect
from ray.util.client.worker import Worker
File “/home/asmalvan/anaconda3/envs/ray/lib/python3.7/site-packages/ray/util/client/worker.py”, line 22, in
from ray.util.client.client_pickler import convert_to_arg
File “/home/asmalvan/anaconda3/envs/ray/lib/python3.7/site-packages/ray/util/client/client_pickler.py”, line 24, in
import cloudpickle
ModuleNotFoundError: No module named ‘cloudpickle’
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File “”, line 983, in _find_and_load
File “”, line 953, in _find_and_load_unlocked
File “”, line 219, in _call_with_frames_removed
File “/home/asmalvan/anaconda3/envs/ray/lib/python3.7/site-packages/ray/util/client/server/init.py”, line 1, in
from ray.util.client.server.server import serve # noqa
File “/home/asmalvan/anaconda3/envs/ray/lib/python3.7/site-packages/ray/util/client/server/server.py”, line 20, in
from ray.util.client.server.server_pickler import convert_from_arg
File “/home/asmalvan/anaconda3/envs/ray/lib/python3.7/site-packages/ray/util/client/server/server_pickler.py”, line 14, in
import cloudpickle
ModuleNotFoundError: No module named ‘cloudpickle’
For now, I did a conda install of cloudpickle not sure which version of cloudpickle is recommended