Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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打包后的程序无法运行 #12822

Closed
AlexWxW opened this issue Jun 7, 2024 · 0 comments
Closed

使用pyinstaller打包后的程序无法运行 #12822

AlexWxW opened this issue Jun 7, 2024 · 0 comments

Comments

@AlexWxW
Copy link

AlexWxW commented Jun 7, 2024

问题描述 / Problem Description

运行环境 / Runtime Environment

  • OS:Linux
  • Paddle:2.5.2.post117
  • PaddleOCR:2.7.0.3

复现代码 / Reproduction Code

终端运行app出错

完整报错 / Complete Error Message

File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
File "paddle/fluid/core.py", line 394, in
File "paddle/fluid/core.py", line 386, in set_paddle_lib_path
if hasattr(site, 'USER_SITE'):
TypeError: sequence item 0: expected str instance, NoneType found

可能解决方案 / Possible solutions

手动添加site的绝对路径也没有解决该问题

附件 / Appendix

@PaddlePaddle PaddlePaddle locked and limited conversation to collaborators Jun 7, 2024
@SWHL SWHL converted this issue into discussion #12823 Jun 7, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant