-
Notifications
You must be signed in to change notification settings - Fork 161
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
Installation failed, unclear why (FAILED: python/gen/matter_build_venv/compiled_requirements.txt) (CON-1215) #977
Comments
I also had to downgrade python 3.12 to 3.9.2 to get past issues installing esp-matter on an M1 Mac. |
Also would like to add incase someone sees this and still is getting the issue even though you have 3.9. May need to install Rosetta 2 if you don't already have it. Installing Rosetta fixed it for me. |
@JetForMe can you please provide the complete failure logs and what python version are you using? |
Oh I'm sorry, I didn't realize I had the wrong link in there. I've edited the original comment, but you can find it here: https://gist.github.com/JetForMe/f410ac9057d2a6c0990f2f53c04c6915
|
Espressif, please fix this. Having to downgrade python to 3.9 is not a solution. Edit: this seems to be an old known issue in the upstream matter library. Which, in turn, is because of a breaking change in Python 3.11. In the meantime, this awful workaround in diff --git a/tools/detect_python.sh b/tools/detect_python.sh
index bc3e65c59a..f98ab37bac 100644
--- a/tools/detect_python.sh
+++ b/tools/detect_python.sh
@@ -12,7 +12,7 @@ OLDEST_PYTHON_SUPPORTED_MINOR=8
ESP_PYTHON=python
-for p_cmd in python3 python python3.8 python3.9 python3.10 python3.11 python3.12; do
+for p_cmd in python3.8 python3.9 python3.10 python3.11 python3.12 python3; do
$p_cmd --version >/dev/null 2>&1 || continue
echo "Checking \"$p_cmd\" ..." |
Another workaround that worked for me is: echo "cython<3" > /tmp/constraint.txt
export PIP_CONSTRAINT=/tmp/constraint.txt
cd esp-matter
./install.sh Note:
Laters, IT WORKED!!! I was able to build the |
@JetForMe @retsyx Can you folks please give it a try on release/v1.3 branch. |
Yes, it seems to work. I followed the instructions here, except I did the following:
Not sure why |
@JetForMe May I ask what is your mac os version ?
Do you have any idea about that ? |
Huh, not really. It seems to have failed to build |
I see. Thanks for your reply @JetForMe |
@JetForMe We are in the process of updating the connectedhomeip submodule, and it will be done soon... |
The connectedhomeip submodule is updated |
Describe the bug
I'm running through the installation instructions for Matter support, and ran into an error I don't understand. You can see the lengthy transcript here. Excerpt:
Environment
Any additional details
...
The text was updated successfully, but these errors were encountered: