-
Notifications
You must be signed in to change notification settings - Fork 17
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
setup-python step fails on non Ubuntu self hosted runners #69
Comments
I encountered the same problem
|
@goffinfnbs @sven0219 Thanks for raising this. Let me take a look this week and see if I can reproduce this. I might request more information |
@goffinfnbs @sven0219 I have made some small changes to the Action Please let me know if this has helped |
HI @GeekMasher , it's works for me , thanks |
@GeekMasher I can confirm that this action DOES now operate successfully on our self-hosted runners when we run setup-python before it is called. Looks like you took the opportunity to merge quite a number of other changes also. I did note that you added the requirement in the announcement, but I wonder whether access to a supported version of python on the runner or installed before executing the action ought to also be documented in the README (some gnarly console output if you don't) ? |
I started documenting this during the process but I should update the README too |
Closing this issue as seems to have resolved the issue |
Describe the bug
Non portable step within the action.
When running this action on a self hosted non Ubuntu distro (we use RHEL self hosted runners internally) the setup-python step within the action.yml fails with the error:
This is a known issue, discussions around can be seen here:
Version 3.10 with arch x64 not found · Issue #401 · actions/setup-python (github.com)
Unable to Set-up Python · Issue #585 · actions/setup-python (github.com)
Also, for corporate use, it is common for access to the Internet to download software to be managed via a proxy, such as an Artifactory remote. In those cases setup-xxx actions may also fail.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Either the action should provide an input to allow by-pass of the step (document a pre-req that a compatible version of python must be installed prior to calling the action if you don't want to (or can't) use the default) or the step should be removed entirely from the action and a pre-req added to the doc.
The problem really lays with the setup-python action, however, since that is embedded within THIS action there is no way to avoid the error other than to maintain a custom version which is not ideal.
Screenshots

Additional context
This is a corporate environment running RHEL based self hosted GHA runners. Internet downloads for actions are only allowed via our Artifactory remotes. We can install python on our runners but ATM there is no way to skip the setup-python step within this action which will fail on RHEL.
Arguably there really shouldn't be a non-portable step inside the action !?
The text was updated successfully, but these errors were encountered: