Skip to content
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

ESP-Matter install is broken (CON-1067) #855

Closed
S-A-M-J opened this issue Mar 1, 2024 · 11 comments
Closed

ESP-Matter install is broken (CON-1067) #855

S-A-M-J opened this issue Mar 1, 2024 · 11 comments

Comments

@S-A-M-J
Copy link

S-A-M-J commented Mar 1, 2024

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

@github-actions github-actions bot changed the title ESP-Matter install is broken ESP-Matter install is broken (CON-1067) Mar 1, 2024
@sayondeep
Copy link
Contributor

sayondeep commented Mar 1, 2024

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

@S-A-M-J
Copy link
Author

S-A-M-J commented Mar 1, 2024

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
Copy link
Author

S-A-M-J commented Mar 3, 2024

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.

@FHFS
Copy link

FHFS commented Mar 12, 2024

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

@MohammadAbbasi76
Copy link

MohammadAbbasi76 commented Mar 26, 2024

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.

@shubhamdp
Copy link
Contributor

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

@hamslabs
Copy link

hamslabs commented May 6, 2024

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

@MohammadAbbasi76
Copy link

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

@m0rt4l1n
Copy link

m0rt4l1n commented May 17, 2024

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

@hamslabs
Copy link

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

@shubhamdp
Copy link
Contributor

Python3.13 version related fixes(a6c9e5b and e09e20b) are merged in main, so this can be closed!

@dhrishi dhrishi closed this as completed Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants