华为云环境,用mxVision_3.0.RC1得到报错get real path in GST_PLUGIN_SCANNER failed
收藏回复举报
华为云环境,用mxVision_3.0.RC1得到报错get real path in GST_PLUGIN_SCANNER failed
t('forum.solved') 已解决
新人帖
发表于2022-11-03 13:58:32
0 查看

华为云环境,用mxVision_3.0.RC1得到报错get real path in GST_PLUGIN_SCANNER failed

详细报错信息:

root@ecs-mindstudiowithsdk IDCardRecognition# sh IDCardRecognition.sh
Begin to initialize Log.
Failed to load log config file, use default log config value.
WARNING: Logging before InitGoogleLogging() is written to STDERR
W20221103 13:50:05.885808 24201 ConfigUtil.h:103] [1016][Object, file or other resource doesn't exist] Fail to read (log_prefix) from config, default is: 1
W20221103 13:50:05.885836 24201 ConfigUtil.h:103] [1016][Object, file or other resource doesn't exist] Fail to read (colorlogtostderr) from config, default is: 1
W20221103 13:50:05.885846 24201 ConfigUtil.h:103] [1016][Object, file or other resource doesn't exist] Fail to read (stop_logging_if_full_disk) from config, default is: 1
The output directory of logs file exist.
Save logs information to specified directory.
E20221103 13:50:05.885902 24201 FileUtils.cpp:315] realpath parsing failed.
E20221103 13:50:05.886087 24201 MxStreamManagerDptr.cpp:397] get real path in GST_PLUGIN_SCANNER failed
E20221103 13:50:05.886106 24201 MxStreamManagerDptr.cpp:448] check GST_PLUGIN_SCANNER failed
E20221103 13:50:05.886121 24201 MxStreamManagerDptr.cpp:495] handle environment: GST_PLUGIN_SCANNER failed
E20221103 13:50:05.886138 24201 MxStreamManager.cpp:96] [1001][General Failed] Before creating a pipeline, please set related environment variables.
The following two methods are available:
(1) Permanent method: set the environment variable in the ~/.bashrc file of the current user, and run the "source ~/.bashrc" command manually in the current window.
(2) Temporary method: run the export command to import the required environment variables in the current window.
Failed to init Stream manager, ret=1001

我们用的是官网案例:https://www.hiascend.com/zh/developer/mindx-sdk/case-studies/60172285

bashrc写的是:

export XXX=/usr/local/Ascend/mindx_sdk/mxVision_3.0.RC1/linux-x86_64/mxVision-3.0.RC1
export LD_LIBRARY_PATH=${XXX}/lib:${XXX}/opensource/lib:/usr/local/Ascend/ascend-toolkit/latest/acllib/lib64:${LD_LIBRARY_PATH}
export PYTHONPATH=${XXX}/python:${PYTHONPATH}
export MX_SDK_HOME=/usr/local/Ascend/mindx_sdk/mxVision_3.0.RC1/linux-x86_64/mxVision
export LD_LIBRARY_PATH=${XXX}/lib:${XXX}/opensource/lib:/usr/local/Ascend/ascend-toolkit/latest/acllib/lib64:${LD_LIBRARY_PATH}
#export GST_PLUGIN_SCANNER=${XXX}/opensource/libexec/gstreamer-1.0/gst-plugin-scanner
export GST_PLUGIN_PATH=${XXX}/opensource/lib/gstreamer-1.0:${XXX}/lib/plugins
export PYTHONPATH=${XXX}/python:${PYTHONPATH}
export LD_LIBRARY_PATH=${MX_SDK_HOME}/lib:${MX_SDK_HOME}/opensource/lib:${LD_LIBRARY_PATH}




export GST_PLUGIN_SCANNER=/usr/local/Ascend/mindx_sdk/mxVision_3.0.RC1/linux-x86_64/mxVision-3.0.RC1/opensource/libexec/gstreamer-1.0/gst-plugin-scanner

注释里那个 GST_PLUGIN_SCANNER写法也是一样报错。

求助。非常感谢! 

本帖最后由 匿名用户2023/06/01 15:16:50 编辑

我要发帖子