Skip to content

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

@icedrugs1989

Description

@icedrugs1989

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions