FedML icon indicating copy to clipboard operation
FedML copied to clipboard

ModuleNotFoundError: No module named 'fedml.simulation.sp.mime'

Open Avalonooooo opened this issue 3 years ago • 7 comments

image how to fix it?

Avalonooooo avatar Sep 30 '22 07:09 Avalonooooo

Me too, when just run

main.py


import fedml

if __name__ == "__main__":
    fedml.run_simulation()

image

stayt1 avatar Sep 30 '22 12:09 stayt1

@Avalonooooo @stayt1 Please try 0.7.328 and let me whether this issue still exists.

chaoyanghe avatar Sep 30 '22 17:09 chaoyanghe

@chaoyanghe The fedml package(0.7.328) on pypi under python/fedml/simulation/sp and some modules are not included when compiling, resulting in ModuleNotFoundError: No module named 'fedml.simulation.sp.mime'. I solved the problem by moving the corresponding module on github to the envs/fednlp/python3.8/site-packages/fedml directory.

stayt1 avatar Oct 01 '22 08:10 stayt1

@Avalonooooo @stayt1 Please try 0.7.328 and let me whether this issue still exists.

It didn't work, the problem still be there.

Avalonooooo avatar Oct 04 '22 06:10 Avalonooooo

@Avalonooooo @stayt1 Please try the latest version 0.7.332

chaoyanghe avatar Oct 06 '22 23:10 chaoyanghe

@stayt1 @Avalonooooo is this issue resolved?

chaoyanghe avatar Nov 07 '22 18:11 chaoyanghe

this issue also exits on the version 0.7.343

Yixip avatar Nov 10 '22 09:11 Yixip