Skip to content

setup-python fails on self hosted runners where runner has no administrator permissions #1308

@ckrueger1979

Description

@ckrueger1979

Description:
Setup-python fails on self hosted runners where runner has no administrator permissions.
Throw "Error happened during Python installation"

Action version:
setup-python@v6.2.0

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • [ X Self-hosted

Repro steps:
use self hosted runner, give runner accounts no administrative permissions

Expected behavior:
Python installs

Actual behavior:
Python installation fails

Root cause is this code line:
"DefaultAllUsersTargetDir=$PythonArchPath InstallAllUsers=1 $Include_freethreaded"
specific InstallAllUsers=1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions