question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AssignProcessToJobObject() failed in ray.init()

See original GitHub issue

Search before asking

  • I searched the issues and found no similar issues.

Ray Component

Ray Core

What happened + What you expected to happen

When starting ray.init() from terminal - both in Run and Debug mode, the following exception is thrown:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\python_venvs\gem_dl\lib\site-packages\ray\_private\client_mode_hook.py", line 105, in wrapper
    return func(*args, **kwargs)
  File "C:\Users\python_venvs\gem_dl\lib\site-packages\ray\worker.py", line 908, in init
    _global_node = ray.node.Node(
  File "C:\Users\python_venvs\gem_dl\lib\site-packages\ray\node.py", line 235, in __init__
    self.start_ray_processes()
  File "C:\Users\python_venvs\gem_dl\lib\site-packages\ray\node.py", line 947, in start_ray_processes
    self.start_raylet(plasma_directory, object_store_memory)
  File "C:\Users\python_venvs\gem_dl\lib\site-packages\ray\node.py", line 808, in start_raylet
    process_info = ray._private.services.start_raylet(
  File "C:\Users\python_venvs\gem_dl\lib\site-packages\ray\_private\services.py", line 1642, in start_raylet
    process_info = start_ray_process(
  File "C:\Users\python_venvs\gem_dl\lib\site-packages\ray\_private\services.py", line 665, in start_ray_process
    ray._private.utils.set_kill_child_on_death_win32(process)
  File "C:\Users\python_venvs\gem_dl\lib\site-packages\ray\_private\utils.py", line 796, in set_kill_child_on_death_win32
    raise OSError(ctypes.get_last_error(),
OSError: [Errno 0] AssignProcessToJobObject() failed

Versions / Dependencies

ray==1.9.2
Python 3.8.10
Windows 10

Reproduction script

Reproduction (REQUIRED) In a python terminal run this:

import ray
ray.init()

Anything else

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:20 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
mattipcommented, Aug 23, 2022

Thanks for the info. Reopening.

0reactions
hora-anyscalecommented, Dec 14, 2022

Per Triage Sync: No response from reporter, closing

Read more comments on GitHub >

github_iconTop Results From Across the Web

AssignProcessToJobObject() failed in ray.init() when using ...
AssignProcessToJobObject() failed in ray.init() when using PyCharm ... When starting ray.init() from PyCharm - both in Run and Debug mode, ...
Read more >
Ray.init raises OSError: AssignProcessToJobObject() failed
I'm trying to use ray with modin but I can't seem to run ray.init() without getting: OSError: [Errno 0] AssignProcessToJobObject() failed.
Read more >
Error while initializing Ray on an EC2 master node
The installation of pandas and matplotlib on the master node seems to have solved the problem. Ray now initializes successfully.
Read more >
[Ray Tune] Ray crashes and system hangs - Google Groups
Sometimes on crash I get pyarrow EOF error, but other times I do not see such an ... Redis might be the best...
Read more >
How to use the ray.init function in ray - Snyk
def test_int_dataframe(): ray.init() pandas_df = pd.DataFrame({'col1': [0, 1, 2, 3], 'col2': [4, 5, 6, 7], 'col3': [8, 9, 10, 11], 'col4': [12, 13,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found