mc2-project / federated-xgboost

Federated gradient boosted decision tree learning
68 stars 20 forks source link

cannot import name 'fxgb_pb2' from 'federatedxgboost.rpc' #29

Open the-programmerr opened 2 years ago

the-programmerr commented 2 years ago

I got this error while running demo.

image

It seems that fxgb-pb2 should be generated automatically. But it doesn't happen, do you have any suggestions?

I look forward to your reply . Thank you.

rctp commented 2 years ago

Any solution for this? I also encounter this problem.

the-programmerr commented 2 years ago

You could try these command:

sudo python3 -m pip install grpcio

sudo python3 -m pip install grpcio-tools

rctp commented 2 years ago

It works. Thank you so much.

Oqaily commented 2 years ago

Writing the above commands didn't work for me, is there another command that could help solving this issue?

luckystarufo commented 2 years ago

I solved it by adding 'path_to_your_repo/federated-xgboost/python_package' to PATH and reinstall everything