Azure / Azure/azure-cli

Python has stopped working

Open
#31,474 7 comments 0 reactions 1 assignee Claimed by @jiasli View on GitHub
act-codegen-extensibility-squad act-platform-engineering-squad Auto-Assign Configure customer-reported DevOps needs-team-triage question Service Attention Similar-Issue
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### Describe the bug

OS: Windows

When running the command, a window will pop up saying "Python has stopped working". After closing that window, the command fails.

### Related command

`C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe`

### Errors

A window says "Python has stopped working" pops up, whenever the `C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe` is invoked, either directly in PowerShell or via az-cli.

### Issue script & Debug output

See error section

### Expected behavior

The command should pass

### Environment Summary

azure-cli 2.72.0

core 2.72.0
telemetry 1.1.0

Dependencies:
msal 1.32.3
azure-mgmt-resource 23.1.1

Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe'
Config directory 'C:\Users\username\.azure'
Extensions directory 'C:\Users\username\.azure\cliextensions'

Python (Windows) 3.12.8 (tags/v3.12.8:2dc476b, Dec 3 2024, 19:30:04) [MSC v.1942 64 bit (AMD64)]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.