Skip to content

Key error 'ray' #4

@Kostis-S-Z

Description

@Kostis-S-Z

Description

In my first try of executing it, i got the following error. However, it didnt affect the execution of the simulation, so its something that I guess could be ignored? Is there a argument / parameter we can set to not get this error?

Reproduction

  1. git clone
  2. pip install -e .
  3. flwr run .

Relevant log output

Loading project configuration... 
Success
ERROR :     Backend `ray`, is not supported. Use any of [] or add support for a new backend.
ERROR :     Unable to import module `ray`.

    To install the necessary dependencies, install `flwr` with the `simulation` extra:

        pip install -U "flwr[simulation]"
    
ERROR :     An exception occurred !! 'ray'
ERROR :     Traceback (most recent call last):
  File ".../federated-finetuning/.venv/lib/python3.12/site-packages/flwr/simulation/run_simulation.py", line 370, in _main_loop
    vce.start_vce(
  File ".../federated-finetuning/.venv/lib/python3.12/site-packages/flwr/server/superlink/fleet/vce/vce_api.py", line 337, in start_vce
    raise ex
  File ".../federated-finetuning/.venv/lib/python3.12/site-packages/flwr/server/superlink/fleet/vce/vce_api.py", line 325, in start_vce
    backend_type = supported_backends[backend_name]
                   ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
KeyError: 'ray'

Expected behavior

simulation starts with no error logs

System Info

OS: Ubuntu 24

Have you searched for similar issues before submitting this one?

  • Yes, I have searched for similar issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions