Skip to content

Commit 7dbf446

Browse files
raju-applenoahp
andauthored
Support building chip-tool with python3.12 (#33242) (#33770)
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. Co-authored-by: Noah Pendleton <2538614+noahp@users.noreply.github.com>
1 parent ba510d4 commit 7dbf446

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

scripts/setup/constraints.txt

+2-3
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ colorama==0.4.6
4949
# west
5050
coloredlogs==15.0.1
5151
# via -r requirements.all.txt
52-
construct==2.10.54
52+
construct==2.10.70
5353
# via
5454
# -r requirements.esp32.txt
5555
# esp-coredump
@@ -208,7 +208,7 @@ python-socketio==4.6.1
208208
# via -r requirements.esp32.txt
209209
pytz==2022.7.1
210210
# via pandas
211-
pyyaml==6.0
211+
pyyaml==6.0.1
212212
# via
213213
# esptool
214214
# idf-component-manager
@@ -296,4 +296,3 @@ setuptools==68.0.0
296296
# Higher versions depend on proto-plus, which break
297297
# nanopb code generation (due to name conflict of the 'proto' module)
298298
google-api-core==2.17.0
299-

scripts/setup/requirements.esp32.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pygdbmi<=0.9.0.2
88
reedsolo>=1.5.3,<=1.5.4
99
bitstring>=3.1.6,<4
1010
ecdsa>=0.16.0
11-
construct==2.10.54
11+
construct>=2.10.70
1212
python-socketio<5
1313
itsdangerous<2.1 ; python_version < "3.11"
1414
esp_idf_monitor==1.1.1

0 commit comments

Comments
 (0)