Skip to content

[Dashboard] Getting KeyError: 'RAY_RAYLET_PID' on Win. #12947

@sven1977

Description

@sven1977

When running e.g. rllib train --env CartPole-v0 --run PPO on Windows, I'm seeing these error messages.
The program doesn't crash.

(pid=None) Traceback (most recent call last):
(pid=None)   File "D:\Programs\Anaconda3\envs\ray\lib\site-packages\ray\new_dashboard/agent.py", line 317, in <module>
(pid=None)     raise e
(pid=None)   File "D:\Programs\Anaconda3\envs\ray\lib\site-packages\ray\new_dashboard/agent.py", line 293, in <module>
(pid=None)     agent = DashboardAgent(
(pid=None)   File "D:\Programs\Anaconda3\envs\ray\lib\site-packages\ray\new_dashboard/agent.py", line 65, in __init__
(pid=None)     self.ppid = int(os.environ["RAY_RAYLET_PID"])
(pid=None)   File "D:\Programs\Anaconda3\envs\ray\lib\os.py", line 675, in __getitem__
(pid=None)     raise KeyError(key) from None
(pid=None) KeyError: 'RAY_RAYLET_PID'

What is the problem?

Ray version and other system information (Python version, TensorFlow version, OS):

Reproduction (REQUIRED)

Please provide a short code snippet (less than 50 lines if possible) that can be copy-pasted to reproduce the issue. The snippet should have no external library dependencies (i.e., use fake or mock data / environments):

If the code snippet cannot be run by itself, the issue will be closed with "needs-repro-script".

  • I have verified my script runs in a clean environment and reproduces the issue.
  • I have verified the issue also occurs with the latest wheels.

Metadata

Metadata

Assignees

Labels

P2Important issue, but not time-criticalbugSomething that is supposed to be working; but isn'tdashboardIssues specific to the Ray Dashboardwindows

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions