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

python error while compiling #39

Open
Shidari4ld opened this issue Feb 17, 2024 · 1 comment
Open

python error while compiling #39

Shidari4ld opened this issue Feb 17, 2024 · 1 comment

Comments

@Shidari4ld
Copy link

"ninja: Entering directory `out/Release-x64'
[1/1189] link libexpat.a
FAILED: libexpat.a
python "/home/shi6/deps/skia/gn/rm.py" "libexpat.a" && ar rcs libexpat.a @libexpat.a.rsp
/bin/sh: 1: python: not found
[6/1189] compile ../../third_party/externals/dng_sdk/source/dng_mosaic_info.cpp
ninja: build stopped: subcommand failed.
" i tried a lot of stuff but can't fix it

@nmoore771
Copy link

I'm having this too. A similar issue arose during the compilation of aseprite (prior to me finding out about the skia dependency), I was able to solve that by aliasing python3 as python in .bashrc

For this one, the error seems to indicate that /bin/sh is having the same problem, but it's more of a roundabout solution. Using this stackoverflow post : (https://stackoverflow.com/questions/39621880/is-there-an-alternative-for-bashrc-for-bin-sh) I successfully exported ENV inside .bashrc to use a new file I made as a startup script in which I also aliased python3 as python.
I tested this, and the alias worsk but unfortunately this didn't fix the issue with ninja.

I'm running Linux Mint 22.X, and I'm sure that this problem will be seen anywhere python is invoked with "python3" instead of "python."

I see this issue is over a year old, but it seems like it would block installation on a large number of Linux machines.

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

2 participants