We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
运行Hetero XGB Training 时提示错误: Failed to execute python: ImportError: cannot import name 'service_pb2' from 'src.primihub.protos',这个该怎么解决呢? 错误日志如下:
Failed to execute python: ImportError: cannot import name 'service_pb2' from 'src.primihub.protos'
/home/private/.cache/bazel/_bazel_private/70ce3da7f8a8c5326e7f2639e4c55098/execroot/primihub/bazel-out/k8-fastbuild/bin I20230607 08:52:09.521046 272986 py_executor.cc:74] I20230607 08:52:09.521107 272986 py_executor.cc:75] start py main E20230607 08:52:09.628433 272986 py_executor.cc:60] Failed to execute python: ImportError: cannot import name 'service_pb2' from 'src.primihub.protos' (/home/private/codes/mpc/primihub/python/primihub/client/ph_grpc/src/primihub/protos/__init__.py) At: /home/private/codes/mpc/primihub/python/primihub/client/ph_grpc/service.py(27): <module> <frozen importlib._bootstrap>(219): _call_with_frames_removed <frozen importlib._bootstrap_external>(848): exec_module <frozen importlib._bootstrap>(686): _load_unlocked <frozen importlib._bootstrap>(975): _find_and_load_unlocked <frozen importlib._bootstrap>(991): _find_and_load /home/private/codes/mpc/primihub/python/primihub/client/ph_grpc/task.py(18): <module> <frozen importlib._bootstrap>(219): _call_with_frames_removed <frozen importlib._bootstrap_external>(848): exec_module <frozen importlib._bootstrap>(686): _load_unlocked <frozen importlib._bootstrap>(975): _find_and_load_unlocked <frozen importlib._bootstrap>(991): _find_and_load /home/private/codes/mpc/primihub/python/primihub/client/client.py(23): <module> <frozen importlib._bootstrap>(219): _call_with_frames_removed <frozen importlib._bootstrap_external>(848): exec_module <frozen importlib._bootstrap>(686): _load_unlocked <frozen importlib._bootstrap>(975): _find_and_load_unlocked <frozen importlib._bootstrap>(991): _find_and_load /home/private/codes/mpc/primihub/python/primihub/client/__init__.py(1): <module> <frozen importlib._bootstrap>(219): _call_with_frames_removed <frozen importlib._bootstrap_external>(848): exec_module <frozen importlib._bootstrap>(686): _load_unlocked <frozen importlib._bootstrap>(975): _find_and_load_unlocked <frozen importlib._bootstrap>(991): _find_and_load <frozen importlib._bootstrap>(219): _call_with_frames_removed <frozen importlib._bootstrap>(961): _find_and_load_unlocked <frozen importlib._bootstrap>(991): _find_and_load <frozen importlib._bootstrap>(219): _call_with_frames_removed <frozen importlib._bootstrap>(961): _find_and_load_unlocked <frozen importlib._bootstrap>(991): _find_and_load <frozen importlib._bootstrap>(219): _call_with_frames_removed <frozen importlib._bootstrap>(961): _find_and_load_unlocked <frozen importlib._bootstrap>(991): _find_and_load <frozen importlib._bootstrap>(219): _call_with_frames_removed <frozen importlib._bootstrap>(961): _find_and_load_unlocked <frozen importlib._bootstrap>(991): _find_and_load /home/private/codes/mpc/primihub/python/primihub/executor.py(20): <module> <frozen importlib._bootstrap>(219): _call_with_frames_removed <frozen importlib._bootstrap_external>(848): exec_module <frozen importlib._bootstrap>(686): _load_unlocked <frozen importlib._bootstrap>(975): _find_and_load_unlocked <frozen importlib._bootstrap>(991): _find_and_load E20230607 08:52:09.628553 272986 py_executor.cc:92] py executor encoutes error when executing task I20230607 08:52:09.683385 272978 fl_task.cc:114] py_main executes result code: 255
The text was updated successfully, but these errors were encountered:
是自己本地编译启动吗?
cd primihub/python pip3 install -r requirements.txt python3 setup.py install
这个执行了么
Sorry, something went wrong.
执行了
启动时有执行这个吗?
解决问题了。 重新同步脚本后忘记执行上面的替换步骤了。 能不能改善下脚本呢,感觉如果不小心同步了会忘记重新替换。
好的,我们完善下脚本
No branches or pull requests
运行Hetero XGB Training
时提示错误:
Failed to execute python: ImportError: cannot import name 'service_pb2' from 'src.primihub.protos'
,这个该怎么解决呢?错误日志如下:
The text was updated successfully, but these errors were encountered: