Closed
Description
Description:
Trying to e this action on elf-hosted windows runners
- uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python_version }}
Action version:
v5
Platform:
- Ubuntu
- macOS
- Windows
Runner type:
- Hosted
- Self-hosted
Tools version:
Python 3.10
Windows_NT
Repro steps:
Just run this action on Windwos_NT
Expected behavior:
Works smoothly as it does on Linux
Actual behavior:
Error:
Run actions/setup-python@v5
Installed versions
Version 3.10 was not found in the local cache
Version 3.10 is available for downloading
Download from "https://github.com/actions/python-versions/releases/download/3.10.11-11114431484/python-3.10.11-win32-x64.zip"
Extract downloaded archive
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command "$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath 'E:\actions-runner\_work\_temp\python-3.10.11-win32-x64.zip' -DestinationPath 'E:\actions-runner\_work\_temp\98799a9c-7702-4d8c-bbda-57b256f4beef' -Force } else {[System.IO.Compression.ZipFile]::ExtractToDirectory('E:\actions-runner\_work\_temp\python-3.10.11-win32-x64.zip', 'E:\actions-runner\_work\_temp\98799a9c-7702-4d8c-bbda-57b256f4beef', $true) }"
Execute installation script
Windows PowerShell
Copyright (C) 2014 Microsoft Corporation. All rights reserved.
********************************************************
********* THIS IS A PRODUCTION SYSTEM! *********
********************************************************
Please use extreme caution in this environment...
Check if Python hostedtoolcache folder exist...
Create Python toolcache folder
Check if current Python version is installed...
No Python3.10.* found
Remove registry entries for Python 3.10(x64)...
Create Python 3.10.11 folder in E:\actions-runner\_work\_tool\Python
Copy Python binaries to E:\actions-runner\_work\_tool\Python\3.10.11\x64
Install Python 3.10.11 in E:\actions-runner\_work\_tool\Python...
Error: Error happened during Python installation
Error: At E:\actions-runner\_work\_temp\98799a9c-7702-4d8c-bbda-57b256f4beef\setup.ps1:127 char:5
+ Throw "Error happened during Python installation"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (Error happened ...on installation:String) [], RuntimeException
+ FullyQualifiedErrorId : Error happened during Python installation
Error: The process 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe' failed with exit code 1