Paddle异常Exception: sequence item 0: expected str instance, NoneType found

File "<frozen importlib.bootstrap>"line1027,in _find and loadFile "<frozenimportlib._bootstrap>"line 1006,in find_and load unlockedFile"<frozenimportlib. bootstrap>"line 688,in load unlockedFile"PyInstaller/loader/pyimod02_importers.py"line 419,in exec moduleFile"paddle/in <module>init.Py"line 28,importlib.in find and loadFile "<frozenbootstrap>Line 1027File "<frozenimportlib.linein find and load unlockedbootstrap>1006.File"<frozenimportlibbootstrap>line 688,in load unlockedFile"PyInstaller/loader/pyimod02 importers.py",line 419,in exec_moduleFile,line 36,in <module>"paddle/base/init-Py"File"<frozen importlib. bootstrap>"line 1027,in find and loadFile"<frozenimportlib._bootstrap>"line 1006,in find and load unlockedFile"<frozen importlib._bootstrap>"line 688,inload unlockedFile "PyInstaller/loader/pyimod02_importers.py",line 419,in exec_moduleFile "paddle/base/core.py"line 418,in <module>File"paddle/base/core.py"line 410,in set paddle lib path

Exception: sequence item 0: expected str instance, NoneType found

修改办法

https://github.com/PaddlePaddle/Paddle/issues/35058

https://github.com/PaddlePaddle/Paddle/issues/62128

编辑python包paddle/base/core.py
修改
else [x for x in sys.path if 'site-packages' in x]

else [x for x in sys.path if 'site-packages' in x and x is not None]
修改
if hasattr(site, 'USER_SITE')

if hasattr(site, 'USER_SITE') and site.USER_SITE:

相关推荐
猿界零零七16 小时前
执行paddle.to_tensor得到全为0
python·paddle
1nv1s1ble3 天前
paddle ocr
ocr·paddle
冲上云霄的Jayden5 天前
PaddleNLP UIE 通过OCR识别银行回执信息
nlp·ocr·paddle·paddlenlp·信息提取·uie·银行回执
程序员柒叔8 天前
制作PaddleOCR/PaddleHub的Docker镜像
python·docker·ocr·paddle
love you joyfully18 天前
生成对抗网络——pytorch与paddle实现生成对抗网络
pytorch·生成对抗网络·paddle
OdooWizard1 个月前
【深度学习】使用飞桨paddle实现波士顿房价预测任务
深度学习·paddlepaddle·paddle
山川而川-R2 个月前
PaddlePaddle的OCR模型转onnx-转rknn模型_笔记4
笔记·ocr·paddle
gold20082 个月前
pdf-extract-kit paddle paddleocr pdf2markdown.py(效果不佳)
pdf·paddle·paddleocr·pdf-extract-kit·pdf2markdown.py
BlackPercy2 个月前
[paddle] 矩阵的分解
python·矩阵·paddle
五力2 个月前
PaddleOCR 截图自动文字识别
python·tkinter·paddle