Skip to content
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

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

Open
the-programmerr opened this issue May 13, 2022 · 5 comments
Open

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

the-programmerr opened this issue May 13, 2022 · 5 comments

Comments

@the-programmerr
Copy link

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
Copy link

rctp commented Jul 4, 2022

Any solution for this? I also encounter this problem.

@the-programmerr
Copy link
Author

You could try these command:

sudo python3 -m pip install grpcio

sudo python3 -m pip install grpcio-tools

@rctp
Copy link

rctp commented Jul 4, 2022

It works. Thank you so much.

@Oqaily
Copy link

Oqaily commented Sep 3, 2022

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

@luckystarufo
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@luckystarufo @Oqaily @rctp @the-programmerr and others