Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

出现错误:TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType该如何解决呢 #7

Open
x678678678 opened this issue Dec 19, 2023 · 0 comments

Comments

@x678678678
Copy link

Traceback (most recent call last):
File "D:\paddlehub_ernie_emotion_analysis-main\finetune_ernie.py", line 2, in
import paddlehub as hub
File "C:\Users\huawei\AppData\Roaming\Python\Python311\site-packages\paddlehub_init_.py", line 31, in
from paddlehub import datasets
File "C:\Users\huawei\AppData\Roaming\Python\Python311\site-packages\paddlehub\datasets_init_.py", line 16, in
from paddlehub.datasets.chnsenticorp import ChnSentiCorp
File "C:\Users\huawei\AppData\Roaming\Python\Python311\site-packages\paddlehub\datasets\chnsenticorp.py", line 19, in
from paddlehub.datasets.base_nlp_dataset import TextClassificationDataset
File "C:\Users\huawei\AppData\Roaming\Python\Python311\site-packages\paddlehub\datasets\base_nlp_dataset.py", line 21, in
import paddlenlp
File "C:\Users\huawei\AppData\Roaming\Python\Python311\site-packages\paddlenlp_init_.py", line 20, in
from . import ops
File "C:\Users\huawei\AppData\Roaming\Python\Python311\site-packages\paddlenlp\ops_init_.py", line 15, in
from .transformer.decoding import *
File "C:\Users\huawei\AppData\Roaming\Python\Python311\site-packages\paddlenlp\ops\transformer\decoding.py", line 24, in
from paddlenlp.ops.ext_utils import load
File "C:\Users\huawei\AppData\Roaming\Python\Python311\site-packages\paddlenlp\ops\ext_utils.py", line 19, in
if not os.path.exists(CUDA_HOME):
^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 19, in exists
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType

进程已结束,退出代码1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant