-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Description
Describe the bug
I am getting following error when installed AzureCLI. I reinstalled AzureCLI and restarted computer as well but nothing worked. Same issue happening on any az command run.
Fatal Python error: Failed to import encodings module
Python runtime state: core initialized
Traceback (most recent call last):
File "encodings_init_.py", line 33, in
ImportError: cannot import name 'aliases' from partially initialized module 'encodings' (most likely due to a circular import) (C:\Program Files\Microsoft SDKs\Azure\CLI2\python313.zip\encodings_init_.pyc)
Related command
az -v
az login
Errors
Fatal Python error: Failed to import encodings module
Python runtime state: core initialized
Traceback (most recent call last):
File "encodings_init_.py", line 33, in
ImportError: cannot import name 'aliases' from partially initialized module 'encodings' (most likely due to a circular import) (C:\Program Files\Microsoft SDKs\Azure\CLI2\python313.zip\encodings_init_.pyc)
Issue script & Debug output
debug out put also show same error
Expected behavior
It should show azure version and allow login
Environment Summary
azure-cli python313
Additional context
No response