[+] Building 1.7s (24/46) docker:default => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 11.22kB 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load metadata for docker.io/library/ubuntu:22.04 0.3s => [stage-2 1/27] FROM docker.io/library/ubuntu:22.04@sha256:e6173d4dc55e76b87c4af8db8821b1feae4146dd47341e4d431118c7dd060a74 0.0s => CACHED [stage-2 2/27] RUN ln -snf /usr/share/zoneinfo/Etc/UTC /etc/localtime && echo Etc/UTC > /etc/timezone 0.0s => CACHED [stage-2 3/27] RUN apt-get update -y 0.0s => CACHED [stage-2 4/27] RUN apt-get install -y libssl-dev libdbus-1-dev libglib2.0-dev libavahi-client-dev avahi-utils iproute2 libcairo2-dev libgirepository1.0-dev python3-pip 0.0s => CACHED [stage-2 5/27] WORKDIR /root/ 0.0s => CACHED [chip-build-cert 2/14] RUN case linux/amd64 in "linux/amd64") echo "Building for linux/amd64" ;; "linux/arm64") echo "Building for linux/arm64" ;; *) if 0.0s => CACHED [chip-build-cert 3/14] RUN set -x && apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -fy autoconf automake bison bridge-utils clang clan 0.0s => CACHED [chip-build-cert 4/14] RUN case linux/amd64 in "linux/amd64") set -x && (cd /tmp && wget --progress=dot:giga https://github.com/Kitware/CMake/releases/download/v3.19.3/c 0.0s => CACHED [chip-build-cert 5/14] RUN set -x && DEBIAN_FRONTEND=noninteractive apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y libgirepository1.0-dev && DEBIAN_FR 0.0s => CACHED [chip-build-cert 6/14] RUN set -x && pip3 install attrs coloredlogs PyGithub pygit future portpicker mobly click cxxfilt ghapi pandas tabulate && : # last line 0.0s => CACHED [chip-build-cert 7/14] RUN set -x && git clone https://gn.googlesource.com/gn && cd gn && python3 build/gen.py && ninja -C out && cp out/gn /usr/local/bin && cd 0.0s => CACHED [chip-build-cert 8/14] RUN set -x && git clone https://github.com/google/bloaty.git && mkdir -p bloaty/build && cd bloaty/build && cmake ../ && make -j8 && make 0.0s => CACHED [chip-build-cert 9/14] RUN mkdir /root/connectedhomeip 0.0s => CACHED [chip-build-cert 10/14] RUN git clone https://github.com/project-chip/connectedhomeip.git /root/connectedhomeip 0.0s => CACHED [chip-build-cert 11/14] WORKDIR /root/connectedhomeip/ 0.0s => CACHED [chip-build-cert 12/14] RUN git checkout 85a48aabbc4e43c433aa4b2d35b2817d611946de 0.0s => CACHED [chip-build-cert 13/14] RUN ./scripts/checkout_submodules.py --allow-changing-global-git-config --shallow --platform linux 0.0s => CACHED [chip-build-cert 14/14] RUN bash scripts/bootstrap.sh 0.0s => CACHED [chip-build-cert-bins 1/3] RUN git rev-parse HEAD > /root/.sdk-sha-version 0.0s => CACHED [chip-build-cert-bins 2/3] RUN case linux/amd64 in "linux/amd64") set -x && source scripts/activate.sh && scripts/build/build_examples.py --target linux-x64-chip-tool 0.0s => ERROR [chip-build-cert-bins 3/3] RUN source scripts/activate.sh && scripts/build_python.sh -m platform -d true 1.4s ------ > [chip-build-cert-bins 3/3] RUN source scripts/activate.sh && scripts/build_python.sh -m platform -d true: 0.231 0.236 WELCOME TO... 0.236 0.236 █ 0.236 █ 0.236 ▄ █ ▄ █ █ 0.236 ▀▀█████▀▀ ▄▀▀▀▄ ▄▀▀▀▄ ▄▀▀▀▀▄█ ▀▀█▀▀▀▀▀█▀▀ ▄▀▀▀▀▄ ▄▀▀ 0.236 ▀█▄ ▄█▀ █ █ █ █ █ █ █ █▄▄▄▄▄▄█ █ 0.236 ▀█▄ ▄█▀ █ █ █ █ █ █ █ █ █ 0.236 ▄██▀▀█ █▀▀██▄ █ █ █ ▀▄▄▄▄▀█ ▀▄▄ ▀▄▄ ▀▄▄▄▄▀ █ 0.236 ▀▀ █ █ ▀▀ 0.236 0.236 ACTIVATOR! This sets your shell environment variables. 0.236 0.237 Activating environment (setting environment variables): 0.238 0.238 Setting environment variables for CIPD package manager...done 0.266 Setting environment variables for Project actions........skipped 0.266 Setting environment variables for Python environment.....done 0.271 Setting environment variables for pw packages............skipped 0.272 Setting environment variables for Host tools.............done 0.276 0.276 Checking the environment: 0.276 0.651 Traceback (most recent call last): 0.651 File "/root/connectedhomeip/.environment/pigweed-venv/lib/python3.10/site-packages/pw_cli/plugins.py", line 96, in from_name 0.652 module = importlib.import_module(module_name) 0.652 File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module 0.652 return _bootstrap._gcd_import(name[level:], package, level) 0.652 File "", line 1050, in _gcd_import 0.652 File "", line 1027, in _find_and_load 0.652 File "", line 1006, in _find_and_load_unlocked 0.652 File "", line 688, in _load_unlocked 0.652 File "", line 883, in exec_module 0.652 File "", line 241, in _call_with_frames_removed 0.652 File "/root/connectedhomeip/.environment/pigweed-venv/lib/python3.10/site-packages/pw_watch/watch.py", line 88, in 0.652 import pw_console.python_logging 0.652 File "/root/connectedhomeip/.environment/pigweed-venv/lib/python3.10/site-packages/pw_console/__init__.py", line 16, in 0.652 from pw_console.embed import PwConsoleEmbed 0.652 File "/root/connectedhomeip/.environment/pigweed-venv/lib/python3.10/site-packages/pw_console/embed.py", line 23, in 0.652 from pw_console.console_app import ConsoleApp 0.652 File "/root/connectedhomeip/.environment/pigweed-venv/lib/python3.10/site-packages/pw_console/console_app.py", line 59, in 0.652 from ptpython.layout import CompletionVisualisation # type: ignore 0.652 File "/root/connectedhomeip/.environment/pigweed-venv/lib/python3.10/site-packages/ptpython/__init__.py", line 3, in 0.652 from .repl import embed 0.652 File "/root/connectedhomeip/.environment/pigweed-venv/lib/python3.10/site-packages/ptpython/repl.py", line 23, in 0.652 from prompt_toolkit.formatted_text import OneStyleAndTextTuple 0.652 ImportError: cannot import name 'OneStyleAndTextTuple' from 'prompt_toolkit.formatted_text' (/root/connectedhomeip/.environment/pigweed-venv/lib/python3.10/site-packages/prompt_toolkit/formatted_text/__init__.py) 0.652 0.652 The above exception was the direct cause of the following exception: 0.652 0.652 Traceback (most recent call last): 0.652 File "/root/connectedhomeip/.environment/pigweed-venv/bin/pw", line 8, in 0.652 sys.exit(main()) 0.652 File "/root/connectedhomeip/.environment/pigweed-venv/lib/python3.10/site-packages/pw_cli/__main__.py", line 43, in main 0.653 pw_command_plugins.register() 0.653 File "/root/connectedhomeip/.environment/pigweed-venv/lib/python3.10/site-packages/pw_cli/pw_command_plugins.py", line 65, in register 0.653 _register_builtin_plugins(plugin_registry) 0.653 File "/root/connectedhomeip/.environment/pigweed-venv/lib/python3.10/site-packages/pw_cli/pw_command_plugins.py", line 43, in _register_builtin_plugins 0.653 registry.register_by_name('watch', 'pw_watch.watch', 'main') 0.653 File "/root/connectedhomeip/.environment/pigweed-venv/lib/python3.10/site-packages/pw_cli/plugins.py", line 303, in register_by_name 0.653 Plugin.from_name(name, module_name, member_name, source) 0.653 File "/root/connectedhomeip/.environment/pigweed-venv/lib/python3.10/site-packages/pw_cli/plugins.py", line 104, in from_name 0.653 raise Error(f'Failed to import module "{module_name}"') from err 0.653 pw_cli.plugins.Error: Failed to import module "pw_watch.watch" (ImportError: cannot import name 'OneStyleAndTextTuple' from 'prompt_toolkit.formatted_text' (/root/connectedhomeip/.environment/pigweed-venv/lib/python3.10/site-packages/prompt_toolkit/formatted_text/__init__.py)) 0.742 Error during activate--see messages above. 0.770 Input values: chip_detail_logging = true , chip_mdns = "platform", enable_pybindings = false, chip_case_retry_delta="", pregen_dir="" 0.813 0.813 WELCOME TO... 0.814 0.814 █ 0.814 █ 0.814 ▄ █ ▄ █ █ 0.814 ▀▀█████▀▀ ▄▀▀▀▄ ▄▀▀▀▄ ▄▀▀▀▀▄█ ▀▀█▀▀▀▀▀█▀▀ ▄▀▀▀▀▄ ▄▀▀ 0.814 ▀█▄ ▄█▀ █ █ █ █ █ █ █ █▄▄▄▄▄▄█ █ 0.814 ▀█▄ ▄█▀ █ █ █ █ █ █ █ █ █ 0.814 ▄██▀▀█ █▀▀██▄ █ █ █ ▀▄▄▄▄▀█ ▀▄▄ ▀▄▄ ▀▄▄▄▄▀ █ 0.814 ▀▀ █ █ ▀▀ 0.815 0.815 ACTIVATOR! This sets your shell environment variables. 0.815 0.816 Activating environment (setting environment variables): 0.816 0.816 Setting environment variables for CIPD package manager...done 0.842 Setting environment variables for Project actions........skipped 0.842 Setting environment variables for Python environment.....done 0.845 Setting environment variables for pw packages............skipped 0.846 Setting environment variables for Host tools.............done 0.850 0.850 Checking the environment: 0.850 1.234 Traceback (most recent call last): 1.235 File "/root/connectedhomeip/.environment/pigweed-venv/lib/python3.10/site-packages/pw_cli/plugins.py", line 96, in from_name 1.235 module = importlib.import_module(module_name) 1.235 File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module 1.235 return _bootstrap._gcd_import(name[level:], package, level) 1.235 File "", line 1050, in _gcd_import 1.235 File "", line 1027, in _find_and_load 1.235 File "", line 1006, in _find_and_load_unlocked 1.235 File "", line 688, in _load_unlocked 1.235 File "", line 883, in exec_module 1.235 File "", line 241, in _call_with_frames_removed 1.235 File "/root/connectedhomeip/.environment/pigweed-venv/lib/python3.10/site-packages/pw_watch/watch.py", line 88, in 1.236 import pw_console.python_logging 1.236 File "/root/connectedhomeip/.environment/pigweed-venv/lib/python3.10/site-packages/pw_console/__init__.py", line 16, in 1.236 from pw_console.embed import PwConsoleEmbed 1.236 File "/root/connectedhomeip/.environment/pigweed-venv/lib/python3.10/site-packages/pw_console/embed.py", line 23, in 1.236 from pw_console.console_app import ConsoleApp 1.236 File "/root/connectedhomeip/.environment/pigweed-venv/lib/python3.10/site-packages/pw_console/console_app.py", line 59, in 1.236 from ptpython.layout import CompletionVisualisation # type: ignore 1.236 File "/root/connectedhomeip/.environment/pigweed-venv/lib/python3.10/site-packages/ptpython/__init__.py", line 3, in 1.236 from .repl import embed 1.236 File "/root/connectedhomeip/.environment/pigweed-venv/lib/python3.10/site-packages/ptpython/repl.py", line 23, in 1.236 from prompt_toolkit.formatted_text import OneStyleAndTextTuple 1.236 ImportError: cannot import name 'OneStyleAndTextTuple' from 'prompt_toolkit.formatted_text' (/root/connectedhomeip/.environment/pigweed-venv/lib/python3.10/site-packages/prompt_toolkit/formatted_text/__init__.py) 1.236 1.236 The above exception was the direct cause of the following exception: 1.236 1.236 Traceback (most recent call last): 1.236 File "/root/connectedhomeip/.environment/pigweed-venv/bin/pw", line 8, in 1.236 sys.exit(main()) 1.236 File "/root/connectedhomeip/.environment/pigweed-venv/lib/python3.10/site-packages/pw_cli/__main__.py", line 43, in main 1.236 pw_command_plugins.register() 1.236 File "/root/connectedhomeip/.environment/pigweed-venv/lib/python3.10/site-packages/pw_cli/pw_command_plugins.py", line 65, in register 1.236 _register_builtin_plugins(plugin_registry) 1.236 File "/root/connectedhomeip/.environment/pigweed-venv/lib/python3.10/site-packages/pw_cli/pw_command_plugins.py", line 43, in _register_builtin_plugins 1.236 registry.register_by_name('watch', 'pw_watch.watch', 'main') 1.236 File "/root/connectedhomeip/.environment/pigweed-venv/lib/python3.10/site-packages/pw_cli/plugins.py", line 303, in register_by_name 1.237 Plugin.from_name(name, module_name, member_name, source) 1.237 File "/root/connectedhomeip/.environment/pigweed-venv/lib/python3.10/site-packages/pw_cli/plugins.py", line 104, in from_name 1.237 raise Error(f'Failed to import module "{module_name}"') from err 1.237 pw_cli.plugins.Error: Failed to import module "pw_watch.watch" (ImportError: cannot import name 'OneStyleAndTextTuple' from 'prompt_toolkit.formatted_text' (/root/connectedhomeip/.environment/pigweed-venv/lib/python3.10/site-packages/prompt_toolkit/formatted_text/__init__.py)) ------ Dockerfile:243 -------------------- 241 | esac 242 | 243 | >>> RUN source scripts/activate.sh && scripts/build_python.sh -m platform -d true 244 | 245 | # Stage 3: Copy relevant cert bins to a minimal image to reduce size. -------------------- ERROR: failed to solve: process "/bin/bash -c source scripts/activate.sh && scripts/build_python.sh -m platform -d true" did not complete successfully: exit code: 1