安装mindspore后用python脚本验证时报错,求助该怎么解决
收藏回复举报
安装mindspore后用python脚本验证时报错,求助该怎么解决
t('forum.solved') 已解决
发表于2024-08-05 16:45:03
0 查看

昇腾910硬件,OpenEuler2203的操作系统。按照官网的conda方式安装mindspore,验证安装的时候有以下报错:

mindspore 2.2.14 

CANN 7.0.0.1

Ascend-Training-Solution-23.0.0

(mindspore_py399) [root ~]# python -c "import mindspore;mindspore.set_context(device_target='Ascend');mindspore.run_check()" 

[ERROR] ME(158838:281472936417664,MainProcess):2024-08-03-16:18:41.796.176 [mindspore/run_check/_check_version.py:388] CheckFailed: `np.float_` was removed in the NumPy 2.0 release. Use `np.float64` instead. 

[ERROR] ME(158838:281472936417664,MainProcess):2024-08-03-16:18:41.796.376 [mindspore/run_check/_check_version.py:389] 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.2.14 

The result of multiplication calculation is correct, MindSpore has been installed on platform [Ascend] successfully! 

[ERROR] DEVICE(158838,ffff86639980,python):2024-08-03-16:18:47.514.437 [mindspore/ccsrc/runtime/pynative/async/async_queue.cc:247] WorkerJoin] WorkerJoin failed: Initialize GE failed! 

 

---------------------------------------------------- 

- Ascend Error Message: 

---------------------------------------------------- 

EC0010: Failed to import Python module [AttributeError: `np.float_` was removed in the NumPy 2.0 release. Use `np.float64` instead..]. 

        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): 

        [GraphOpt][InitializeInner][InitTbeFunc] Failed to init tbe.[FUNC:InitializeInner][FILE:tbe_op_store_adapter.cc][LINE:1623] 

        [SubGraphOpt][PreCompileOp][InitAdapter] InitializeAdapter adapter [tbe_op_adapter] failed! Ret [4294967295][FUNC:InitializeAdapter][FILE:op_store_adapter_manager.cc][LINE:85] 

        [SubGraphOpt][PreCompileOp][Init] Initialize op store adapter failed, OpsStoreName[tbe-custom].[FUNC:Initialize][FILE:op_store_adapter_manager.cc][LINE:126] 

        [FusionMngr][Init] Op store adapter manager init failed.[FUNC:Initialize][FILE:fusion_manager.cc][LINE:124] 

        PluginManager InvokeAll failed.[FUNC:Initialize][FILE:ops_kernel_manager.cc][LINE:96] 

        OpsManager initialize failed.[FUNC:InnerInitialize][FILE:gelib.cc][LINE:237] 

        GELib::InnerInitialize failed.[FUNC:Initialize][FILE:gelib.cc][LINE:165] 

 

(Please search "Ascend Error Message" 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:211 InitGe 

本帖最后由 匿名用户2024/08/06 09:29:25 编辑

我要发帖子