RT-Thread / RT-Thread/env-windows

env-win 2.0.0 + rt-thread 5.2.1 - pkgs --updates 失败

Open
#39 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
44
Forks
24
PR merge metrics
No merged PRs in 30d

Description

如标题,env 是从master 拉下来的,在BSP 下执行pkgs --update ,报错误下

`(.venv) bakewell.wang@HF-N-002946B E:\quectel\proj\rtthread\rt-thread\bsp\stm32\stm32f429-armfly-v6
$ pkgs --update
[Use Gitee server - auto decision based on IP location]
Cloning into 'E:\quectel\proj\rtthread\rt-thread\bsp\stm32\stm32f429-armfly-v6\packages\CMSIS-Core-latest'...
remote: Enumerating objects: 37, done.
remote: Counting objects: 100% (37/37), done.
remote: Compressing objects: 100% (37/37), done.
Receiving objects: 86% (32/37)used 0 (delta 0), pack-reused 0 (from 0)
Receiving objects: 100% (37/37), 130.52 KiB | 367.00 KiB/s, done.
Resolving deltas: 100% (20/20), done.
==============================> CMSIS_CORE latest is downloaded successfully.

Traceback (most recent call last):
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "E:\quectel\proj\rtthread\env-windows.venv\Scripts\pkgs.exe_main
.py", line 7, in
File "E:\quectel\proj\rtthread\env-windows.venv\Lib\site-packages\env\env.py", line 155, in pkgs
exec_arg('pkg')
File "E:\quectel\proj\rtthread\env-windows.venv\Lib\site-packages\env\env.py", line 134, in exec_arg
args.func(args)
File "E:\quectel\proj\rtthread\env-windows.venv\Lib\site-packages\env\cmds\cmd_package_init
.py", line 42, in run_env_cmd
package_update()
File "E:\quectel\proj\rtthread\env-windows.venv\Lib\site-packages\env\cmds\cmd_package\cmd_package_update.py", line 868, in package_update
if not install_packages(sys_value, force_update):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\quectel\proj\rtthread\env-windows.venv\Lib\site-packages\env\cmds\cmd_package\cmd_package_update.py", line 819, in install_packages
if install_package(env_root, pkgs_root, bsp_root, package, force_update):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\quectel\proj\rtthread\env-windows.venv\Lib\site-packages\env\cmds\cmd_package\cmd_package_update.py", line 297, in install_package
package.parse(pkg_path)
File "E:\quectel\proj\rtthread\env-windows.venv\Lib\site-packages\env\package.py", line 127, in parse
with codecs.open(filename, "r", encoding='utf-8') as f:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 918, in open
FileNotFoundError: [Errno 2] No such file or directory: 'E:\quectel\proj\rtthread\env-windows\tools\bin\..\..\packages\packages/peripherals/hal-sdk/stm32/stm32f4_hal_driver\package.json'`

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing pkgs --update in the reported STM32 BSP and inspect the package-update path in env/cmds/cmd_package/cmd_package_update.py, especially install_package, along with env/package.py parsing. Confirm whether the reported package path and package.json lookup are handled correctly; done means the command completes without the shown FileNotFoundError.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, python
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.