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

Could not make it work with self-hosted MacOs #81

Closed
buremba opened this issue Apr 14, 2020 · 1 comment
Closed

Could not make it work with self-hosted MacOs #81

buremba opened this issue Apr 14, 2020 · 1 comment

Comments

@buremba
Copy link

buremba commented Apr 14, 2020

The action doesn't seem to work on self-hosted MacOs. Here is the error log:

image

I tried both:

- uses: actions/setup-python@v1
with:
          python-version: "3.8.2"

and without specifying the version:

- uses: actions/setup-python@v1

The documentation states that the latest version is 3.8.2 and it has built for x64. As you see in the picture, there is no Available versions: in the logs.

@buremba buremba changed the title Could not make it with self-hosted MacOs Could not make it work with self-hosted MacOs Apr 14, 2020
@konradpabjan
Copy link
Collaborator

konradpabjan commented Apr 27, 2020

If you're using a self-hosted runner, you need to setup the tools cache yourself. You can find instructions here: https://github.com/actions/setup-python#using-setup-python-with-a-self-hosted-runner

If you only need one version of Python, you can avoid using setup-python and whatever version of Python you have in PATH will be used.

Why is setup needed? Hosted runners that we maintain have multiple python versions cached and installed when the images get built. You can read up about it here: https://github.com/actions/setup-python#hosted-tool-cache

Essentially, if you're using one of our hosted runners, all that setup-python is doing is changing the PATH variable to point to a version of Python that is already installed. If you're using a self-hosted runner, you have to download and setup the necessary versions of Python first yourself.

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