While trying to run the example as described in the comments of https://github.com/ray-project/ray/blob/master/rllib/examples/serving/cartpole_server.py I’m just getting this error:
kirill@kdell-7080:/ python cartpole_server.py --local-mode --num-workers=1
Running with following CLI args: Namespace(as_test=False, callbacks_verbose=False, framework='tf', local_mode=True, no_restore=False, no_tune=False, num_cpus=3, num_workers=1, port=9900, run='PPO', stop_iters=200, stop_reward=80.0, stop_timesteps=500000)
Traceback (most recent call last):
File "cartpole_server.py", line 128, in <module>
ray.init(local_mode=args.local_mode)
File "/home/kirill/ws/st-gallen/learning/ve/lib/python3.8/site-packages/ray/_private/client_mode_hook.py", line 105, in wrapper
return func(*args, **kwargs)
File "/<cutoff>/site-packages/ray/worker.py", line 918, in init
_global_node = ray.node.Node(
File "/<cutoff>/site-packages/ray/node.py", line 215, in __init__
self.start_head_processes()
File "/<cutoff>/site-packages/ray/node.py", line 913, in start_head_processes
self.start_gcs_server()
File "/<cutoff>/site-packages/ray/node.py", line 799, in start_gcs_server
self.get_gcs_client()
File "/<cutoff>/site-packages/ray/node.py", line 472, in get_gcs_client
ray.experimental.internal_kv._initialize_internal_kv(
File "/<cutoff>/site-packages/ray/experimental/internal_kv.py", line 24, in _initialize_internal_kv
assert gcs_client is not None
AssertionError
Does it need some extra setup apart from the documented instructions? Searching on Github and here didn’t give any meaningful information