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

Homebrew mac install of 2.66 failing with package dependency missing #30305

Closed
vaibhav-dhawan opened this issue Nov 11, 2024 · 3 comments
Closed
Labels
AKS az aks/acs/openshift Auto-Assign Auto assign by bot 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 Service Attention This issue is responsible by Azure service team.

Comments

@vaibhav-dhawan
Copy link

Describe the bug

When running az aks get-credentials after upgrading to 2.66, i get:

  File "/opt/homebrew/Cellar/python@3.12/3.12.7_1/Frameworks/Python.framework/Versions/3.12/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/Users/vdhawan/.azure/cliextensions/aks-preview/azext_aks_preview/custom.py", line 108, in <module>
    from azure.graphrbac.models import (
ModuleNotFoundError: No module named 'azure.graphrbac'

I've tried relinking py 3.12, reinstalling azure-cli, all dependencies, python 3.12 but no luck

az login seems to work fine

Related command

az aks get-credentials

Errors

    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/Users/vdhawan/.azure/cliextensions/aks-preview/azext_aks_preview/custom.py", line 108, in <module>
    from azure.graphrbac.models import (
ModuleNotFoundError: No module named 'azure.graphrbac'```

### Issue script & Debug output

brew install azure-cli

### Expected behavior

No errors

### Environment Summary

azure-cli 2.66.0
Homebrew 4.4.5

==> azure-cli: stable 2.66.0 (bottled), HEAD
Microsoft Azure CLI 2.0
https://docs.microsoft.com/cli/azure/overview
Installed
/opt/homebrew/Cellar/azure-cli/2.66.0 (27,744 files, 648.8MB) *
  Poured from bottle using the formulae.brew.sh API on 2024-11-11 at 17:01:00
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/a/azure-cli.rb

### Additional context

_No response_
@vaibhav-dhawan vaibhav-dhawan added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Nov 11, 2024
@yonzhan
Copy link
Collaborator

yonzhan commented Nov 11, 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. AKS az aks/acs/openshift Service Attention This issue is responsible by Azure service team. Auto-Assign Auto assign by bot Account az login/account labels Nov 11, 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 11, 2024
@vaibhav-dhawan
Copy link
Author

Ok, not quite a bug, i ran az extension update --name aks-preview and this appears to have cleared up the issue. Not sure if thats meant to updated when i update the cli though

@yonzhan yonzhan removed bug This issue requires a change to an existing behavior in the product in order to be resolved. Account az login/account labels Nov 11, 2024
@yonzhan yonzhan removed the Azure CLI Team The command of the issue is owned by Azure CLI team label Nov 11, 2024
@bebound
Copy link
Contributor

bebound commented Nov 12, 2024

Both CLI and aks-preview have removed the dependency of azure.graphrbac in latest version.

Ref:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AKS az aks/acs/openshift Auto-Assign Auto assign by bot 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 Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

4 participants