使用最新版 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\fluidinit_.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
2条答案
按热度按时间jxct1oxe1#
您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网API文档、常见问题、历史Issue、AI社区来寻求解答。祝您生活愉快~
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 API,FAQ,Github Issue and AI community to get the answer.Have a nice day!
eulz3vhy2#
@sticktoFE 您好,麻烦跑下
import site; site. USER_SITE
是否是None,看起来是挂在这个地方了