AssertionError: assert ray.experimental.internal_kv._internal_kv_initialized()

How severe does this issue affect your experience of using Ray?

  • High: It blocks me to complete my task.

As shown here I am getting an error:

AssertionError: assert ray.experimental.internal_kv._internal_kv_initialized()

File "/usr/local/lib/python3.11/site-packages/ray/_private/auto_init_hook.py", line 14, in auto_init_ray
    ray.init()
  File "/usr/local/lib/python3.11/site-packages/ray/_private/client_mode_hook.py", line 103, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/ray/_private/worker.py", line 1681, in init
    _global_node = ray._private.node.Node(
                   ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/ray/_private/node.py", line 361, in __init__
    self._record_stats()
  File "/usr/local/lib/python3.11/site-packages/ray/_private/node.py", line 1782, in _record_stats
    assert ray.experimental.internal_kv._internal_kv_initialized()

I’ve tried quite a bit, but don’t really understand what this means.

Related: