下载了openharmony-v4.0-release。执行hb set,显示如下错误。
Traceback (most recent call last):
File "/home/xendless/.local/bin/hb", line 8, in <module>
sys.exit(main())
File "/home/xendless/.local/lib/python3.8/site-packages/hb/__main__.py", line 49, in main
topdir = find_top()
File "/home/xendless/.local/lib/python3.8/site-packages/hb/__main__.py", line 37, in find_top
raise Exception("Please call hb utilities inside source root directory")
Exception: Please call hb utilities inside source root directory
执行如下命令,安装hb后。openharmony-v3.2-release下的hb不能被识别。
python3 -m pip install --user build/hb
最终通过卸载hb
pip3 uninstall ohos-build
后,重新安装指定版本的hb后解决。
pip3 install ohos-build==0.4.6
网友评论