代码拉取完成,页面将自动刷新
使用python build.py wifiiot编译 时,报python版本不正确。
python使用的是3.7
root@twp:/file/code/openharmony# python --version
Python 3.7.3
python build.py wifiiot
[196/197] ACTION //vendor/hisi/hi3861/hi3861:run_wifiiot_scons(//build/lite/toolchain:linux_x86_64_riscv32_gcc)
FAILED: obj/vendor/hisi/hi3861/hi3861/run_wifiiot_scons_build_ext_components.txt
python ../../../file/code/openharmony/build/lite/build_ext_components.py --path=../../../file/code/openharmony/vendor/hisi/hi3861/hi3861 --command=sh\ hm_build.sh
Python 3.7 or greater required, but you have Python 2.7.16
Traceback (most recent call last):
File "../../../file/code/openharmony/build/lite/build_ext_components.py", line 64, in <module>
sys.exit(main())
File "../../../file/code/openharmony/build/lite/build_ext_components.py", line 58, in main
cmd_exec(args.command)
File "../../../file/code/openharmony/build/lite/build_ext_components.py", line 32, in cmd_exec
raise Exception("{} failed, return code is {}".format(cmd, ret_code))
Exception: ['sh', 'hm_build.sh'] failed, return code is 2
ninja: build stopped: subcommand failed.
you can check build log in /file/code/openharmony/out/wifiiot/build.log
/root/ninja/ninja -w dupbuild=warn -C /file/code/openharmony/out/wifiiot failed, return code is 1
删除自带的python2.7,或者将python指向python3,别指向python2
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
@张文松 python指向的是python3,上面有python --version的输出
麻烦上传一下 out/wifiiot/build.log
两周没有回复,此问题关闭,如果还有问题可以再提一个issue,并上传对应日志
登录 后才可以发表评论