Ray.init raises OSError: AssignProcessToJobObject() failed

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

  • High: It blocks me to complete my task.

I’m trying to use ray with modin but I can’t seem to run ray.init() without getting:

OSError: [Errno 0] AssignProcessToJobObject() failed

I’ve tried in a separate file with literally just:

import ray
ray.init()

but that’s giving me the same error.

I’m using Win10, Python 3.9.13, Ray 1.12.1

Hey @Dom395, seems this has been a recurring problem for many users on Windows. i.e. AssignProcessToJobObject() failed in ray.init() · Issue #21994 · ray-project/ray · GitHub

Unfortunately, I don’t think Ray has a stable support with Windows yet. Our current Windows support is still in beta.

Would you try installing ray from the source and see if it works? There have been successful attempts that solve this issue.