-
Notifications
You must be signed in to change notification settings - Fork 222
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
ModuleNotFoundError: No module named 'federatedml' with docker-deploy #863
Comments
environment needs to be imported before use: source /data/projects/fate/bin/init_env.sh |
My FATE version is v1.10.0 It seems that there is no such script. |
I did a test and got the same error. This should be a bug in the client image. The client image does not fully test the examples. Dependent packages such as federatedml and fate_test are not included. |
How can I install these two packages manually? |
You can try to set pythonpath and run it:
|
It seems that in the client container, the federatedml & python related folders are missing. |
Sorry to bother you again, is there a way for me to manually install Thanks. |
A simple way is to add a volume mount for federatedml, and add the federatedml path to the PYTHONPATH environment variable. After I tried it, I found that there are other dependencies that need to be resolved. |
I solved the dependency problem as you said:
Now I have a new problem, a new error occurs when executing pipeline.fit():
I think the key lies in the rollsite, I don't know if it is helpful for you to judge.
thank you for your reply~ |
Please make sure that all components of your FATE are working properly and can complete unilateral and multilateral toy tests. flow test toy -gid 9999 -hid 9999 # unilateral
flow test toy -gid 9999 -hid 10000 # multilateral |
I can now run the example code for Resnet with homo-nn correctly. I would like to ask how to use GPU to accelerate training in FATE deployed by docker. Do you have any recommended tutorials? In addition, which container will the task submitted through Thanks for your answer. |
Currently does not support the deployment of GPU, the FATE task is mainly run in fateflow, the detailed process can refer to here https://federatedai.github.io/FATE-Flow/latest/fate_flow/ |
Which deployment method supports GPU? The |
|
I deploy FATE following 使用Docker Compose 部署 FATE
After deployment, I use the following command to enter the client container:
docker exec -it confs-10000_client_1 bash
But when executing ./examples/benchmark_quality/homo_nn/fate-homo_nn.py the following error was reported:
How do I import the
federatedml
package in the client container?Besides, I am a beginner and not familiar with the FATE framework. I would like to know how to use Python or jupyter to develop federated learning code in the case of docker deployment (for example, run the Resnet-example or building a custom dataset) instead of using the
flow
command.Thanks!
The text was updated successfully, but these errors were encountered: