Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.3 cherry-pick] Support building chip-tool with python3.12 #34323

Conversation

agners
Copy link
Contributor

@agners agners commented Jul 13, 2024

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:

  1. pyyaml 6.0 build error: AttributeError: cython_sources, fixed here

  2. construct 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 of construct. 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.

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`:

1. `pyyaml` 6.0 build error: `AttributeError: cython_sources`, fixed
   [here](yaml/pyyaml#702)
2. `construct` 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](construct/construct@91cc0c6),
   in version `v2.10.57` of `construct`. 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.
Copy link

PR #34323: Size comparison from 39cd2f1 to f28e1ff

Full report (0 builds for )
platform target config section 39cd2f1 f28e1ff change % change

@yufengwangca yufengwangca merged commit 9d1963d into project-chip:v1.3-branch Jul 14, 2024
68 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants