Skip to content

Fails to install on Windows ARM #1083

Closed
@moi15moi

Description

@moi15moi

Description:
When I try to use arm64 on Windows, the CI fails with this error:

  Error: Error happened during Python installation
  Error: At D:\a\_temp\2b6a3fb8-2425-4ac7-abec-fda97810f56d\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

Here is the CI code:

name: Run Tests

on:
  push:
    branches:
      - 'main'
  pull_request:

jobs:
  run-tests:
    name: "Test (${{matrix.os}}, Python ${{ matrix.python-version }}, ${{ matrix.architecture }})"
    runs-on: ${{ matrix.os }}

    strategy:
      matrix:
        os: [windows-latest]
        python-version: ["3.11", "3.12", "3.13"]
        architecture: [x64, x86, arm64]

    steps:
    - name: Checkout code
      uses: actions/checkout@v4

    - name: Set up Python
      uses: actions/setup-python@v5
      with:
        python-version: ${{ matrix.python-version }}
        architecture: ${{ matrix.architecture }}

Here is the CI logs: https://github.com/moi15moi/bug_report/actions/runs/14478842141/job/40611021569

Action version:
v5

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:
Tested 3.11 to 3.13

Repro steps:
See this repos: https://github.com/moi15moi/bug_report

Expected behavior:
Python install successfully

Actual behavior:
It fails to install Python

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