setup-python icon indicating copy to clipboard operation
setup-python copied to clipboard

setup-python fails to install 3.11 on Windows Server 2022 21H1 self-hosted runner

Open grossag opened this issue 1 year ago • 4 comments

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.

grossag avatar Nov 20 '23 15:11 grossag

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?

dmitry-shibanov avatar Nov 21 '23 10:11 dmitry-shibanov

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.

grossag avatar Nov 21 '23 14:11 grossag

We are experiencing the same issue with our runners as well on Windows Server 2019.

mpaulic avatar Dec 21 '23 10:12 mpaulic

Anyone find a solution for this? We are encountering the same. Windows Server 2022 21H2 OS build 20348.2655

complexsplit avatar Aug 21 '24 21:08 complexsplit