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

pyinstaller打包python项目时,遇到fastdeploy总是提示dll加载不了的问题,但是原始依赖包中就没有fastdeploy_main.dll文件 #2442

Closed
zhly000 opened this issue Apr 26, 2024 · 2 comments
Assignees

Comments

@zhly000
Copy link

zhly000 commented Apr 26, 2024

环境

  • 【FastDeploy版本】: windows环境 cpu版 fastdeploy-python 1.0.7
  • 【编译命令】pip 安装
  • 【系统平台】: Windows x64(Windows10)
  • 【硬件】: 说明具体硬件型号,如 Nvidia GPU 3080TI, CUDA 11.2 CUDNN 8.3
  • 【编译语言】:Python3.8

问题日志及出现问题的操作流程

  • 附上详细的问题日志有助于快速定位分析
  • fastdeploy无法init启动
    -具体报错如下
  • Traceback (most recent call last):
    File "E:\new_cell\CellCount\dist\final\fastdeploy\c_lib_wrap.py", line 165, in
    from .libs.fastdeploy_main import *
    ImportError: DLL load failed while importing fastdeploy_main: 找不到指定的程序。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "InstanceProcess.py", line 19, in
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 493, in exec_module
File "cell_count_jetson\infer_paddle_class.py", line 14, in
import fastdeploy as fd
File "E:\new_cell\CellCount\dist\final\fastdeploy_init
.py", line 122, in
from .c_lib_wrap import (
File "E:\new_cell\CellCount\dist\final\fastdeploy\c_lib_wrap.py", line 168, in
raise RuntimeError(f"FastDeploy initalized failed! Error: {e}")
RuntimeError: FastDeploy initalized failed! Error: DLL load failed while importing fastdeploy_main: 找不到指定的程序。
[11364] Failed to execute script 'InstanceProcess' due to unhandled exception!

@heliqi
Copy link
Collaborator

heliqi commented Apr 29, 2024

你搜下下fd的python安装目录看看,应该会有依赖的库,不然安装fd的python库后没法跑

@monkeycc
Copy link

nuitka

@heliqi heliqi closed this as completed May 17, 2024
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

3 participants