[1.3 cherry-pick] Support building chip-tool with python3.12 #34323
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Cherry-pick of #33242.
This updates 2 python packages to versions compatible with python3.12, fixing the following errors when running
./scripts/examples/gn_build_example.sh examples/chip-tool BUILDFOLDER
:pyyaml
6.0 build error:AttributeError: cython_sources
, fixed hereconstruct
import error:File "/tmp/pip-install-ifgk4tul/construct_6d60304f85e249759f6c184ea89f1317/construct/core.py", line 3, in <module> import struct, io, binascii, itertools, collections, pickle, sys, os, tempfile, hashlib, importlib, imp ModuleNotFoundError: No module named 'imp'
this was fixed here, in version
v2.10.57
ofconstruct
. I'm just updating to latest though.Now running
./scripts/examples/gn_build_example.sh examples/chip-tool BUILDFOLDER
succeeds when the host python is python3.12.