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

Installation fails if python is not installed on host system #140

Closed
Baltoli opened this issue Jul 5, 2022 · 3 comments
Closed

Installation fails if python is not installed on host system #140

Baltoli opened this issue Jul 5, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@Baltoli
Copy link

Baltoli commented Jul 5, 2022

On macOS 12.3 Monterey (at least, I've not verified other versions), there is no python installed. This causes the action to fail with the following error:

> Run cachix/install-nix-action@v17
The node12 is not supported on macOS ARM6[4](https://github.com/runtimeverification/llvm-backend/runs/7196589297?check_suite_focus=true#step:3:5) platform. Use node16 instead.
/Users/user/actions-runner/_work/_actions/cachix/install-nix-action/v17/lib/install-nix.sh: line 41: python: command not found
node:child_process:867
    throw err;
    ^
Error: Command failed: /Users/user/actions-runner/_work/_actions/cachix/install-nix-action/v17/lib/install-nix.sh
(...etc)

Would it be possible to add an option to use python3 at this point in the installation script?

@Baltoli Baltoli changed the title Installation fails if python is not installed Installation fails if python is not installed on host system Jul 5, 2022
@domenkozar
Copy link
Member

That's a shame. Is there python3?

@domenkozar domenkozar added the bug Something isn't working label Jul 13, 2022
@Baltoli
Copy link
Author

Baltoli commented Jul 13, 2022

Yes, python3 is available.

@silviogutierrez
Copy link

It's actually not available on Ubuntu either, at least 20.04 onwards. So self-hosted runners will fail unless they have python installed. See:

https://itsfoss.com/python-not-found-ubuntu/

So the best bet is to document that python needs to be available in the runner or maybe try python3 which should cover most situations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants