project-chip / connectedhomeip

Matter (formerly Project CHIP) creates more connections between more objects, simplifying development for manufacturers and increasing compatibility for consumers, guided by the Connectivity Standards Alliance.
https://buildwithmatter.com
Apache License 2.0
7.43k stars 1.99k forks source link

[BUG] Using commit: 150db874c378d0e167127b1d0c38a3f195c059eb, the repository is clean. Running source ./scripts/activate.sh throws an error. #36134

Open jczhang777 opened 5 hours ago

jczhang777 commented 5 hours ago

Reproduction steps

1.git clone https://github.com/project-chip/connectedhomeip.git 2.git submodule update -f --init --recursive 3.source ./scripts/activate.sh

Bug prevalence

Whenever I do this

GitHub hash of the SDK that was being used

150db874c378d0e167127b1d0c38a3f195c059eb

Platform

core

Platform Version(s)

No response

Anything else?

➜ connectedhomeip git:(master) source ./scripts/activate.sh
2024-10-18 10:32:18,456 Loading extra packages for linux
2024-10-18 10:32:18,456 Skipping: darwin (i.e. /home/zhang/workplace/matter_all/connectedhomeip/third_party/pigweed/repo/pw_env_setup/py/pw_env_setup/cipd_setup/python311.json) 2024-10-18 10:32:18,456 Skipping: windows (i.e. /home/zhang/workplace/matter_all/connectedhomeip/third_party/pigweed/repo/pw_env_setup/py/pw_env_setup/cipd_setup/python311.json)

WELCOME TO...

     █                                                                                                                                                    
     █                                                                                                                                                    
 ▄   █   ▄                                █     █                                                                                                         
 ▀▀█████▀▀      ▄▀▀▀▄ ▄▀▀▀▄    ▄▀▀▀▀▄█  ▀▀█▀▀▀▀▀█▀▀   ▄▀▀▀▀▄    ▄▀▀                                                                                       

▀█▄ ▄█▀ █ █ █ █ █ █ █ █▄▄▄▄▄▄█ █
▀█▄ ▄█▀ █ █ █ █ █ █ █ █ █
▄██▀▀█ █▀▀██▄ █ █ █ ▀▄▄▄▄▀█ ▀▄▄ ▀▄▄ ▀▄▄▄▄▀ █
▀▀ █ █ ▀▀

BOOTSTRAP! Bootstrap may take a few minutes; please be patient.

Downloading and installing packages into local source directory:

Setting up CIPD package manager...done (8.0s)
Setting up Project actions........skipped (0.1s)
Setting up Python environment.....[]
ninja: Entering directory `/home/zhang/workplace/matter_all/connectedhomeip/.environment/gn_out'
[1/1220] touch python/obj/third_party/pigweed/repo/pw_metric/metric_service_proto.python._package_metadata._metadata_path_list.txt.stamp
[2/1220] touch python/obj/third_party/pigweed/repo/pw_snapshot/snapshot_proto.python._package_metadata._metadata_path_list.txt.stamp
[3/1220] touch python/obj/third_party/pigweed/repo/pw_snapshot/py/pw_snapshot_metadata._package_metadata._metadata_path_list.txt.stamp
[4/1220] python3 ../../third_party/pigweed/repo/pw_build/py/pw_build/python_runner.py --gn-root ../../ --current-path ../../third_party/pigweed/repo/pw_cpu_exception_risc_v --default-toolchain=//build/toolchain/linux:linux_x64_gcc --current-toolchain=//third_party/pigweed/repo/pw_build/python_toolchain:python --touch python/gen/third_party/pigweed/repo/pw_cpu_exception_risc_v/c pu_state_protos.python._package_metadata.pw_pystamp --capture-output --python-dep-list-files python/gen/third_party/pigweed/repo/pw_cpu_exception_risc_v/cpu_state_protos.python._package_meta data_metadata_path_list.txt -- ../../third_party/pigweed/repo/pw_build/py/pw_build/nop.py
FAILED: python/gen/third_party/pigweed/repo/pw_cpu_exception_risc_v/cpu_state_protos.python._package_metadata.pw_pystamp
python3 ../../third_party/pigweed/repo/pw_build/py/pw_build/python_runner.py --gn-root ../../ --current-path ../../third_party/pigweed/repo/pw_cpu_exception_risc_v --default-toolchain=//buil d/toolchain/linux:linux_x64_gcc --current-toolchain=//third_party/pigweed/repo/pw_build/python_toolchain:python --touch python/gen/third_party/pigweed/repo/pw_cpu_exception_risc_v/cpustate protos.python._package_metadata.pw_pystamp --capture-output --python-dep-list-files python/gen/third_party/pigweed/repo/pw_cpu_exception_risc_v/cpu_state_protos.python._package_metadata_meta data_path_list.txt -- ../../third_party/pigweed/repo/pw_build/py/pw_build/nop.py
Traceback (most recent call last):
File "../../third_party/pigweed/repo/pw_build/py/pw_build/python_runner.py", line 33, in
from pw_build import gn_resolver
ModuleNotFoundError: No module named 'pw_build'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "../../third_party/pigweed/repo/pw_build/py/pw_build/python_runner.py", line 38, in
import gn_resolver # type: ignore
File "/home/zhang/workplace/matter_all/connectedhomeip/third_party/pigweed/repo/pw_build/py/pw_build/gn_resolver.py", line 319, in
_Actions = Iterator[tuple[_ArgAction, str]]
TypeError: 'type' object is not subscriptable
[5/1220] python3 ../../third_party/pigweed/repo/pw_build/py/pw_build/python_runner.py --gn-root ../../ --current-path ../../third_party/pigweed/repo/pw_status/py --default-toolchain=//build/ toolchain/linux:linux_x64_gcc --current-toolchain=//third_party/pigweed/repo/pw_build/python_toolchain:python --touch python/gen/third_party/pigweed/repo/pw_status/py/py._package_metadata.pw _pystamp --capture-output --python-dep-list-files python/gen/third_party/pigweed/repo/pw_status/py/py._package_metadata_metadata_path_list.txt -- ../../third_party/pigweed/repo/pw_build/py/p w_build/nop.py
FAILED: python/gen/third_party/pigweed/repo/pw_status/py/py._package_metadata.pw_pystamp
python3 ../../third_party/pigweed/repo/pw_build/py/pw_build/python_runner.py --gn-root ../../ --current-path ../../third_party/pigweed/repo/pw_status/py --default-toolchain=//build/toolchain /linux:linux_x64_gcc --current-toolchain=//third_party/pigweed/repo/pw_build/python_toolchain:python --touch python/gen/third_party/pigweed/repo/pw_status/py/py._package_metadata.pw_pystamp --capture-output --python-dep-list-files python/gen/third_party/pigweed/repo/pw_status/py/py._package_metadata_metadata_path_list.txt -- ../../third_party/pigweed/repo/pw_build/py/pw_build/n op.py
Traceback (most recent call last):
File "../../third_party/pigweed/repo/pw_build/py/pw_build/python_runner.py", line 33, in
from pw_build import gn_resolver
ModuleNotFoundError: No module named 'pw_build'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "../../third_party/pigweed/repo/pw_build/py/pw_build/python_runner.py", line 38, in
import gn_resolver # type: ignore
File "/home/zhang/workplace/matter_all/connectedhomeip/third_party/pigweed/repo/pw_build/py/pw_build/gn_resolver.py", line 319, in

jczhang777 commented 5 hours ago

Build environment: Ubuntu 20.04, Python version: 3.8.10.