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

but that’s giving me the same error.

I’m using Win10, Python 3.9.13, Ray 1.12.1

1 Like

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.

Any progress here? Do we still have to build from source? I’m facing this issue as well.

As I commented on the still open github issue, we are trying to figure out how to reproduce this problem. In order to do that, we need more complete information

  • Where did you get python
  • What else is installed (could you run pip list or conda list to show all of the versions of software you have installed
  • Do you have any environment variables affecting Python set? For instance, what does >set PY show?