MindSpore 2.4.10 测试失败,【快速入门】Notebook模型构建报错
收藏回复举报
MindSpore 2.4.10 测试失败,【快速入门】Notebook模型构建报错
t('forum.solved') 已解决
新人帖
发表于2026-03-09 22:30:43
0 查看

您好,本人香橙派新手,开发板型号AIpro (20T),使用20250909的官方Ubuntu 22.04 Desktop镜像。

true

true

问题复述

当我按照官方文档"3.20 Methods for testing Mindspore"测试系统自带的MindSpore:

python -c "import mindspore;mindspore.set_context(device_target='Ascend');mindspore.run_check()"

返回 MindSpore 版本为 2.4.10,但遇到以下报错。

[ERROR] ME(2992:255086637060128,MainProcess):2026-03-09-21:56:32.834.801 [mindspore/run_check/_check_version.py:360] CheckFailed: [Errno 13] Permission denied: '/usr/local/Ascend/ascend-toolkit/latest/opp/vendors/config.ini'
[ERROR] ME(2992:255086637060128,MainProcess):2026-03-09-21:56:32.835.239 [mindspore/run_check/_check_version.py:361] MindSpore relies on whl packages of "te" and "hccl" in the "latest" folder of the Ascend AI software package (Ascend Data Center Solution). Please check whether they are installed correctly or not, refer to the match info on: https://www.mindspore.cn/install
/usr/local/miniconda3/lib/python3.9/site-packages/numpy/core/getlimits.py:499: UserWarning: The value of the smallest subnormal for <class 'numpy.float64'> type is zero.
  setattr(self, word, getattr(machar, word).flat[0])
/usr/local/miniconda3/lib/python3.9/site-packages/numpy/core/getlimits.py:89: UserWarning: The value of the smallest subnormal for <class 'numpy.float64'> type is zero.
  return self._float_to_str(self.smallest_subnormal)
/usr/local/miniconda3/lib/python3.9/site-packages/numpy/core/getlimits.py:499: UserWarning: The value of the smallest subnormal for <class 'numpy.float32'> type is zero.
  setattr(self, word, getattr(machar, word).flat[0])
/usr/local/miniconda3/lib/python3.9/site-packages/numpy/core/getlimits.py:89: UserWarning: The value of the smallest subnormal for <class 'numpy.float32'> type is zero.
  return self._float_to_str(self.smallest_subnormal)
[ERROR] ME(2992:255086637060128,MainProcess):2026-03-09-21:56:36.470.232 [mindspore/run_check/_check_version.py:360] CheckFailed: cannot import name 'utils' from partially initialized module 'tbe.common' (most likely due to a circular import) (/usr/local/Ascend/ascend-toolkit/latest/python/site-packages/tbe/common/__init__.py)
[ERROR] ME(2992:255086637060128,MainProcess):2026-03-09-21:56:36.470.539 [mindspore/run_check/_check_version.py:361] MindSpore relies on whl packages of "te" and "hccl" in the "latest" folder of the Ascend AI software package (Ascend Data Center Solution). Please check whether they are installed correctly or not, refer to the match info on: https://www.mindspore.cn/install
[ERROR] ME(2992:255086637060128,MainProcess):2026-03-09-21:56:36.479.029 [mindspore/run_check/_check_version.py:360] CheckFailed: cannot import name 'utils' from partially initialized module 'tbe.common' (most likely due to a circular import) (/usr/local/Ascend/ascend-toolkit/latest/python/site-packages/tbe/common/__init__.py)
[ERROR] ME(2992:255086637060128,MainProcess):2026-03-09-21:56:36.479.297 [mindspore/run_check/_check_version.py:361] MindSpore relies on whl packages of "te" and "hccl" in the "latest" folder of the Ascend AI software package (Ascend Data Center Solution). Please check whether they are installed correctly or not, refer to the match info on: https://www.mindspore.cn/install
MindSpore version:  2.4.10
MindSpore running check failed.
Initialize GE failed!

----------------------------------------------------
- Ascend Error Message:
----------------------------------------------------
EC0010: [PID: 2992] 2026-03-09-21:56:39.586.860 Failed to import Python module [ImportError: cannot import name 'utils' from partially initialized module 'tbe.common' (most likely due to a circular import) (/usr/local/Ascend/ascend-toolkit/latest/python/site-packages/tbe/common/__init__.py).].
        Solution: Check that all required components are properly installed and the specified Python path matches the Python installation directory. (If the path does not match the directory, run set_env.sh in the installation package.)
        TraceBack (most recent call last):
        AOE Failed to call InitCannKB[FUNC:Initialize][FILE:python_adapter_manager.cc][LINE:47]
        Failed to initialize TeConfigInfo.
        [GraphOpt][InitializeInner][InitTbeFunc] Failed to init tbe.[FUNC:InitializeTeFusion][FILE:tbe_op_store_adapter.cc][LINE:1816]
        [GraphOpt][InitializeInner][InitTeFusion]: Failed to initialize TeFusion.[FUNC:InitializeInner][FILE:tbe_op_store_adapter.cc][LINE:1783]
        [SubGraphOpt][PreCompileOp][InitAdapter] InitializeAdapter adapter [tbe_op_adapter] failed! Ret [4294967295][FUNC:InitializeAdapter][FILE:op_store_adapter_manager.cc][LINE:79]
        [SubGraphOpt][PreCompileOp][Init] Initialize op store adapter failed, OpsStoreName[tbe-custom].[FUNC:Initialize][FILE:op_store_adapter_manager.cc][LINE:120]
        [FusionMngr][Init] Op store adapter manager init failed.[FUNC:Initialize][FILE:fusion_manager.cc][LINE:115]
        PluginManager InvokeAll failed.[FUNC:Initialize][FILE:ops_kernel_manager.cc][LINE:82]
        OpsManager initialize failed.[FUNC:InnerInitialize][FILE:gelib.cc][LINE:249]
        GELib::InnerInitialize failed.[FUNC:Initialize][FILE:gelib.cc][LINE:177]
        GEInitialize failed.[FUNC:GEInitialize][FILE:ge_api.cc][LINE:309]

(Please search "CANN Common Error Analysis" at https://www.mindspore.cn for error code description)

----------------------------------------------------
- C++ Call Stack: (For framework developers)
----------------------------------------------------
mindspore/ccsrc/plugin/device/ascend/hal/hardware/ge_device_context.cc:312 InitGe

这也导致我运行系统自带orange-pi-mindspore仓库里的【快速入门】Notebook时,在【模型构建】阶段里遇到相同报错,无法顺利完成入门示例。

true

请问遇到以上错误该如何解决?是软件依赖问题还是硬件问题?还请各位大佬耐心指导,谢谢!

硬件配置

  • 开发板型号:香橙派AIpro (20T)
  • 启动盘:eMMC (256Gi)

npu-smi info

检查昇腾NPU硬件状态:

npu-smi info -t health -i 0 -c 0

返回输出如下:

Health Status                  : Alarm
                                Error Code                     : 80E3A203 80F18003
                                Error Information              : node type=LPM, sensor type=Chip Hardware, event state=The function of obtaining the current is abnormal

                                                               : node type=DDRA, sensor type=RAS State, event state=internal config error

听说 80E3A20380F18003 错误码在香橙派AIpro (20T)下属于正常?还是芯片受损必须修复更换?

软件环境

  • 系统:Ubuntu 22.04 Desktop
  • 内核(uname -r):5.10.0+
  • MindSpore版本:2.4.10
  • CANN 版本:大约 8.0

/usr/local/Ascend/ascend-toolkit/latest/version.cfg 配置文档如下。

# version: 1.0
runtime_running_version=[7.6.0.1.220:8.0.0]
compiler_running_version=[7.6.0.1.220:8.0.0]
hccl_running_version=[7.6.0.1.220:8.0.0]
opp_running_version=[7.6.0.1.220:8.0.0]
toolkit_running_version=[7.6.0.1.220:8.0.0]
aoe_running_version=[7.6.0.1.220:8.0.0]
ncs_running_version=[7.6.0.1.220:8.0.0]
opp_kernel_running_version=[7.6.0.1.220:8.0.0]
runtime_upgrade_version=[7.6.0.1.220:8.0.0]
compiler_upgrade_version=[7.6.0.1.220:8.0.0]
hccl_upgrade_version=[7.6.0.1.220:8.0.0]
opp_upgrade_version=[7.6.0.1.220:8.0.0]
toolkit_upgrade_version=[7.6.0.1.220:8.0.0]
aoe_upgrade_version=[7.6.0.1.220:8.0.0]
ncs_upgrade_version=[7.6.0.1.220:8.0.0]
opp_kernel_upgrade_version=[7.6.0.1.220:8.0.0]
runtime_installed_version=[7.6.0.1.220:8.0.0]
compiler_installed_version=[7.6.0.1.220:8.0.0]
hccl_installed_version=[7.6.0.1.220:8.0.0]
opp_installed_version=[7.6.0.1.220:8.0.0]
toolkit_installed_version=[7.6.0.1.220:8.0.0]
aoe_installed_version=[7.6.0.1.220:8.0.0]
ncs_installed_version=[7.6.0.1.220:8.0.0]
opp_kernel_installed_version=[7.6.0.1.220:8.0.0]

我要发帖子