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

linker-wrapper.sh fails on macOS 12.3 since bare python is not found #88

Open
khongi opened this issue Mar 16, 2022 · 7 comments
Open

Comments

@khongi
Copy link

khongi commented Mar 16, 2022

After updating the macOS to 12.3, linker-wrapper.sh does not find the python command since python 2.7 is no longer bundled with the OS.

@khongi khongi changed the title python is not available on Mac python is not available on macOS 12.3 Mar 16, 2022
@ncalexan
Copy link
Member

Mmm, interesting. This is configurable with pythonCommand but we should try harder -- perhaps we look for python, then python3, then python2?

@khongi can you tell me if python3 would succeed on macOS 12?

@ncalexan ncalexan changed the title python is not available on macOS 12.3 linker-wrapper.sh fails on macOS 12.3 since bare python is not found Mar 16, 2022
@khongi
Copy link
Author

khongi commented Mar 16, 2022

Yes python3 would work, currenty I use it as workaround.

@Will5
Copy link

Will5 commented May 5, 2022

Any update on this? I fixed this by reinstalling Python 2.7.18, but co-workers have run into this issue as well

@ncalexan
Copy link
Member

ncalexan commented May 5, 2022

Any update on this? I fixed this by reinstalling Python 2.7.18, but co-workers have run into this issue as well

No update, but it should be straightforward to address. I think the most sensible thing is to invoke where python{3,2,} on Windows and which python{3,2,} on non-Windows and parse the output. Handling path splitting and executable extensions manually doesn't sound great.

Patches wanted!

@ncalexan
Copy link
Member

ncalexan commented May 9, 2022

Patches wanted!

Further to this: now the test suite runs on macOS, Windows, and Linux in CI, so it'll be easier to address this and be confident that it's working cross-platform.

@tuncatunc
Copy link

I added
rust.pythonCommand=/opt/homebrew/bin/python3
to samples/app/local.properties

@dineshoptisol
Copy link

run this in terminal to resolve this issue. It will point python -> python3.
sudo ln -s $(which python3) /usr/local/bin/python

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