Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Client] Ray.initiallize() doesn't properly reflect ray status #45370

Closed
AlexCuadron opened this issue May 16, 2024 · 1 comment
Closed

[Client] Ray.initiallize() doesn't properly reflect ray status #45370

AlexCuadron opened this issue May 16, 2024 · 1 comment
Labels
bug Something that is supposed to be working; but isn't core Issues that should be addressed in Ray Core core-client ray client related issues triage Needs triage (eg: priority, bug/not-bug, and owning component)

Comments

@AlexCuadron
Copy link

What happened + What you expected to happen

I tried connecting to a ray cluster using the ray client: ray.init("ray://IP:10001", allow_multiple=True) . Which I successfully connect to as shown by this output:

2024-05-16 02:28:28,969 WARNING utils.py:1591 -- Python patch version mismatch: The cluster was started with:
    Ray: 2.12.0
    Python: 3.10.14
This process on Ray Client was started with:
    Ray: 2.12.0
    Python: 3.10.13

ClientContext(dashboard_url='172.17.0.2:8265', python_version='3.10.14', ray_version='2.12.0', ray_commit='549c4b7694483f6bc9e519b61e6f575e13510343', _num_clients=5, _context_to_restore=<ray.util.client._ClientContext object at 0x15473b599d50>, protocol_version=None)

Then I checked that the connection was established using: ray.is_initialized() But, to my surprise I get this output:
False.

The expected return should be true.

Versions / Dependencies

Ray latest version, python 3.10, and Ubuntu 22

Reproduction script

ray.init("ray://IP:10001", allow_multiple=True)
ray.is_initialized()
Output should be true, but it is false

Issue Severity

Medium: It is a significant difficulty but I can work around it.

@AlexCuadron AlexCuadron added bug Something that is supposed to be working; but isn't triage Needs triage (eg: priority, bug/not-bug, and owning component) labels May 16, 2024
@anyscalesam anyscalesam added core-client ray client related issues core Issues that should be addressed in Ray Core labels May 20, 2024
@rynewang
Copy link
Contributor

We don't support Ray connections in different python versions. Please upgrade Python to the same version and retry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that is supposed to be working; but isn't core Issues that should be addressed in Ray Core core-client ray client related issues triage Needs triage (eg: priority, bug/not-bug, and owning component)
Projects
None yet
Development

No branches or pull requests

3 participants