首页 PaddleHub 帖子详情
PaddleHub运行报错
收藏
快速回复
PaddleHub 问答预训练模型 2184 1
PaddleHub运行报错
收藏
快速回复
PaddleHub 问答预训练模型 2184 1

E:\Python3.7\lib\site-packages\urllib3\util\selectors.py:14: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' i
s deprecated, and in 3.8 it will stop working
from collections import namedtuple, Mapping
E:\Python3.7\lib\site-packages\urllib3\_collections.py:2: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is d
eprecated, and in 3.8 it will stop working
from collections import Mapping, MutableMapping
E:\Python3.7\lib\site-packages\setuptools\depends.py:2: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for
alternative uses
import imp
Traceback (most recent call last):
File "test.py", line 1, in
import paddlehub
File "E:\Python3.7\lib\site-packages\paddlehub\__init__.py", line 31, in
from paddlehub import datasets
File "E:\Python3.7\lib\site-packages\paddlehub\datasets\__init__.py", line 16, in
from paddlehub.datasets.chnsenticorp import ChnSentiCorp
File "E:\Python3.7\lib\site-packages\paddlehub\datasets\chnsenticorp.py", line 19, in
from paddlehub.datasets.base_nlp_dataset import TextClassificationDataset
File "E:\Python3.7\lib\site-packages\paddlehub\datasets\base_nlp_dataset.py", line 21, in
import paddlenlp
File "E:\Python3.7\lib\site-packages\paddlenlp\__init__.py", line 20, in
from . import ops
File "E:\Python3.7\lib\site-packages\paddlenlp\ops\__init__.py", line 15, in
from .transformer.decoding import *
File "E:\Python3.7\lib\site-packages\paddlenlp\ops\transformer\decoding.py", line 24, in
from paddlenlp.ops.ext_utils import load
File "E:\Python3.7\lib\site-packages\paddlenlp\ops\ext_utils.py", line 19, in
if not os.path.exists(CUDA_HOME):
File "E:\Python3.7\lib\genericpath.py", line 19, in exists
os.stat(path)
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType

 

最后这一个错误TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType不知道是什么原因 ,求大佬帮助

paddlehub版本2.1.0   paddlepaddle版本2.1.0

0
收藏
回复
全部评论(1)
时间顺序
小姐姐都是我的
#2 回复于2021-07

能提供一下相关代码吗

0
回复
需求/bug反馈?一键提issue告诉我们
发现bug?如果您知道修复办法,欢迎提pr直接参与建设飞桨~
在@后输入用户全名并按空格结束,可艾特全站任一用户