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

WIP: Try setup-python on arm runners #444

Closed
wants to merge 10 commits into from
Closed

Conversation

danielhollas
Copy link
Contributor

@danielhollas danielhollas commented Apr 17, 2024

According to actions/setup-python#108 (comment) this might work now? Let's test!

Might solve #432

@danielhollas
Copy link
Contributor Author

setup-python@v5 gives a permission error /Users/runner: Permission denied, same as described in actions/setup-python#792. This unmerged PR might fix it: actions/setup-python#708

@danielhollas
Copy link
Contributor Author

With version 4.0.0 it seems I am getting a bit further, but failing right after creating hostedtoolcache folder:

Check if Python hostedtoolcache folder exist...
Creating Python hostedtoolcache folder...
Install Python binaries from prebuilt package
Error: sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
Error: sudo: a password is required
Error: The process '/bin/bash' failed with exit code 1

@danielhollas
Copy link
Contributor Author

@mbercx @unkcpz I think in order to make progress here we'll need tweak the runner machine per README instructions for setup-python action: https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md#macos

Specifically:

Create a directory called /Users/runner/hostedtoolcache
Change the permissions of /Users/runner/hostedtoolcache so that the runner has write access

I think this is of reasonably high priority since right now we seem to be using a global python environment for all the jobs? See #432

@mbercx
Copy link
Member

mbercx commented Apr 17, 2024

Thanks @danielhollas! I'll admit it's mostly @unkcpz who is the expert on setting up/configuring the runner. I'm just the guy who owns the work station we're using for it. 😅

@unkcpz I've packed my mac Mini and will bring it to the office tomorrow. Then we can consider using that instead, since I often use a VPN on my work station (or need to reboot, rarely), which interrupts the runner service.

@danielhollas
Copy link
Contributor Author

This PR is now stale, but the issue still needs to be solved, unless we move to buildjet runners (I am slightly worried it would be expensive though, since I am running through my free 5$ credit quite quickly).

@danielhollas danielhollas deleted the setup-python-on-arm branch May 9, 2024 19:48
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

Successfully merging this pull request may close these issues.

2 participants