esp-matter
esp-matter copied to clipboard
ESP-Matter install is broken (CON-1067)
When trying to do a fresh install i get an error in the install.sh script. The problem is also exactly described here: esp-forum Unfortunately with no answer since end of January. I have followed the guide here: guide. Furthermore i have installed all prerequisites and cloned the repo completely (so not shallow). I have also tried with a virtual python environment running python 3.9 but get the same issue.
Environment
- Host Machine OS: Mac OS sonoma 14.1.1
- Python version: 3.12
@S-A-M-J Assuming your problem is exactly same as this. Can you please try to install esp-matter in some other directory and not inside the espressif tools ( /Users/username/.espressif/) directory.
Ok sry apparently it's not exactly the same issue. My install try was as visible in the logs not within the espressif toolchain directory but rather in home/esp next to esp-idf
So i installed on a fresh ubuntu system with python 3.8 and that worked. So it must be a mac or python>=3.8 version issue. I assume it is a mac related issue.
I'd recommend the esp-matter container It saves a lot of time setting things up. You don't even need to init the connectedhomeip repos. The python virtual env is already set up properly
Hello,
If you encounter issues during installation while using Matter deployment and face Python environment problems, such as
or similar issues, ensure you have Python 3.11 installed as a first step. If the problem persists, proceed to the directory /.espressif/esp-matter/connectedhomeip/connectedhomeip/scripts and execute bootstrap.sh. This step might resolve the issue.
@MohammadAbbasi76 I think you may have missed sourcing $IDF_PATH/export.sh
, can you please run source $IDF_PATH/export.sh
and try running the command again?
I'd seeing the same issue as @S-A-M-J on my M2 MacBook Air. The output I see is virtually the same. Is there any more verbose trace that would provide more info for you folks?
Also @FHFS, that docker image doesn't work either. I see this error dialog:
shubhamdpI use Ubuntu 23.10 and I make it fix with virtual environment using venv or virtualenv in python ,
sudo apt install python3-venv
python3 -m venv .venv
this link that you can use it .
first step in make virtual environment for python after that run ./install.sh
Try changing
"platforms": ["mac-amd64", "windows-amd64"],
"tags": ["version:[email protected]"]
To
"platforms": ["mac-amd64", "windows-amd64","mac-arm64"],
"tags": ["version:[email protected]"]
in file connectedhomeip/connectedhomeip/scripts/setup/python.json
(I am on branch releases/v1.2
and this worked for me on M2 Pro)
(I checked here for available tags with mac-arm64
versions)
(also don't forget to clean connectedhomeip/connectedhomeip/.environment
before :) )
I tried the workaround that @m0rt4l1n suggested and it worked on my M2 MacBook Air using the main branch. Thanks much.