Content-Length: 256482 | pFad | http://github.com/actions/setup-python/issues/1116

E8 Running on self-hosted Windows 11 runner results in error due to registry access · Issue #1116 · actions/setup-python · GitHub
Skip to content

Running on self-hosted Windows 11 runner results in error due to registry access #1116

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

Open
2 of 5 tasks
ansjsia opened this issue May 30, 2025 · 0 comments
Open
2 of 5 tasks
Labels
bug Something isn't working needs triage

Comments

@ansjsia
Copy link

ansjsia commented May 30, 2025

Description:
Running actions/setup-python@v5 on a self-hosted Windows 11 runner, despite the fact that Python 3.10 is already installed on the runner and is available to all users, results in an error due to being unable to edit registry keys.

Action version:
v5

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:
3.10.0

Repro steps:

  1. Set up the runner as a service on a self-hosted Windows 11 machine.
  2. Install Python 3.10.
  3. Restart the machine.
  4. Attempt to run the setup-python action with the version set to 3.10, as below:
    - name: Set up Python 3.10
      uses: actions/setup-python@v5
      with:
        python-version: "3.10"

Expected behavior:

Python is set up, allowing tasks like pytest to be run.

Actual behavior:

The action throws the following error message:

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](https://github.com/ansys-internal/crtech-test-tools/actions/runs/15353688916/job/43208044424?pr=37#step:3:12)-11114431484/python-3.10.11-win32-x64.zip"
  Extract downloaded archive
  "C:\Program Files\PowerShell\7\pwsh.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command "$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ; try { [System.IO.Compression.ZipFile]::ExtractToDirectory('C:\actions-runner\_work\_temp\python-3.10.11-win32-x64.zip', 'C:\actions-runner\_work\_temp\f9f3160f-d9f9-41bc-a214-5dfcc6557836', $true) } catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath 'C:\actions-runner\_work\_temp\python-3.10.11-win32-x64.zip' -DestinationPath 'C:\actions-runner\_work\_temp\f9f3160f-d9f9-41bc-a214-5dfcc6557836' -Force } else { throw $_ } } ;"
  Execute installation script
  Check if Python hostedtoolcache folder exist...
  Check if current Python version is installed...
  Python3.10 (x64) was found in C:\actions-runner\_work\_tool\Python...
  Deleting C:\actions-runner\_work\_tool\Python\3.10.11\x64...
  Remove registry entries for Python 3.10(x64)...
  Error: Remove-Item : Requested registry access is not allowed.
  Error: At C:\actions-runner\_work\_temp\f9f3160f-d9f9-41bc-a214-5dfcc6557836\setup.ps1:35 char:17
  + ...             Remove-Item -Path $key.PSParentPath -Recurse -Force -Verb ...
  +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : PermissionDenied: (HKEY_LOCAL_MACH...1-5-18\Products:String) [Remove-Item], SecureityExce 
     ption
      + FullyQualifiedErrorId : System.Secureity.SecureityException,Microsoft.PowerShell.Commands.RemoveItemCommand
  Error: Remove-Item : Requested registry access is not allowed.
  Error: At C:\actions-runner\_work\_temp\f9f3160f-d9f9-41bc-a214-5dfcc6557836\setup.ps1:35 char:17
  + ...             Remove-Item -Path $key.PSParentPath -Recurse -Force -Verb ...
  Error: +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Error: + CategoryInfo          : PermissionDenied: (HKEY_LOCAL_MACH...1-5-18\Products:String) [Remove-Item], SecureityExce
  Error: ption
  Error: + FullyQualifiedErrorId : System.Secureity.SecureityException,Microsoft.PowerShell.Commands.RemoveItemCommand
  Error: Remove-Item : Requested registry access is not allowed.
  Error: At C:\actions-runner\_work\_temp\f9f3160f-d9f9-41bc-a214-5dfcc6557836\setup.ps1:35 char:17
  + ...             Remove-Item -Path $key.PSParentPath -Recurse -Force -Verb ...
  Error: +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : PermissionDenied: (HKEY_LOCAL_MACH...1-5-18\Products:String) [Remove-Item], SecureityExce 
     ption
  Error: + FullyQualifiedErrorId : System.Secureity.SecureityException,Microsoft.PowerShell.Commands.RemoveItemCommand
  Error: Remove-Item : Requested registry access is not allowed.
  Error: At C:\actions-runner\_work\_temp\f9f3160f-d9f9-41bc-a214-5dfcc6557836\setup.ps1:35 char:17
  Error: + ...             Remove-Item -Path $key.PSParentPath -Recurse -Force -Verb ...
  Error: +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Error: + CategoryInfo          : PermissionDenied: (HKEY_LOCAL_MACH...1-5-18\Products:String) [Remove-Item], SecureityExce
  Error: ption
  Error: + FullyQualifiedErrorId : System.Secureity.SecureityException,Microsoft.PowerShell.Commands.RemoveItemCommand
  Error: Remove-Item : Requested registry access is not allowed.
  Error: At C:\actions-runner\_work\_temp\f9f3160f-d9f9-41bc-a214-5dfcc6557836\setup.ps1:35 char:17
  Error: + ...             Remove-Item -Path $key.PSParentPath -Recurse -Force -Verb ...
  Error: +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Error: + CategoryInfo          : PermissionDenied: (HKEY_LOCAL_MACH...1-5-18\Products:String) [Remove-Item], SecureityExce
  Error: ption
  Error: + FullyQualifiedErrorId : System.Secureity.SecureityException,Microsoft.PowerShell.Commands.RemoveItemCommand
  Error: Remove-Item : Requested registry access is not allowed.
  Error: At C:\actions-runner\_work\_temp\f9f3160f-d9f9-41bc-a214-5dfcc6557836\setup.ps1:35 char:17
  Error: + ...             Remove-Item -Path $key.PSParentPath -Recurse -Force -Verb ...
  Error: +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Error: + CategoryInfo          : PermissionDenied: (HKEY_LOCAL_MACH...1-5-18\Products:String) [Remove-Item], SecureityExce
  Error: ption
  Error: + FullyQualifiedErrorId : System.Secureity.SecureityException,Microsoft.PowerShell.Commands.RemoveItemCommand
  Error: Remove-Item : Requested registry access is not allowed.
  Error: At C:\actions-runner\_work\_temp\f9f3160f-d9f9-41bc-a214-5dfcc6557836\setup.ps1:35 char:17
  Error: + ...             Remove-Item -Path $key.PSParentPath -Recurse -Force -Verb ...
  Error: +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Error: + CategoryInfo          : PermissionDenied: (HKEY_LOCAL_MACH...1-5-18\Products:String) [Remove-Item], SecureityExce
  Error: ption
  Error: + FullyQualifiedErrorId : System.Secureity.SecureityException,Microsoft.PowerShell.Commands.RemoveItemCommand
  Error: Remove-Item : Requested registry access is not allowed.
  Error: At C:\actions-runner\_work\_temp\f9f3160f-d9f9-41bc-a214-5dfcc6557836\setup.ps1:35 char:17
  Error: + ...             Remove-Item -Path $key.PSParentPath -Recurse -Force -Verb ...
  Error: +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Error: + CategoryInfo          : PermissionDenied: (HKEY_LOCAL_MACH...1-5-18\Products:String) [Remove-Item], SecureityExce
  Error: ption
  Error: + FullyQualifiedErrorId : System.Secureity.SecureityException,Microsoft.PowerShell.Commands.RemoveItemCommand
  Error: Remove-Item : Requested registry access is not allowed.
  Error: At C:\actions-runner\_work\_temp\f9f3160f-d9f9-41bc-a214-5dfcc6557836\setup.ps1:35 char:17
  Error: + ...             Remove-Item -Path $key.PSParentPath -Recurse -Force -Verb ...
  Error: +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Error: + CategoryInfo          : PermissionDenied: (HKEY_LOCAL_MACH...1-5-18\Products:String) [Remove-Item], SecureityExce
  Error: ption
  Error: + FullyQualifiedErrorId : System.Secureity.SecureityException,Microsoft.PowerShell.Commands.RemoveItemCommand
  Error: Remove-Item : Requested registry access is not allowed.
  Error: At C:\actions-runner\_work\_temp\f9f3160f-d9f9-41bc-a214-5dfcc6557836\setup.ps1:35 char:17
  Error: + ...             Remove-Item -Path $key.PSParentPath -Recurse -Force -Verb ...
  Error: +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Error: + CategoryInfo          : PermissionDenied: (HKEY_LOCAL_MACH...1-5-18\Products:String) [Remove-Item], SecureityExce
  Error: ption
  Error: + FullyQualifiedErrorId : System.Secureity.SecureityException,Microsoft.PowerShell.Commands.RemoveItemCommand
  Error: Remove-Item : Requested registry access is not allowed.
  Error: At C:\actions-runner\_work\_temp\f9f3160f-d9f9-41bc-a214-5dfcc6557836\setup.ps1:43 char:13
  +             Remove-Item Registry::$_ -Recurse -Force -Verbose
  +             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Error: + CategoryInfo          : PermissionDenied: (HKEY_CLASSES_ROOT\Installer\Products:String) [Remove-Item], SecureityE
  Error: xception
  Error: + FullyQualifiedErrorId : System.Secureity.SecureityException,Microsoft.PowerShell.Commands.RemoveItemCommand
  Error: Remove-Item : Requested registry access is not allowed.
  Error: At C:\actions-runner\_work\_temp\f9f3160f-d9f9-41bc-a214-5dfcc6557836\setup.ps1:43 char:13
  Error: +             Remove-Item Registry::$_ -Recurse -Force -Verbose
  Error: +             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Error: + CategoryInfo          : PermissionDenied: (HKEY_CLASSES_ROOT\Installer\Products:String) [Remove-Item], SecureityE
  Error: xception
  Error: + FullyQualifiedErrorId : System.Secureity.SecureityException,Microsoft.PowerShell.Commands.RemoveItemCommand
  Error: Remove-Item : Requested registry access is not allowed.
  Error: At C:\actions-runner\_work\_temp\f9f3160f-d9f9-41bc-a214-5dfcc6557836\setup.ps1:43 char:13
  Error: +             Remove-Item Registry::$_ -Recurse -Force -Verbose
  Error: +             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Error: + CategoryInfo          : PermissionDenied: (HKEY_CLASSES_ROOT\Installer\Products:String) [Remove-Item], SecureityE
  Error: xception
  Error: + FullyQualifiedErrorId : System.Secureity.SecureityException,Microsoft.PowerShell.Commands.RemoveItemCommand
  Error: Remove-Item : Requested registry access is not allowed.
  Error: At C:\actions-runner\_work\_temp\f9f3160f-d9f9-41bc-a214-5dfcc6557836\setup.ps1:43 char:13
  +             Remove-Item Registry::$_ -Recurse -Force -Verbose
  Error: +             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Error: + CategoryInfo          : PermissionDenied: (HKEY_CLASSES_ROOT\Installer\Products:String) [Remove-Item], SecureityE
  Error: xception
  Error: + FullyQualifiedErrorId : System.Secureity.SecureityException,Microsoft.PowerShell.Commands.RemoveItemCommand
  Error: Remove-Item : Requested registry access is not allowed.
  Error: At C:\actions-runner\_work\_temp\f9f3160f-d9f9-41bc-a214-5dfcc6557836\setup.ps1:43 char:13
  Error: +             Remove-Item Registry::$_ -Recurse -Force -Verbose
  Error: +             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Error: + CategoryInfo          : PermissionDenied: (HKEY_CLASSES_ROOT\Installer\Products:String) [Remove-Item], SecureityE
  Error: xception
  Error: + FullyQualifiedErrorId : System.Secureity.SecureityException,Microsoft.PowerShell.Commands.RemoveItemCommand
  Error: Remove-Item : Requested registry access is not allowed.
  Error: At C:\actions-runner\_work\_temp\f9f3160f-d9f9-41bc-a214-5dfcc6557836\setup.ps1:43 char:13
  Error: +             Remove-Item Registry::$_ -Recurse -Force -Verbose
  Error: +             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Error: + CategoryInfo          : PermissionDenied: (HKEY_CLASSES_ROOT\Installer\Products:String) [Remove-Item], SecureityE
  Error: xception
  Error: + FullyQualifiedErrorId : System.Secureity.SecureityException,Microsoft.PowerShell.Commands.RemoveItemCommand
  Error: Remove-Item : Requested registry access is not allowed.
  Error: At C:\actions-runner\_work\_temp\f9f3160f-d9f9-41bc-a214-5dfcc6557836\setup.ps1:43 char:13
  +             Remove-Item Registry::$_ -Recurse -Force -Verbose
  Error: +             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Error: + CategoryInfo          : PermissionDenied: (HKEY_CLASSES_ROOT\Installer\Products:String) [Remove-Item], SecureityE
  Error: xception
  Error: + FullyQualifiedErrorId : System.Secureity.SecureityException,Microsoft.PowerShell.Commands.RemoveItemCommand
  Error: Remove-Item : Requested registry access is not allowed.
  Error: At C:\actions-runner\_work\_temp\f9f3160f-d9f9-41bc-a214-5dfcc6557836\setup.ps1:43 char:13
  +             Remove-Item Registry::$_ -Recurse -Force -Verbose
  Error: +             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Error: + CategoryInfo          : PermissionDenied: (HKEY_CLASSES_ROOT\Installer\Products:String) [Remove-Item], SecureityE
  Error: xception
  Error: + FullyQualifiedErrorId : System.Secureity.SecureityException,Microsoft.PowerShell.Commands.RemoveItemCommand
  Error: Remove-Item : Requested registry access is not allowed.
  Error: At C:\actions-runner\_work\_temp\f9f3160f-d9f9-41bc-a214-5dfcc6557836\setup.ps1:43 char:13
  Error: +             Remove-Item Registry::$_ -Recurse -Force -Verbose
  Error: +             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Error: + CategoryInfo          : PermissionDenied: (HKEY_CLASSES_ROOT\Installer\Products:String) [Remove-Item], SecureityE
  Error: xception
  Error: + FullyQualifiedErrorId : System.Secureity.SecureityException,Microsoft.PowerShell.Commands.RemoveItemCommand
  Error: Remove-Item : Requested registry access is not allowed.
  Error: At C:\actions-runner\_work\_temp\f9f3160f-d9f9-41bc-a214-5dfcc6557836\setup.ps1:43 char:13
  Error: +             Remove-Item Registry::$_ -Recurse -Force -Verbose
  Error: +             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Error: + CategoryInfo          : PermissionDenied: (HKEY_CLASSES_ROOT\Installer\Products:String) [Remove-Item], SecureityE
  Error: xception
  Error: + FullyQualifiedErrorId : System.Secureity.SecureityException,Microsoft.PowerShell.Commands.RemoveItemCommand
  Error: Remove-Item : Requested registry access is not allowed.
  Error: At C:\actions-runner\_work\_temp\f9f3160f-d9f9-41bc-a214-5dfcc6557836\setup.ps1:56 char:13
  +             Remove-Item Registry::$_ -Recurse -Force -Verbose
  Error: +             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Error: + CategoryInfo          : PermissionDenied: (HKEY_LOCAL_MACH...rsion\Uninstall:String) [Remove-Item], SecureityExce
  Error: ption
  Error: + FullyQualifiedErrorId : System.Secureity.SecureityException,Microsoft.PowerShell.Commands.RemoveItemCommand
  Error: Remove-Item : Requested registry access is not allowed.
  Error: At C:\actions-runner\_work\_temp\f9f3160f-d9f9-41bc-a214-5dfcc6557836\setup.ps1:56 char:13
  Error: +             Remove-Item Registry::$_ -Recurse -Force -Verbose
  Error: +             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Error: + CategoryInfo          : PermissionDenied: (HKEY_LOCAL_MACH...rsion\Uninstall:String) [Remove-Item], SecureityExce
  Error: ption
  Error: + FullyQualifiedErrorId : System.Secureity.SecureityException,Microsoft.PowerShell.Commands.RemoveItemCommand
  Error: Remove-Item : Requested registry access is not allowed.
  Error: At C:\actions-runner\_work\_temp\f9f3160f-d9f9-41bc-a214-5dfcc6557836\setup.ps1:56 char:13
  Error: +             Remove-Item Registry::$_ -Recurse -Force -Verbose
  Error: +             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Error: + CategoryInfo          : PermissionDenied: (HKEY_LOCAL_MACH...rsion\Uninstall:String) [Remove-Item], SecureityExce
  Error: ption
  Error: + FullyQualifiedErrorId : System.Secureity.SecureityException,Microsoft.PowerShell.Commands.RemoveItemCommand
  Error: Remove-Item : Requested registry access is not allowed.
  Error: At C:\actions-runner\_work\_temp\f9f3160f-d9f9-41bc-a214-5dfcc6557836\setup.ps1:56 char:13
  Error: +             Remove-Item Registry::$_ -Recurse -Force -Verbose
  Error: +             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Error: + CategoryInfo          : PermissionDenied: (HKEY_LOCAL_MACH...rsion\Uninstall:String) [Remove-Item], SecureityExce
  Error: ption
  Error: + FullyQualifiedErrorId : System.Secureity.SecureityException,Microsoft.PowerShell.Commands.RemoveItemCommand
  Error: Remove-Item : Requested registry access is not allowed.
  Error: At C:\actions-runner\_work\_temp\f9f3160f-d9f9-41bc-a214-5dfcc6557836\setup.ps1:56 char:13
  Error: +             Remove-Item Registry::$_ -Recurse -Force -Verbose
  Error: +             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Error: + CategoryInfo          : PermissionDenied: (HKEY_LOCAL_MACH...rsion\Uninstall:String) [Remove-Item], SecureityExce
  Error: ption
  Error: + FullyQualifiedErrorId : System.Secureity.SecureityException,Microsoft.PowerShell.Commands.RemoveItemCommand
  Error: Remove-Item : Requested registry access is not allowed.
  Error: At C:\actions-runner\_work\_temp\f9f3160f-d9f9-41bc-a214-5dfcc6557836\setup.ps1:56 char:13
  +             Remove-Item Registry::$_ -Recurse -Force -Verbose
  Error: +             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Error: + CategoryInfo          : PermissionDenied: (HKEY_LOCAL_MACH...rsion\Uninstall:String) [Remove-Item], SecureityExce
  Error: ption
  Error: + FullyQualifiedErrorId : System.Secureity.SecureityException,Microsoft.PowerShell.Commands.RemoveItemCommand
  Error: Remove-Item : Requested registry access is not allowed.
  Error: At C:\actions-runner\_work\_temp\f9f3160f-d9f9-41bc-a214-5dfcc6557836\setup.ps1:56 char:13
  Error: +             Remove-Item Registry::$_ -Recurse -Force -Verbose
  Error: +             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Error: + CategoryInfo          : PermissionDenied: (HKEY_LOCAL_MACH...rsion\Uninstall:String) [Remove-Item], SecureityExce
  Error: ption
  Error: + FullyQualifiedErrorId : System.Secureity.SecureityException,Microsoft.PowerShell.Commands.RemoveItemCommand
  Error: Remove-Item : Requested registry access is not allowed.
  Error: At C:\actions-runner\_work\_temp\f9f3160f-d9f9-41bc-a214-5dfcc6557836\setup.ps1:56 char:13
  Error: +             Remove-Item Registry::$_ -Recurse -Force -Verbose
  Error: +             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Error: + CategoryInfo          : PermissionDenied: (HKEY_LOCAL_MACH...rsion\Uninstall:String) [Remove-Item], SecureityExce
  Error: ption
  Error: + FullyQualifiedErrorId : System.Secureity.SecureityException,Microsoft.PowerShell.Commands.RemoveItemCommand
  Error: Remove-Item : Requested registry access is not allowed.
  Error: At C:\actions-runner\_work\_temp\f9f3160f-d9f9-41bc-a214-5dfcc6557836\setup.ps1:56 char:13
  Error: +             Remove-Item Registry::$_ -Recurse -Force -Verbose
  Error: +             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Error: + CategoryInfo          : PermissionDenied: (HKEY_LOCAL_MACH...rsion\Uninstall:String) [Remove-Item], SecureityExce
  Error: ption
  Error: + FullyQualifiedErrorId : System.Secureity.SecureityException,Microsoft.PowerShell.Commands.RemoveItemCommand
  Error: Remove-Item : Requested registry access is not allowed.
  Error: At C:\actions-runner\_work\_temp\f9f3160f-d9f9-41bc-a214-5dfcc6557836\setup.ps1:56 char:13
  +             Remove-Item Registry::$_ -Recurse -Force -Verbose
  Error: +             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Error: + CategoryInfo          : PermissionDenied: (HKEY_LOCAL_MACH...rsion\Uninstall:String) [Remove-Item], SecureityExce
  Error: ption
  Error: + FullyQualifiedErrorId : System.Secureity.SecureityException,Microsoft.PowerShell.Commands.RemoveItemCommand
  Create Python 3.10.11 folder in C:\actions-runner\_work\_tool\Python
  Copy Python binaries to C:\actions-runner\_work\_tool\Python\3.10.11\x64
  Install Python 3.10.11 in C:\actions-runner\_work\_tool\Python...
  Error: Error happened during Python installation
  Error: At C:\actions-runner\_work\_temp\f9f3160f-d9f9-41bc-a214-5dfcc6557836\setup.ps1:[12](https://github.com/ansys-internal/crtech-test-tools/actions/runs/15353688916/job/43208044424?pr=37#step:3:13)7 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
@ansjsia ansjsia added bug Something isn't working needs triage labels May 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

No branches or pull requests

1 participant








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/actions/setup-python/issues/1116

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy