Paddle nuitka 打包报错

dbf7pr2w  于 2021-12-07  发布在  Java
关注(0)|答案(2)|浏览(884)

使用最新版 paddlepaddle 2.1.2 在使用 nuitka打包后,需要把paddle拷到程序目录,但运行时
File "D:\rpa\rpa.dist\tools\infer\predict_system.py", line 30, in
import tools.infer.utility as utility
File "D:\rpa\rpa.dist\tools\infer\utility.py", line 23, in
from paddle import inference
File "D:\rpa\rpa.dist\paddle_init.py", line 25, in
from .fluid import monkey_patch_variable
File "D:\rpa\rpa.dist\paddle\fluid
init_.py", line 36, in
from . import framework
File "D:\rpa\rpa.dist\paddle\fluid\framework.py", line 37, in
from . import core
File "D:\rpa\rpa.dist\paddle\fluid\core.py", line 381, in
set_paddle_lib_path()
File "D:\rpa\rpa.dist\paddle\fluid\core.py", line 376, in set_paddle_lib_path
lib_dir = os.path.sep.join([site.USER_SITE, 'paddle', 'libs'])
TypeError: sequence item 0: expected str instance, NoneType found

jxct1oxe

jxct1oxe1#

您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网API文档常见问题历史IssueAI社区来寻求解答。祝您生活愉快~

Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the APIFAQGithub Issue and AI community to get the answer.Have a nice day!

eulz3vhy

eulz3vhy2#

@sticktoFE 您好,麻烦跑下 import site; site. USER_SITE 是否是None,看起来是挂在这个地方了

相关问题