-
Notifications
You must be signed in to change notification settings - Fork 552
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
macOS package installation fails for non-privileged user #925
Comments
Hi @AttilaT 👋, |
Hello @AttilaT |
Me neither, it must have been fixed upstream. They only issue I see currently is this:
And that's because Once I've set the path to it's current shell default of |
I've opened this fix for that actions/python-versions#318 |
Hello @AttilaT By using these pre-installed versions, you avoid the need to manually download and install Python. This eliminates the dependency on the installer command, which is often the source of the "sudo: installer: command not found" error. Using the pre-installed Python versions ensures a more consistent and reliable setup environment for your workflows. This reduces setup time and potential errors, leading to smoother CI/CD processes. The setup-python action directly uses the pre-installed Python interpreters on the GitHub-hosted runners. This bypasses the need for the installer command entirely, thus avoiding the error "sudo: installer: command not found". For more details, refer to the GitHub-hosted runners documentation. Self-Hosted Runners: Self-hosted runners can be customized to fit your specific environment. For more details, refer to the links Using self-hosted runners documentation. Using setup-python with a self hosted runne Please let us know if you have any further questions or support needed. |
@mahalakshmi-rekadi you might have missed the previous comment but the issue has been fixed somewhere else. The only thing not working now is this fix actions/python-versions#318 but I don't seem to have a way to add reviewers. |
Hello @AttilaT, Thank you for the update. It appears the main issue has been resolved upstream. We will review the PR and share the feedback. |
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
The text was updated successfully, but these errors were encountered: