积分305 / 贡献0

提问7答案被采纳4文章45

[开发者活动] 如何优雅的一键下载OpenHarmony活跃分支代码?请关注【itopen:ohos_download】 原创

润开鸿_闻飞 显示全部楼层 发表于 2024-5-9 11:48:00

你是否还在为每次要下载OpenHarmonoy代码到处找寻命令?各种保存不同版本的代码下载命令? 小编这里为大家提供了一套优雅的一键下载OpenHarmony的主流分支/Tag的小工具 如果觉得好用,辛苦动动小手,点个赞 一键下载openharmony代码

itopen组织 1、提供OpenHarmony优雅实用的小工具 2、手把手适配riscv + qemu + linux的三方库移植 3、未来计划riscv + qemu + ohos的三方库移植 + 小程序开发 4、一切拥抱开源,拥抱国产化

©著作权归作者所有,转载或内容合作请联系作者

您尚未登录,无法参与评论,登录后可以:
参与开源共建问题交流
认同或收藏高质量问答
获取积分成为开源共建先驱

精彩评论8

cuncaojin

沙发 发表于 2024-12-28 01:21:08
error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

润开鸿_闻飞

发表于 2025-1-4 13:57  IP属地: 江苏省扬州市

回复 cuncaojin: 你是执行什么命令报这个错误的?

润开鸿_闻飞

发表于 2025-1-4 13:57  IP属地: 江苏省扬州市

回复 cuncaojin: 有点像是网络问题

【2 条回复】

cuncaojin

板凳 发表于 2024-12-28 01:22:42
error: RPC failed; curl 56 GnuTLS recv error (-9): Error decoding the received TLS packet.1/82596), 469.48 MiB | 46.00 KiB/s
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed


error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

润开鸿_闻飞

发表于 2025-1-4 13:58  IP属地: 江苏省扬州市

回复 cuncaojin: 这个有三种可能性:

润开鸿_闻飞

发表于 2025-1-4 13:59  IP属地: 江苏省扬州市

回复 cuncaojin: 这个有三种可能性
1、网络问题
2、权限问题,是不是公司设置了网络访问权限?
3、git的http下载缓存太小了,你可以网上搜索一下增加缓存的方法

【2 条回复】

cuncaojin

地板 发表于 2024-12-28 11:17:14
start npm install, please wait.
Traceback (most recent call last):
  File "/home/cuncaojin/work/openharmony/ohos_40/build/prebuilts_download.py", line 361, in <module>
    sys.exit(main())
  File "/home/cuncaojin/work/openharmony/ohos_40/build/prebuilts_download.py", line 350, in main
    _npm_install(args)
  File "/home/cuncaojin/work/openharmony/ohos_40/build/prebuilts_download.py", line 209, in _npm_install
    proc = subprocess.Popen(cmd, cwd=full_code_path, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  File "/usr/lib/python3.10/subprocess.py", line 971, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.10/subprocess.py", line 1863, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'xxxxx/prebuilts/build-tools/common/nodejs/current/bin/npm'

润开鸿_闻飞

发表于 2025-1-4 14:04  IP属地: 江苏省扬州市

回复 cuncaojin: 删除/home/cuncaojin/work/openharmony/openharmony_prebuilts和代码中的prebuilts目录后重新执行./build/prebuilts_download.sh,一定要确保执行的结果是正确的,类似于下面的信息

  1.   Downloading http://repo.huaweicloud.com/repository/pypi/packages/ef/82/72403624f197af0db6bac4e58153bc9ac0e6020e57234115db9596eee85d/cryptography-44.0.0-cp39-abi3-manylinux_2_28_x86_64.whl (4.2 MB)
  2.      |████████████████████████████████| 4.2 MB 224.0 MB/s
  3. Collecting json5==0.9.6
  4.   Downloading http://repo.huaweicloud.com/repository/pypi/packages/7e/8e/ebde0a31c71e7098b3014faf46c80bdbcadb3c23b0ac7c7646b2af7d302e/json5-0.9.6-py2.py3-none-any.whl (18 kB)
  5. Collecting wcwidth
  6.   Downloading http://repo.huaweicloud.com/repository/pypi/packages/fd/84/fd2ba7aafacbad3c4201d395674fc6348826569da3c0937e75505ead3528/wcwidth-0.2.13-py2.py3-none-any.whl (34 kB)
  7. Collecting six>=1.9.0
  8.   Downloading http://repo.huaweicloud.com/repository/pypi/packages/b7/ce/149a00dd41f10bc29e5921b496af8b574d8413afcd5e30dfa0ed46c2cc5e/six-1.17.0-py2.py3-none-any.whl (11 kB)
  9. Collecting charset-normalizer<4,>=2
  10.   Downloading http://repo.huaweicloud.com/repository/pypi/packages/93/62/5e89cdfe04584cb7f4d36003ffa2936681b03ecc0754f8e969c2becb7e24/charset_normalizer-3.4.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (146 kB)
  11.      |████████████████████████████████| 146 kB 249.3 MB/s
  12. Collecting urllib3<3,>=1.21.1
  13.   Downloading http://repo.huaweicloud.com/repository/pypi/packages/c8/19/4ec628951a74043532ca2cf5d97b7b14863931476d117c471e8e2b1eb39f/urllib3-2.3.0-py3-none-any.whl (128 kB)
  14.      |████████████████████████████████| 128 kB 239.2 MB/s
  15. Collecting certifi>=2017.4.17
  16.   Downloading http://repo.huaweicloud.com/repository/pypi/packages/a5/32/8f6669fc4798494966bf446c8c4a162e0b5d893dff088afddf76414f70e1/certifi-2024.12.14-py3-none-any.whl (164 kB)
  17.      |████████████████████████████████| 164 kB 114.4 MB/s
  18. Collecting idna<4,>=2.5
  19.   Downloading http://repo.huaweicloud.com/repository/pypi/packages/76/c6/c88e154df9c4e1a2a66ccf0005a88dfb2650c1dffb6f5ce603dfbd452ce3/idna-3.10-py3-none-any.whl (70 kB)
  20.      |████████████████████████████████| 70 kB 77.2 MB/s
  21. Collecting cffi>=1.12
  22.   Downloading http://repo.huaweicloud.com/repository/pypi/packages/8d/fb/4da72871d177d63649ac449aec2e8a29efe0274035880c7af59101ca2232/cffi-1.17.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (446 kB)
  23.      |████████████████████████████████| 446 kB 84.1 MB/s
  24. Collecting pycparser
  25.   Downloading http://repo.huaweicloud.com/repository/pypi/packages/13/a3/a812df4e2dd5696d1f351d58b8fe16a405b234ad2886a0dab9183fb78109/pycparser-2.22-py3-none-any.whl (117 kB)
  26.      |████████████████████████████████| 117 kB 88.1 MB/s
  27. Installing collected packages: pycparser, wcwidth, urllib3, six, idna, charset-normalizer, cffi, certifi, requests, pyyaml, prompt-toolkit, json5, cryptography, asn1crypto
  28. Successfully installed asn1crypto-1.5.1 certifi-2024.12.14 cffi-1.17.1 charset-normalizer-3.4.1 cryptography-44.0.0 idna-3.10 json5-0.9.6 prompt-toolkit-1.0.14 pycparser-2.22 pyyaml-6.0.2 requests-2.32.3 six-1.17.0 urllib3-2.3.0 wcwidth-0.2.13
  29. WARNING: You are using pip version 21.2.4; however, version 24.3.1 is available.
  30. You should consider upgrading via the '/home/wen_fei/OpenHarmony/njdg-v4.1-release/prebuilts/python/linux-x86/3.10.2/bin/python3.10 -m pip install --upgrade pip' command.
  31. ======copy inside cxx finished!======
  32. ======update llvm ndk finished!======
  33. ======change rustlib name finished!======
  34. Created /home/wen_fei/OpenHarmony/njdg-v4.1-release/prebuilts/clang/ohos/linux-x86_64/llvm/bin/lldb-mi
  35. Created /home/wen_fei/OpenHarmony/njdg-v4.1-release/prebuilts/clang/ohos/windows-x86_64/llvm/bin/lldb-mi.exe
复制代码

【1 条回复】
共8 条回复,点击查看

Copyright   ©2023  OpenHarmony开发者论坛  京ICP备2020036654号-3 |技术支持 Discuz!

返回顶部