Skip to content

Python has stopped working #31474

@asvrada

Description

@asvrada

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

Metadata

Metadata

Assignees

Labels

Auto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamConfigureaz configure/configDevOpsSimilar-Issuecustomer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-triageThis issue needs the team to triage.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions