求助~按照官方教程搭建环境出错

ryc12138
发布于 2020-10-15 06:43
浏览
0收藏

各位大佬们好~我刚才在按照官方的教程搭建环境,,,可是发现报错了,求求各位大佬帮助~

源码包是从虚拟机提取的....感觉虚拟机不方便,打算直接上真机....

Traceback (most recent call last):
  File "/usr/lib/scons/SCons/Script/Main.py", line 1376, in main
    _exec_main(parser, values)
  File "/usr/lib/scons/SCons/Script/Main.py", line 1339, in _exec_main
    _main(parser)
  File "/usr/lib/scons/SCons/Script/Main.py", line 1006, in _main
    SCons.Script._SConscript._SConscript(fs, script)
  File "/usr/lib/scons/SCons/Script/SConscript.py", line 255, in _SConscript
    exec(compile(_file_.read(), _file_.name, 'exec'),
  File "/home/ryc/code/vendor/hisi/hi3861/hi3861/SConstruct", line 34, in <module>
    from scripts import pkt_builder
  File "/home/ryc/code/vendor/hisi/hi3861/hi3861/build/scripts/pkt_builder.py", line 24, in <module>
    import make_upg_file as MAKE_IMAGE
  File "/home/ryc/code/vendor/hisi/hi3861/hi3861/build/scripts/make_upg_file.py", line 30, in <module>
    from Crypto.PublicKey import RSA
  File "/usr/lib/python3/dist-packages/Crypto/PublicKey/RSA.py", line 78, in <module>
    from Crypto import Random
  File "/usr/lib/python3/dist-packages/Crypto/Random/__init__.py", line 29, in <module>
    from Crypto.Random import _UserFriendlyRNG
  File "/usr/lib/python3/dist-packages/Crypto/Random/_UserFriendlyRNG.py", line 38, in <module>
    from Crypto.Random.Fortuna import FortunaAccumulator
  File "/usr/lib/python3/dist-packages/Crypto/Random/Fortuna/FortunaAccumulator.py", line 39, in <module>
    from . import FortunaGenerator
  File "/usr/lib/python3/dist-packages/Crypto/Random/Fortuna/FortunaGenerator.py", line 35, in <module>
    from Crypto.Util import Counter
  File "/usr/lib/python3/dist-packages/Crypto/Util/Counter.py", line 59, in <module>
    from Crypto.Util import _counter
ImportError: cannot import name '_counter' from 'Crypto.Util' (/usr/lib/python3/dist-packages/Crypto/Util/__init__.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/scons", line 201, in <module>
    SCons.Script.main()
  File "/usr/lib/scons/SCons/Script/Main.py", line 1401, in main
    SCons.Script._SConscript.SConscript_exception()
  File "/usr/lib/scons/SCons/Script/SConscript.py", line 319, in SConscript_exception
    stack = traceback.extract_tb(tb)
  File "/usr/lib/python3.8/traceback.py", line 72, in extract_tb
    return StackSummary.extract(walk_tb(tb), limit=limit)
  File "/usr/lib/python3.8/traceback.py", line 366, in extract
    f.line
  File "/usr/lib/python3.8/traceback.py", line 288, in line
    self._line = linecache.getline(self.filename, self.lineno).strip()
  File "/usr/lib/python3.8/linecache.py", line 16, in getline
    lines = getlines(filename, module_globals)
  File "/usr/lib/python3.8/linecache.py", line 47, in getlines
    return updatecache(filename, module_globals)
  File "/usr/lib/python3.8/linecache.py", line 137, in updatecache
    lines = fp.readlines()
  File "/usr/lib/python3.8/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xca in position 699: invalid continuation byte
Traceback (most recent call last):
  File "../../build/lite/build_ext_components.py", line 64, in <module>
    sys.exit(main())
  File "../../build/lite/build_ext_components.py", line 58, in main
    cmd_exec(args.command)
  File "../../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 1
ninja: build stopped: subcommand failed.
you can check build log in /home/ryc/code/out/wifiiot/build.log
/home/ryc/ninja/ninja -w dupbuild=warn -C /home/ryc/code/out/wifiiot failed, return code is 1
usage: 
  python build.py ipcamera_hi3516dv300
  python build.py ipcamera_hi3518ev300
  python build.py wifiiot

这个错误出在哪里,该咋解决啊.....求求大佬帮助一下....

标签
收藏
回复
举报
5条回复
按时间正序
/
按时间倒序
SummerRic
SummerRic

可以在问答里进行提问哦。

已于2020-10-15 10:13:05修改
回复
2020-10-15 10:12:45
ryc12138
ryc12138

找到如何解决啦

pip3 uninstall pycrypto
pip3 install pycrypto
即可!是crypto的问题......

。。。。。有点坑》。。。

回复
2020-10-18 20:19:44
woff1ddf
woff1ddf 回复了 ryc12138
找到如何解决啦 pip3 uninstall pycrypto pip3 install pycrypto 即可!是crypto的问题...... 。。。。。有点坑》。。。

我也遇到相似问题,可以加你QQ嘛

回复
2020-10-27 15:14:55
ryc12138
ryc12138 回复了 woff1ddf
我也遇到相似问题,可以加你QQ嘛

ahh,抱歉哈,我不用QQ。。。。要不加微信open-ryc

或者加我TG频道-t.me/rycchnnel

不过我觉得有问题直接发出来就好啦~

回复
2020-10-27 16:34:53
休止符、
休止符、

请问输入python build.py wifiiot报错[OHOS ERROR] Component wifiiot not found怎么办?

回复
2021-8-2 11:09:52
回复
    相关推荐