Skip to content

az login - No module named 'ctypes' #30280

@shahzaibtx

Description

@shahzaibtx

Describe the bug

Not able to use AZ CLI on SAW

Related command

az login

Errors

The command failed with an unexpected error. Here is the traceback:
The command failed with an unexpected error. Here is the traceback:
No module named 'ctypes'
Traceback (most recent call last):
File "C:\Users\VssAdministrator\AppData\Local\Temp\pip-target-6cbhvr91\lib\python\knack/cli.py", line 212, in invoke
File "D:\a\1\s\build_scripts\windows\artifacts\Python\Lib\site-packages\azure/cli/main.py", line 28, in skip_imports
File "C:\Users\VssAdministrator\AppData\Local\Temp\pip-target-6cbhvr91\lib\python\knack/_win_vt.py", line 11, in
File "D:\a\1\s\build_scripts\windows\artifacts\Python\Lib\site-packages\azure/cli/main.py", line 28, in skip_imports
ModuleNotFoundError: No module named 'ctypes'
No module named 'ctypes'
Traceback (most recent call last):
File "C:\Users\VssAdministrator\AppData\Local\Temp\pip-target-6cbhvr91\lib\python\knack/cli.py", line 212, in invoke
File "D:\a\1\s\build_scripts\windows\artifacts\Python\Lib\site-packages\azure/cli/main.py", line 28, in skip_imports
File "C:\Users\VssAdministrator\AppData\Local\Temp\pip-target-6cbhvr91\lib\python\knack/_win_vt.py", line 11, in
File "D:\a\1\s\build_scripts\windows\artifacts\Python\Lib\site-packages\azure/cli/main.py", line 28, in skip_imports
ModuleNotFoundError: No module named 'ctypes'
To check existing issues, please visit: https://github.com/Azure/azure-cli/issues

Issue script & Debug output

The command failed with an unexpected error. Here is the traceback:
The command failed with an unexpected error. Here is the traceback:
No module named 'ctypes'
Traceback (most recent call last):
File "C:\Users\VssAdministrator\AppData\Local\Temp\pip-target-6cbhvr91\lib\python\knack/cli.py", line 212, in invoke
File "D:\a\1\s\build_scripts\windows\artifacts\Python\Lib\site-packages\azure/cli/main.py", line 28, in skip_imports
File "C:\Users\VssAdministrator\AppData\Local\Temp\pip-target-6cbhvr91\lib\python\knack/_win_vt.py", line 11, in
File "D:\a\1\s\build_scripts\windows\artifacts\Python\Lib\site-packages\azure/cli/main.py", line 28, in skip_imports
ModuleNotFoundError: No module named 'ctypes'
No module named 'ctypes'
Traceback (most recent call last):
File "C:\Users\VssAdministrator\AppData\Local\Temp\pip-target-6cbhvr91\lib\python\knack/cli.py", line 212, in invoke
File "D:\a\1\s\build_scripts\windows\artifacts\Python\Lib\site-packages\azure/cli/main.py", line 28, in skip_imports
File "C:\Users\VssAdministrator\AppData\Local\Temp\pip-target-6cbhvr91\lib\python\knack/_win_vt.py", line 11, in
File "D:\a\1\s\build_scripts\windows\artifacts\Python\Lib\site-packages\azure/cli/main.py", line 28, in skip_imports
ModuleNotFoundError: No module named 'ctypes'
To check existing issues, please visit: https://github.com/Azure/azure-cli/issues

Expected behavior

az login should allow me to login

Environment Summary

az --version gives me the same error as above. I installed AzureCLI v2.55.0 from Software Center

Additional context

No response

Metadata

Metadata

Assignees

Labels

Accountaz login/accountAuto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.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