Skip to content

[Bug]: dll load failed 动态链接库dll初始化例程失败 #5732

@SmallICeplay

Description

@SmallICeplay

软件环境

paddle                1.0.2
paddle-bfloat         0.1.7
paddle2onnx           1.0.6
paddlefsl             1.1.0
paddlenlp             2.5.2
paddlepaddle          2.4.2

重复问题

  • I have searched the existing issues

错误描述

(python37) C:\Users\Administrator\Desktop>python
Python 3.7.12 | packaged by conda-forge | (default, Oct 26 2021, 05:35:01) [MSC
v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from paddlenlp import Taskflow
Error: Can not import paddle core while this file exists: D:\Anaconda3\envs\pyth
on37\lib\site-packages\paddle\fluid\libpaddle.pyd
Traceback (most recent call last):
  File "D:\Anaconda3\envs\python37\lib\site-packages\paddle\fluid\core.py", line
 274, in <module>
    from . import libpaddle
ImportError: DLL load failed: 动态链接库(DLL)初始化例程失败。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "D:\Anaconda3\envs\python37\lib\site-packages\paddlenlp\__init__.py", lin
e 33, in <module>
    import paddle
  File "D:\Anaconda3\envs\python37\lib\site-packages\paddle\__init__.py", line 2
5, in <module>
    from .framework import monkey_patch_variable
  File "D:\Anaconda3\envs\python37\lib\site-packages\paddle\framework\__init__.p
y", line 17, in <module>
    from . import random  # noqa: F401
  File "D:\Anaconda3\envs\python37\lib\site-packages\paddle\framework\random.py"
, line 16, in <module>
    import paddle.fluid as fluid
  File "D:\Anaconda3\envs\python37\lib\site-packages\paddle\fluid\__init__.py",
line 36, in <module>
    from . import framework
  File "D:\Anaconda3\envs\python37\lib\site-packages\paddle\fluid\framework.py",
 line 37, in <module>
    from . import core
  File "D:\Anaconda3\envs\python37\lib\site-packages\paddle\fluid\core.py", line
 333, in <module>
    if not avx_supported() and libpaddle.is_compiled_with_avx():
NameError: name 'libpaddle' is not defined

稳定复现步骤 & 代码

from paddlenlp import Taskflow

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtriage

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions