MIndiE启动时,python日志报错ImportError: libascend_hal.so: cannot open shared object file: No such file or directory
收藏回复举报
MIndiE启动时,python日志报错ImportError: libascend_hal.so: cannot open shared object file: No such file or directory
t('forum.solved') 已解决
新人帖
发表于2024-10-28 16:44:58
0 查看

image.png

Traceback (most recent call last): 

File "<string>", line 1, in <module> 

File "/usr/local/python3.10.2/lib/python3.10/site-packages/torch_npu/__init__.py", line 16, in <module> 

 import torch_npu.npu 

 File "/usr/local/python3.10.2/lib/python3.10/site-packages/torch_npu/npu/__init__.py", line 119, in <module> 

 from torch_npu. ttils. error_code import Errcode, pta_error, prof_error 

 File */usr/local/python3.10.2/lib/python3.10/site-packages/torch_npu/utils/__init__.py", line 1, in <module> 

from,._module import _apply_module_patch. 

File "/usr/local/python3.10.2/lib/python3.10/site-packages/torch_npu/utils/_module.py", line 26, in <module> 

 from torch_npu,npu.amp.autocast_mode import autocast 

File "/usr/local/python3.10.2/lib/python3.10/site-packages/torch_npu/npu/amp/__init__-py", line 7, in <module> 

 from . sharded_grad_scaler import ShardedGradScaler 

 File */usr/local/python3.10.2/lib/python3.10/site-packages/torch_npu/npu/amp/sharded_grad_scaler.py", line 9, in <module> 

 from torch_npy,npu.utils import npu_check_overflow 

 File "/usr/local/python3.10.2/lib/python3.10/site-packages/torch_npu/npu/utils.py", line 11, in <module> 

import torch_npu._C

ImportError: libascend_hal.so: cannot open shared object file: No such file or directory

我要发帖子