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

source scripts/activate.sh: FileNotFoundError: [Errno 2] No such file or directory: 'gn' #23069

Closed
venlx opened this issue Oct 7, 2022 · 8 comments

Comments

@venlx
Copy link

venlx commented Oct 7, 2022

Reproduction steps

Following the Guide on https://github.com/project-chip/connectedhomeip/blob/master/docs/guides/BUILDING.md
1. git clone --recurse-submodules [email protected]:project-chip/connectedhomeip.git
2. sudo apt-get install git gcc g++ pkg-config libssl-dev libdbus-1-dev \
     libglib2.0-dev libavahi-client-dev ninja-build python3-venv python3-dev \
     python3-pip unzip libgirepository1.0-dev libcairo2-dev libreadline-dev
3. sudo apt-get install pi-bluetooth avahi-utils
4. cd ./connectedhomeip
5. source scripts/activate.sh

Bug prevalence

Whenever i do this

GitHub hash of the SDK that was being used

561d23d

Platform

raspi

Platform Version(s)

No response

Anything else?

image

@bzbarsky-apple
Copy link
Contributor

@venlx Did the ninja-build package install gn? Did it install it somewhere in your PATH?

@phbasler
Copy link
Contributor

phbasler commented Oct 7, 2022

@bzbarsky-apple I have the same problem on my pi 4. Ninja-build did add nothing to PATH and gn is not found.
But I read in the raspi install instruction that you recommend ubuntu server as an OS. My pi has the latest raspberry OS (debian bullseye) installed. Do you know if there are any packages that need to be installed extra?

Edit: So you need to built gn by yourself and add the gn/out directory to PATH. It is not pre-built for debian.
But after doing that, I get problems with ninja.

@bzbarsky-apple
Copy link
Contributor

I'm a little surprised bootstrap requires gn, since one of its jobs is to install the cipd gn (and then activate adds that to the PATH)... @mspang do you know how this is supposed to work?

@phbasler
Copy link
Contributor

@bzbarsky-apple Are there any updates on this? Or do you have an idea how one could set up a workaround for this?

@RedPoppies
Copy link

@bzbarsky-apple
image
I've been stuck here for a long time.
How to solve this problem.

@bzbarsky-apple
Copy link
Contributor

I have no idea. If I knew, I would have said up above. You need to get the attention of someone who knows how bootstrap/activate are supposed to work... @andy31415

@phbasler
Copy link
Contributor

@bzbarsky-apple @andy31415 @mspang
I got a tip on discord and tested it with a 64bit raspberry os lite. There it works without a problem. On my previous test I still had a 32 bit Raspberry OS.

@tunm1228
Copy link

I am also facing the same error. Please help me?
image

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

5 participants