Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

az login - No module named 'ctypes' #30280

Closed
shahzaibtx opened this issue Nov 7, 2024 · 4 comments
Closed

az login - No module named 'ctypes' #30280

shahzaibtx opened this issue Nov 7, 2024 · 4 comments
Assignees
Labels
Account az login/account Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone

Comments

@shahzaibtx
Copy link

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

@shahzaibtx shahzaibtx added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Nov 7, 2024
@yonzhan
Copy link
Collaborator

yonzhan commented Nov 7, 2024

Thank you for opening this issue, we will look into it.

@microsoft-github-policy-service microsoft-github-policy-service bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. Auto-Assign Auto assign by bot Account az login/account labels Nov 7, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added Azure CLI Team The command of the issue is owned by Azure CLI team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Nov 7, 2024
@yonzhan yonzhan removed the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Nov 8, 2024
@yonzhan yonzhan added this to the Backlog milestone Nov 8, 2024
@bebound bebound closed this as completed Nov 8, 2024
@JuanP-EscobarZ
Copy link

JuanP-EscobarZ commented Nov 18, 2024

@bebound I'm trying to use another command (in this case the az functionapp) and I'm still getting the same error even after running the az command in terminal, don't really get what the wiki means on the point 2

I'm running az in terminal and then I run the

az functionapp ...

and I'm still getting the "ModuleNotFoundError: No module named 'ctypes'"

@bebound
Copy link
Contributor

bebound commented Nov 19, 2024

Run az command in Terminal App using PowerShell. That the only valid method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Account az login/account Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

5 participants