PaddleFL icon indicating copy to clipboard operation
PaddleFL copied to clipboard

PaddleFL source code Compile problem

Open wangzy0327 opened this issue 3 years ago • 7 comments

environment: CentOS Linux release 7.9.2009 (Core) Python3.6(from anaconda3 conda env) pip 21.0.1 cuda 10.0 cudnn 7.6.5 python -m pip install paddlepaddle-gpu==2.0.0.post100 -f https://paddlepaddle.org.cn/whl/stable.html paddlepaddle release 2.0.0(dependencies >=1.8)

Then pip install paddle_fl successfully Ipython Test: import padddle_fl Traceback (most recent call last): File "", line 1, in File "/home/wzy/anaconda3/envs/paddleFL-1.8.5/lib/python3.6/site-packages/paddle_fl/init.py", line 15, in from . import mpc File "/home/wzy/anaconda3/envs/paddleFL-1.8.5/lib/python3.6/site-packages/paddle_fl/mpc/init.py", line 59, in fluid.load_op_library(_paddle_enc_lib) AttributeError: module 'paddle.fluid' has no attribute 'load_op_library'

wangzy0327 avatar May 19 '21 01:05 wangzy0327

paddle 2.0 is not supported yet, you can try to use paddle 1.8.5

honshj avatar May 20 '21 09:05 honshj

I also try paddle-1.8.0 and paddle-1.8.5 . but get error wangzy0327 @.*** 签名由 网易邮箱大师 定制 On 05/20/2021 17:26, jed wrote: paddle 2.0 is not supported yet, you can try to use paddle 1.8.5 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

wangzy0327 avatar May 20 '21 10:05 wangzy0327

could you please try installing just paddle 1.8.5 (not to install paddle fl), and run python/python3 -c "import paddle; paddle.fluid.load_op_library()" , to see what the output is?

honshj avatar May 20 '21 12:05 honshj

yes . I follow the documents install paddle 1.8 get the output like this wangzy0327 @.*** 签名由 网易邮箱大师 定制 On 05/20/2021 20:26, jed wrote: could you please try installing just paddle 1.8.5 (not to install paddle fl), and run python/python3 -c "import paddle; paddle.fluid.load_op_library()" , to see what the output is? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

wangzy0327 avatar May 20 '21 12:05 wangzy0327

I think you didn't get my point. Please install ONLY paddle 1.8.5 without PaddleFL, run python/python3 -c "import paddle; paddle.fluid.load_op_library()", and then paste the output.

honshj avatar May 20 '21 12:05 honshj

follow your steps,I got this output

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2021年5月20日(星期四) 晚上8:26 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [PaddlePaddle/PaddleFL] PaddleFL source code Compile problem (#164)

could you please try installing just paddle 1.8.5 (not to install paddle fl), and run python/python3 -c "import paddle; paddle.fluid.load_op_library()" , to see what the output is?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

wangzy0327 avatar May 21 '21 03:05 wangzy0327

follow your steps,I got this output

I can't see your output. I think your PaddleFL is using paddlepaddle-gpu, you can fix it by following these steps: After pip install paddle_fl, uninstall paddle: pip uninstall paddlepaddle, pip uninstall paddlepaddle-gpu install paddle1.8.0: pip install paddlepaddle==1.8.0.

pls ref issue 166.

jhjiangcs avatar May 28 '21 10:05 jhjiangcs