Open AttilaT opened 3 months ago
Hi @AttilaT 👋, Thank you for your report. We'll investigate the issue and get back to you.
Hello @AttilaT we tried to replicate the issue but couldn't do with given inputs. Could you please attach link to the build or public repository to reproduce the issue ?
Me neither, it must have been fixed upstream.
They only issue I see currently is this:
Run actions/setup-python@v4
Installed versions
Version 3.11 was not found in the local cache
Version 3.11 is available for downloading
Download from "https://github.com/actions/python-versions/releases/download/3.11.9-9947079978/python-3.11.9-darwin-arm64.tar.gz"
Extract downloaded archive
/usr/bin/tar xz -C /Users/runner/action-runner-SWFqZtGKOq/actions-runner/_work/_temp/ba40ce33-ca[21](https://......../actions/runs/405707/job/1152809#step:3:22)-4ffd-9ba3-55685329b839 -f /Users/runner/action-runner-SWFqZtGKOq/actions-runner/_work/_temp/df05e121-b43f-42c3-a7[22](https://......../actions/runs/405707/job/1152809#step:3:23)-b5ccac0d6862
Execute installation script
Check if Python hostedtoolcache folder exist...
Install Python binaries from prebuilt package
Error: sudo: installer: command not found
Error: The process '/bin/bash' failed with exit code 1
And that's because PATH
is set like this by the runner:
PATH=/bin:/usr/bin
Once I've set the path to it's current shell default of echo "/usr/sbin/" >> $GITHUB_PATH
everything else worked as expected!
I've opened this fix for that https://github.com/actions/python-versions/pull/318
Description: Can not install python with a non-privileged user, even if the user is part of admin group and has sudo permission to use
/usr/sbin/installer
The error is:
The error occurs due to the fact that
/Library/Frameworks/Python.framework/
is owned byroot:admin
and thesetup.sh
is creating simbolic links tobin
folder in/Library/Frameworks/Python.framework/<versions>/bin
which it doesn't have permissions.Action version: Same error on v5, v4, v3
Platform:
Runner type:
Tools version: Tested on python v3.11
Repro steps:
Simply run the installation as a non-privileged user
Expected behavior: Ideally, the installation is performed directly into the cash folder instead of system wide.
Actual behavior: Installation fails