setup-python
setup-python copied to clipboard
setup-python fails to install 3.11 on Windows Server 2022 21H1 self-hosted runner
Description: I am unable to
Action version: actions/setup-python@v4
Platform:
- [ ] Ubuntu
- [ ] macOS
- [x] Windows
Runner type:
- [ ] Hosted
- [x] Self-hosted
Tools version: I have only tested with 3.11.
Repro steps:
I have a Windows Server 2022 21H1 self-hosted runner. I made sure to have the runner be registered as a service using the default service identity (which matches what is recommended in documentation).
Expected behavior: I expect it to succeed, because Windows Server 2022 is supported by GitHub-hosted runners. However, I am unsure if this specific version of Server 2022 (21H1) is supported by actions/setup-python.
Actual behavior: Installation is failing. I have attached a log snippet showing the run of setup-python: setup-python-log-snippet.txt
Let me know if you want more logs. I turned on actions debugging using both ACTIONS_RUNNER_DEBUG=true and ACTIONS_STEP_DEBUG=true but I am not sure where to find the debug logs.
Hello @grossag. Thank you for your report. I have some questions:
- Did you configure your user on self-hosted runner as an administrator?
- Does it fail only on 3.11 or for the other versions too?
Hello @grossag. Thank you for your report. I have some questions:
- Did you configure your user on self-hosted runner as an administrator?
Yeah, it's running as admin / service.
- Does it fail only on 3.11 or for the other versions too?
I tested 3.9, 3.10, 3.11, and 3.12 and they all failed.
We are experiencing the same issue with our runners as well on Windows Server 2019.
Anyone find a solution for this? We are encountering the same. Windows Server 2022 21H2 OS build 20348.2655