esp-matter icon indicating copy to clipboard operation
esp-matter copied to clipboard

ESP-Matter install is broken (CON-1067)

Open S-A-M-J opened this issue 11 months ago • 10 comments

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

logs.pdf

S-A-M-J avatar Mar 01 '24 13:03 S-A-M-J

@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.

sayondeep avatar Mar 01 '24 13:03 sayondeep

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

S-A-M-J avatar Mar 01 '24 17:03 S-A-M-J

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.

S-A-M-J avatar Mar 03 '24 22:03 S-A-M-J

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

FHFS avatar Mar 12 '24 15:03 FHFS

Hello,

If you encounter issues during installation while using Matter deployment and face Python environment problems, such as

Screenshot from 2024-03-26 12-57-09

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 avatar Mar 26 '24 10:03 MohammadAbbasi76

@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?

shubhamdp avatar May 06 '24 09:05 shubhamdp

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:

image

hamslabs avatar May 06 '24 22:05 hamslabs

shubhamdpI use Ubuntu 23.10 and I make it fix with virtual environment using venv or virtualenv in python , Screenshot from 2024-05-07 10-38-24

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

MohammadAbbasi76 avatar May 07 '24 07:05 MohammadAbbasi76

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 :) )

m0rt4l1n avatar May 17 '24 19:05 m0rt4l1n

I tried the workaround that @m0rt4l1n suggested and it worked on my M2 MacBook Air using the main branch. Thanks much.

hamslabs avatar May 17 '24 23:05 hamslabs