FedML icon indicating copy to clipboard operation
FedML copied to clipboard

No module named 'FedML'

Open shanullah opened this issue 3 years ago • 4 comments

I am new to FedML and highly interested in fedGKT,

I followed this "an easy way to install is to follow the script at CI-install.sh (https://github.com/FedML-AI/FedML/blob/master/CI-install.sh) and CI-script-fedavg.sh (https://github.com/FedML-AI/FedML/blob/master/CI-script-fedavg.sh)"

I have run the above commands, but after successful installations, I could not run the https://github.com/FedML- AI/FedML/tree/master/fedml_experiments/distributed/fedgkt

sh run_FedGKT.sh 0 cifar10 homo 200 1 20 Adam 0.001 1 0 resnet56 fedml_resnet56_homo_cifar10 "./../../../data/cifar10" 256

Later, I tried to run a simple fedavg example in a distributed folder, but the same error.

I have tried on my two different PCs (Ubuntu installed) but came up with the same errors as shown in the images below.

please guide me in case I have missed anything. Thank you so much.

error_at_Fedavg error_at_fedGKT

shanullah avatar Oct 07 '21 07:10 shanullah

Based on valuable comments by @Chaoyang He, I am glad that I could resolve a very basic issue related particularly to my environment. By modifying the lines by removing FedML from FedML.fedml_core to fedml_core..., I could run it successfully. thank you so much for such a prompt response on slack and your guidance. Now I can proceed further

shanullah avatar Oct 07 '21 09:10 shanullah

I get the same issue when I run the code. The root folder's name should be renamed as "FedML".

flashlau avatar Nov 10 '21 04:11 flashlau

Based on valuable comments by @ChaoYANG He, I am glad that I could resolve a very basic issue related particularly to my environment. By modifying the lines by removing FedML from FedML.fedml_core to fedml_core..., I could run it successfully. thank you so much for such a prompt response on slack and your guidance. Now I can proceed further

i am studying this codes recently, but i had met above issues. i am confused with what you said, would you mind share your complete codes with me?

baobaochai avatar Nov 25 '21 12:11 baobaochai

Based on valuable comments by @ChaoYANG He, I am glad that I could resolve a very basic issue related particularly to my environment. By modifying the lines by removing FedML from FedML.fedml_core to fedml_core..., I could run it successfully. thank you so much for such a prompt response on slack and your guidance. Now I can proceed further

i am studying this codes recently, but i had met above issues. i am confused with what you said, would you mind share your complete codes with me?

you can get contact with me through my email: [email protected], I would be very grateful if you could give me a hand.

baobaochai avatar Nov 25 '21 12:11 baobaochai