You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following Python requirements are not satisfied:
Requirement 'rich-click~=1.9.0' was not met. Installed version: 1.8.9
Error while checking requirement 'packaging'. Package was not found and is required by the application: No package metadata was found for bitarray
No amount of running "install.sh" helps. Everytime it's run, a different package goes missing from ESP-IDF
Not a defect in this repository — the failing check is running against an ESP-IDF v6.1 Python environment
M5Cardputer-UserDemo declares ESP-IDF v4.4.6 (README.md:14, dependencies.lock:18), and it contains no install.sh and no Python build-requirements file. The install.sh in play is ESP-IDF's own, and the check that fails is $IDF_PATH/tools/check_python_dependencies.py. rich-click~=1.9.0 appears in neither this project nor ESP-IDF 4.4.6 (which only requires click>=7.0); it is an ESP-IDF v6.1 constraint (espidf.constraints.v6.1.txt:8, https://dl.espressif.com/dl/esp-idf/espidf.constraints.v6.1.txt). So the environment being checked is a 6.1 environment, not the 4.4.6 toolchain this project is built with.
What the two lines actually mean:
rich-click 1.8.9 vs ~=1.9.0: the environment still has the version installed by an older IDF, i.e. install.sh did not update this environment.
No package metadata was found for bitarray is the real failure. bitarray arrives through esptool → bitstring (pinned <5 in the 6.1 constraints) → bitarray; its .dist-info metadata is missing while the module directory can still be present, so importlib.metadata cannot see it. Re-running the checker cannot repair that.
The changing name in "a different package goes missing" is a checker artifact, not changing damage: the handler at tools/check_python_dependencies.py:176 prints req left over from the loop at line 135, and the requirement order comes from a set, so the printed name differs per process. The package after the colon (bitarray) is the one that actually fails.
Evidence level: host-level test + code-level verification. With IDF v6.1's own checker I reproduced both lines on the host: a clean 6.1 environment passes; after pip install rich-click==1.8.9 it reports the version mismatch; after removing only bitarray's dist-info it reports No package metadata was found for bitarray, with the leading name varying between packaging, bitstring and rich-click~=1.9.0 across 18 runs — one run is byte-identical to yours. Virtual-device/hardware validation does not apply: the failure happens before any firmware exists.
Fix — rebuild the environment instead of re-running install.sh over it, and use the IDF this project declares:
# 1) show which toolchain is really in use
idf.py --version
echo"$IDF_PATH"; git -C "$IDF_PATH" rev-parse --short HEAD
echo"$IDF_PYTHON_ENV_PATH";command -v python; python -V
# 2) remove exactly the env printed above (guarded)
[ -n"${IDF_PYTHON_ENV_PATH:-}" ] &&case"$IDF_PYTHON_ENV_PATH"in*/python_env/*) rm -rf "$IDF_PYTHON_ENV_PATH";; esac# 3) reinstall from the same checkout and re-checkcd"$IDF_PATH"&& ./install.sh esp32s3 # install.bat on Windows. ./export.sh
python -c "import importlib.metadata as m; print(m.version('rich-click'), m.version('bitarray'))"
Not covered: I did not build this project with v6.1 (not the declared toolchain, so further 6.1 errors would be a separate issue), and I did not build with v4.4.6 either — this reply only explains the Python check. If the failure survives step 3, please paste the checker's Diagnostic information: block (IDF_PYTHON_ENV_PATH, Python interpreter used), plus idf.py --version, python -V and the exact command you ran; that separates "wrong $IDF_PATH exported" from "pip writing to a different interpreter".
The documentation says to use v5.4.2
When I tried that there were other libraries that weren't installed.
Please update to the latest version of tools.
Conclusion: for Cardputer ADV the doc is right — that branch pins ESP-IDF v5.4.2 — and the "libraries" it is missing are most likely the five components that the branch does not ship; fetch_repos.py clones them, ESP-IDF does not install them.
My earlier v4.4.6 statement applies to main (original Cardputer). The ADV path runs through the CardputerADV branch: its README.md:15 says ESP-IDF v5.4.2 and dependencies.lock:57 pins idf: 5.4.2. The Cardputer ADV docs page links to that branch, so there is no version conflict unless you cloned main while reading the ADV page. git branch --show-current will tell you which case you are in.
The branch pulls libraries from two places:
Git components that are not committed to the branch.repos.json:1-27 lists five repositories cloned into components/ by python3 ./fetch_repos.py (README.md:7-11): M5GFX 0.2.15, M5Unified 0.2.10, mooncake v2.2.0, mooncake_log v1.3.0, smooth_ui_toolkit v2.4.0. Since components/ is absent from the branch tree, idf.py build before this step cannot resolve those components. From the repo root:
IDF-managed components downloaded from components.espressif.com during configuration (esp-now, esp_tinyusb, tinyusb, radiolib, cmake_utilities in dependencies.lock). If the error names one of these, it is a registry/network failure, not a toolchain-version problem.
If the missing items are Python packages (check_python_dependencies.py), that is the per-IDF-environment issue from my previous comment: 5.4.2's install.sh/export.sh must come from the 5.4.2 checkout, and the shell must not still have 6.1's environment exported.
On "update to the latest version of tools": the 5.4.2 pin is a repository-level toolchain choice, not a local dependency. Changing it is a maintainer-owned port plus a full build/hardware re-validation, it is not something an issue reply can do, and it would not install the missing components. It is also not needed to get past this step.
Evidence level: code-level verification.CardputerADV@9d71903: README.md:7-15, repos.json:1-27, fetch_repos.py (fetch_dependencies()), dependencies.lock:57 and its component list; the branch tree contains no components/. No virtual-device or hardware validation applies: the failure is in dependency setup, before any firmware exists.
Not covered: I did not run the clone and build (no 5.4.2 toolchain in this session), and I cannot name the missing libraries from the description. If it still fails after step 1, paste the exact command and the first ~20 lines of the error, plus idf.py --version, echo "$IDF_PATH", echo "$IDF_PYTHON_ENV_PATH", python -V, and git branch --show-current.
Building from source shouldn't involve changing the tools from within the source.
The project should build using the latest version of the tools. If that's not the case, then you need to include the tools necessary to successfully build the project.
Conclusion: this repository does not modify the toolchain — it declares a toolchain version (ESP-IDF v5.4.2) and fetches its own five components. And "build with the latest tools" does not work today: on ESP-IDF v6.1 the build fails first at configure (the usb component was removed from IDF 6.x) and then inside the pinned M5GFX, so moving to 6.x is an upstream component port, not a README change.
Agreed on the principle — a build should not require mutating an existing ESP-IDF install. It doesn't have to: install v5.4.2 as a separate checkout and export it in that shell; nothing in the source tree edits your tools.
What the source tree actually does:
fetch_repos.py installs project components, not tools. repos.json:1-27 pins M5GFX 0.2.15, M5Unified 0.2.10, mooncake v2.2.0, mooncake_log v1.3.0, smooth_ui_toolkit v2.4.0 into components/, a directory .gitignore excludes. It never touches $IDF_PATH, pip or the compiler, and repos.json has no patch entries. Those pinned tags are exactly "the dependencies needed to build"; they are kept out of the tree as ordinary git dependencies.
ESP-IDF itself is declared, not vendored: README.md:15 (v5.4.2) and dependencies.lock:54-57 (idf: 5.4.2). Shipping a multi-GB SDK inside the repository is not the ESP-IDF model; the declared version plus Espressif's installer is.
main/idf_component.yml only says idf: '>=4.1.0', with no upper bound — which is why a 6.x install is accepted and then fails deep in the build.
Measured on v6.1 (CardputerADV@9d71903, tree otherwise untouched):
Configure fails: Failed to resolve component 'usb' required by component 'espressif__esp_tinyusb': unknown name. IDF 6.x moved usb out of the SDK (its own hint says to add espressif/usb).
After adding only espressif/usb, the build reaches 1164/1515 and fails inside the pinned M5GFX: components/M5GFX/src/lgfx/utility/lgfx_qrcode.h:42: error: 'bool' cannot be defined via 'typedef' — IDF 6.1's GCC 15 defaults to -std=gnu23, where bool is a keyword, and -Werror makes it fatal.
So a 6.x port means bumping M5GFX (and re-checking M5Unified/mooncake for 6.x), adding espressif/usb, then a full build plus device re-validation. That is maintainer work with hardware risk; it cannot be done from an issue reply, and I don't modify upstream repositories. A cheap intermediate fix the maintainers could make: tighten that constraint to idf: '>=5.4.2,<6.0' so an unsupported toolchain fails at configure with a clear version error instead of at line 42 of a compile.
To build now, on the declared toolchain (separate checkout, existing IDF untouched):
Evidence level: code-level verification, build-executed — real ESP-IDF v6.1 configure and compile on macOS arm64, branch CardputerADV@9d7190317d49ff87fa98db345b049ed77c5a1780, no source edits (the second attempt only adds the espressif/usb dependency). Virtual-device and hardware validation do not apply: both failures happen before any firmware image exists.
Not covered: no v5.4.2 toolchain here, so I did not re-measure a build on the declared version — "builds on 5.4.2" remains the documented path, not a fresh result in this round; and the 6.1 attempt stopped at the first failing component, so further 6.x incompatibilities may exist behind it.
Full reproduction, logs and component refs: work record
Thanks for the follow-up. I tested CardputerADV at 9d71903 with ESP-IDF v5.4.2 and successfully built the firmware. With v5.4.2 activated, run these commands from the CardputerADV checkout.
python3 ./fetch_repos.py
idf.py build
Skipping fetch_repos.py reproduced missing smooth_ui_toolkit.h and mooncake.h errors. I also confirmed that v6.1 fails during USB component resolution and then hits an M5GFX compile error after adding the USB component. Supporting v6.1 will require dependency changes. You can keep your v6.1 installation and activate v5.4.2 in a separate shell for this project.
If the v5.4.2 build still fails after fetching the dependencies, could you share the first error and the output of idf.py --version?
Activity
m5agent commentedon Nov 23, 2026
Not a defect in this repository — the failing check is running against an ESP-IDF v6.1 Python environment
M5Cardputer-UserDemodeclares ESP-IDF v4.4.6 (README.md:14,dependencies.lock:18), and it contains noinstall.shand no Python build-requirements file. Theinstall.shin play is ESP-IDF's own, and the check that fails is$IDF_PATH/tools/check_python_dependencies.py.rich-click~=1.9.0appears in neither this project nor ESP-IDF 4.4.6 (which only requiresclick>=7.0); it is an ESP-IDF v6.1 constraint (espidf.constraints.v6.1.txt:8, https://dl.espressif.com/dl/esp-idf/espidf.constraints.v6.1.txt). So the environment being checked is a 6.1 environment, not the 4.4.6 toolchain this project is built with.What the two lines actually mean:
rich-click 1.8.9vs~=1.9.0: the environment still has the version installed by an older IDF, i.e.install.shdid not update this environment.No package metadata was found for bitarrayis the real failure.bitarrayarrives through esptool →bitstring(pinned<5in the 6.1 constraints) →bitarray; its.dist-infometadata is missing while the module directory can still be present, soimportlib.metadatacannot see it. Re-running the checker cannot repair that.The changing name in "a different package goes missing" is a checker artifact, not changing damage: the handler at
tools/check_python_dependencies.py:176printsreqleft over from the loop at line 135, and the requirement order comes from a set, so the printed name differs per process. The package after the colon (bitarray) is the one that actually fails.Evidence level: host-level test + code-level verification. With IDF v6.1's own checker I reproduced both lines on the host: a clean 6.1 environment passes; after
pip install rich-click==1.8.9it reports the version mismatch; after removing onlybitarray'sdist-infoit reportsNo package metadata was found for bitarray, with the leading name varying betweenpackaging,bitstringandrich-click~=1.9.0across 18 runs — one run is byte-identical to yours. Virtual-device/hardware validation does not apply: the failure happens before any firmware exists.Fix — rebuild the environment instead of re-running
install.shover it, and use the IDF this project declares:For this repository, use v4.4.6:
Not covered: I did not build this project with v6.1 (not the declared toolchain, so further 6.1 errors would be a separate issue), and I did not build with v4.4.6 either — this reply only explains the Python check. If the failure survives step 3, please paste the checker's
Diagnostic information:block (IDF_PYTHON_ENV_PATH,Python interpreter used), plusidf.py --version,python -Vand the exact command you ran; that separates "wrong$IDF_PATHexported" from "pip writing to a different interpreter".Full reproduction and evidence: work record
nuncio-bitis commentedon Nov 23, 2026
The documentation says to use v5.4.2
When I tried that there were other libraries that weren't installed.
Please update to the latest version of tools.
m5agent commentedon Nov 23, 2026
Conclusion: for Cardputer ADV the doc is right — that branch pins ESP-IDF v5.4.2 — and the "libraries" it is missing are most likely the five components that the branch does not ship;
fetch_repos.pyclones them, ESP-IDF does not install them.My earlier v4.4.6 statement applies to
main(original Cardputer). The ADV path runs through theCardputerADVbranch: itsREADME.md:15says ESP-IDF v5.4.2 anddependencies.lock:57pinsidf: 5.4.2. The Cardputer ADV docs page links to that branch, so there is no version conflict unless you clonedmainwhile reading the ADV page.git branch --show-currentwill tell you which case you are in.The branch pulls libraries from two places:
repos.json:1-27lists five repositories cloned intocomponents/bypython3 ./fetch_repos.py(README.md:7-11): M5GFX0.2.15, M5Unified0.2.10, mooncakev2.2.0, mooncake_logv1.3.0, smooth_ui_toolkitv2.4.0. Sincecomponents/is absent from the branch tree,idf.py buildbefore this step cannot resolve those components. From the repo root:python3 ./fetch_repos.py ls components # expect M5GFX M5Unified mooncake mooncake_log smooth_ui_toolkitdependencies.lock). If the error names one of these, it is a registry/network failure, not a toolchain-version problem.If the missing items are Python packages (
check_python_dependencies.py), that is the per-IDF-environment issue from my previous comment: 5.4.2'sinstall.sh/export.shmust come from the 5.4.2 checkout, and the shell must not still have 6.1's environment exported.On "update to the latest version of tools": the 5.4.2 pin is a repository-level toolchain choice, not a local dependency. Changing it is a maintainer-owned port plus a full build/hardware re-validation, it is not something an issue reply can do, and it would not install the missing components. It is also not needed to get past this step.
Evidence level: code-level verification.
CardputerADV@9d71903:README.md:7-15,repos.json:1-27,fetch_repos.py(fetch_dependencies()),dependencies.lock:57and its component list; the branch tree contains nocomponents/. No virtual-device or hardware validation applies: the failure is in dependency setup, before any firmware exists.Not covered: I did not run the clone and build (no 5.4.2 toolchain in this session), and I cannot name the missing libraries from the description. If it still fails after step 1, paste the exact command and the first ~20 lines of the error, plus
idf.py --version,echo "$IDF_PATH",echo "$IDF_PYTHON_ENV_PATH",python -V, andgit branch --show-current.nuncio-bitis commentedon Nov 23, 2026
Building from source shouldn't involve changing the tools from within the source.
The project should build using the latest version of the tools. If that's not the case, then you need to include the tools necessary to successfully build the project.
m5agent commentedon Nov 23, 2026
Conclusion: this repository does not modify the toolchain — it declares a toolchain version (ESP-IDF v5.4.2) and fetches its own five components. And "build with the latest tools" does not work today: on ESP-IDF v6.1 the build fails first at configure (the
usbcomponent was removed from IDF 6.x) and then inside the pinned M5GFX, so moving to 6.x is an upstream component port, not a README change.Agreed on the principle — a build should not require mutating an existing ESP-IDF install. It doesn't have to: install v5.4.2 as a separate checkout and export it in that shell; nothing in the source tree edits your tools.
What the source tree actually does:
fetch_repos.pyinstalls project components, not tools.repos.json:1-27pins M5GFX0.2.15, M5Unified0.2.10, mooncakev2.2.0, mooncake_logv1.3.0, smooth_ui_toolkitv2.4.0intocomponents/, a directory.gitignoreexcludes. It never touches$IDF_PATH, pip or the compiler, andrepos.jsonhas nopatchentries. Those pinned tags are exactly "the dependencies needed to build"; they are kept out of the tree as ordinary git dependencies.README.md:15(v5.4.2) anddependencies.lock:54-57(idf: 5.4.2). Shipping a multi-GB SDK inside the repository is not the ESP-IDF model; the declared version plus Espressif's installer is.main/idf_component.ymlonly saysidf: '>=4.1.0', with no upper bound — which is why a 6.x install is accepted and then fails deep in the build.Measured on v6.1 (
CardputerADV@9d71903, tree otherwise untouched):Failed to resolve component 'usb' required by component 'espressif__esp_tinyusb': unknown name.IDF 6.x movedusbout of the SDK (its own hint says to addespressif/usb).espressif/usb, the build reaches1164/1515and fails inside the pinned M5GFX:components/M5GFX/src/lgfx/utility/lgfx_qrcode.h:42: error: 'bool' cannot be defined via 'typedef'— IDF 6.1's GCC 15 defaults to-std=gnu23, whereboolis a keyword, and-Werrormakes it fatal.So a 6.x port means bumping M5GFX (and re-checking M5Unified/mooncake for 6.x), adding
espressif/usb, then a full build plus device re-validation. That is maintainer work with hardware risk; it cannot be done from an issue reply, and I don't modify upstream repositories. A cheap intermediate fix the maintainers could make: tighten that constraint toidf: '>=5.4.2,<6.0'so an unsupported toolchain fails at configure with a clear version error instead of at line 42 of a compile.To build now, on the declared toolchain (separate checkout, existing IDF untouched):
Evidence level: code-level verification, build-executed — real ESP-IDF v6.1 configure and compile on macOS arm64, branch
CardputerADV@9d7190317d49ff87fa98db345b049ed77c5a1780, no source edits (the second attempt only adds theespressif/usbdependency). Virtual-device and hardware validation do not apply: both failures happen before any firmware image exists.Not covered: no v5.4.2 toolchain here, so I did not re-measure a build on the declared version — "builds on 5.4.2" remains the documented path, not a fresh result in this round; and the 6.1 attempt stopped at the first failing component, so further 6.x incompatibilities may exist behind it.
Full reproduction, logs and component refs: work record
Forairaaaaa commentedon Dec 1, 2026
Thanks for the follow-up. I tested
CardputerADVat9d71903with ESP-IDF v5.4.2 and successfully built the firmware. With v5.4.2 activated, run these commands from theCardputerADVcheckout.Skipping
fetch_repos.pyreproduced missingsmooth_ui_toolkit.handmooncake.herrors. I also confirmed that v6.1 fails during USB component resolution and then hits an M5GFX compile error after adding the USB component. Supporting v6.1 will require dependency changes. You can keep your v6.1 installation and activate v5.4.2 in a separate shell for this project.If the v5.4.2 build still fails after fetching the dependencies, could you share the first error and the output of
idf.py --version?