FedML icon indicating copy to clipboard operation
FedML copied to clipboard

An error occurred when running this code: args=fedml.init()

Open FryLcm opened this issue 2 years ago • 3 comments

23a19e5bb2fa300f65bd9ad4283a529

FryLcm avatar Jul 31 '23 05:07 FryLcm

please how can i solve it

FryLcm avatar Jul 31 '23 05:07 FryLcm

I encountered the exact same problem #1521

rekkles2 avatar Oct 28 '23 16:10 rekkles2

Hello,

the recommended way to start your client or server scripts is by calling the respective bash script. Please have a look at this README.md.

The error you are seeing above is because you call your Python script without passing the configuration file, and therefore, during initialization, the _global_training_type and _global_comm_backend variables are not set. See also here and here how these two variables are set through the config file.

Hope this helps to solve the problem.

fedml-dimitris avatar Oct 30 '23 18:10 fedml-dimitris