-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[Build] lighting-app/python example build is broken #29508
Comments
Sounds like something in that build script is not doing the necessary codegen properly or not setting up the right include paths.... @markus-becker-tridonic-com can you take a look, please? |
A quick work-around I worked on some time back (e6f610b):
|
I have tried this change and it seems to compile for me now. Thanks |
we could give an additional argument python_device=true at https://github.com/project-chip/connectedhomeip/blob/master/scripts/build_python_device.sh#L100C170-L100C185 and check for that in Additionally, it would be good to add .github/workflows/examples-python-device.yaml. @bzbarsky-apple @jamesharrow would that work for you? |
I'm not sure what python_device is or why it needs special handling here. Please check with @andy31415 what this code is supposed to be doing and why (and in particular, which CHIPClusters.h it should be picking up). |
It should pick up the ChipClusters.h from lighting-app. @andy31415 would you have a hint here? |
Honestly, we should just remove CHIPClusters.h; it's pretty useless at this point. I'll do a PR to stop using it in core src/app code. |
Python lighting-app was broken (see project-chip#29508) and got fixed in project-chip#29772. Let's make sure that it does not break again by compiling it in CI. Signed-off-by: Markus Becker <[email protected]>
Python lighting-app was broken (see #29508) and got fixed in #29772. Let's make sure that it does not break again by compiling it in CI. Signed-off-by: Markus Becker <[email protected]>
@jamesharrow i think this issue can be closed. would you verify? |
Python lighting-app was broken (see project-chip#29508) and got fixed in project-chip#29772. Let's make sure that it does not break again by compiling it in CI. Signed-off-by: Markus Becker <[email protected]>
Python lighting-app was broken (see project-chip#29508) and got fixed in project-chip#29772. Let's make sure that it does not break again by compiling it in CI. Signed-off-by: Markus Becker <[email protected]>
Build issue(s)
I tried to build the lighting.py example following the https://github.com/project-chip/connectedhomeip/tree/master/examples/lighting-app/python readme
C++ compilation bombs out with an error trying to include:
#include <zap-generated/CHIPClusters.h>
in
src/app/clusters/ota-requestor/DefaultOTARequestor.cpp
Platform
python
Anything else?
I managed to get it to compile, by modifying DefaultOTARequestor.cpp by making the follow changes (although I'm not confident that you would implement it this way in master):
The text was updated successfully, but these errors were encountered: