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

AttributeError: module 'paddle.fluid' has no attribute 'load_op_library' #276

Open
icedrugs1989 opened this issue Jan 5, 2023 · 0 comments

Comments

@icedrugs1989
Copy link

icedrugs1989 commented Jan 5, 2023

1、docker pull registry.baidubce.com/paddlepaddle/paddle:2.4.1
2、docker run --name docker_paddle -it -v $PWD:/root registry.baidubce.com/paddlepaddle/paddle:2.4.1 /bin/bash
3、pip install paddle_fl -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
4、docker容器中执行paddle,如下图
a9ee1375de6a620de0bec215f7b35695
5、执行example示例dpsgd_dem,报错如下图:
image
尝试修复问题的步骤
1、docker容器使用2.1.0版本,怀疑paddle最新版本删除了对应的函数,找到发版时间小于paddle_fl的2021-12-06的时间执行上述步骤docker pull registry.baidubce.com/paddlepaddle/paddle:2.1.0重复步骤1/2/3/4/5,问题依然复现
2、使用paddle2.4.1的源码编译产生的paddlepaddle-0.0.0-cp37-cp37m-linux_x86_64.whl,使用pip install -U paddlepaddle-0.0.0-cp37-cp37m-linux_x86_64.whl ,重复步骤5,问题依然复现,源码编译步骤如下链接地址:
https://www.paddlepaddle.org.cn/install/quick?docurl=/documentation/docs/zh/install/compile/linux-compile.html
3、paddle降到2.0.1版本,上述错误没有出现,出现libpaddle_enc.so:that Paddle depends on is not configured correctly错误如下图:
image
image

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

1 participant