Replies: 5 comments 1 reply
-
paddle依赖没解决,这个问题和PaddleOCR看着没关系啊 |
Beta Was this translation helpful? Give feedback.
-
改成 |
Beta Was this translation helpful? Give feedback.
-
I have same question. My local OS is MacOS. Anyone could help? |
Beta Was this translation helpful? Give feedback.
-
Hi, you should use |
Beta Was this translation helpful? Give feedback.
-
根本原因在于库的路径问题,可以在core.py文件打印site_dirs、lib_dir,查看路径,然后把paddle libs包复制到对应路径下,如_internal/lib/python3.8/site-packages/paddle/libs(即你可能需要创建路径lib/python3.8/site-packages) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
问题描述 / Problem Description
运行环境 / Runtime Environment
复现代码 / 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
Beta Was this translation helpful? Give feedback.
All reactions