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

Syntax warnings with brand new Azure CLI on macOS installed via brew #30963

Closed
joelparkerhenderson opened this issue Mar 6, 2025 · 6 comments
Assignees
Labels
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. Possible-Solution question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Similar-Issue
Milestone

Comments

@joelparkerhenderson
Copy link

Describe the bug

I'm trying Azure CLI for the first time today, and hitting the errors on macOS with az-cli installation via brew.

Related command

az --version
azure-cli                         2.70.0

core                              2.70.0
telemetry                          1.1.0

Dependencies:
msal                            1.31.2b1
azure-mgmt-resource               23.1.1

Python location '/opt/homebrew/Cellar/azure-cli/2.70.0/libexec/bin/python'
Config directory '/Users/jph/.azure'
Extensions directory '/Users/jph/.azure/cliextensions'

Python (Darwin) 3.12.9 (main, Feb  4 2025, 14:38:38) [Clang 16.0.0 (clang-1600.0.26.6)]

Legal docs and information: aka.ms/AzureCliLegal


Your CLI is up-to-date.
/opt/homebrew/Cellar/azure-cli/2.70.0/libexec/lib/python3.12/site-packages/deviceid/deviceid.py:9: SyntaxWarning: invalid escape sequence '\S'
  """
/opt/homebrew/Cellar/azure-cli/2.70.0/libexec/lib/python3.12/site-packages/deviceid/_store.py:6: SyntaxWarning: invalid escape sequence '\M'
  REGISTRY_PATH = 'SOFTWARE\Microsoft\DeveloperTools'

Errors

/opt/homebrew/Cellar/azure-cli/2.70.0/libexec/lib/python3.12/site-packages/deviceid/deviceid.py:9: SyntaxWarning: invalid escape sequence '\S'
  """
/opt/homebrew/Cellar/azure-cli/2.70.0/libexec/lib/python3.12/site-packages/deviceid/_store.py:6: SyntaxWarning: invalid escape sequence '\M'
  REGISTRY_PATH = 'SOFTWARE\Microsoft\DeveloperTools'

Issue script & Debug output

NA

Expected behavior

NA

Environment Summary

NA

Additional context

No response

@joelparkerhenderson joelparkerhenderson added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Mar 6, 2025
@yonzhan
Copy link
Collaborator

yonzhan commented Mar 6, 2025

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

@microsoft-github-policy-service microsoft-github-policy-service bot added the customer-reported Issues that are reported by GitHub users external to the Azure organization. label Mar 6, 2025
Copy link

github-actions bot commented Mar 6, 2025

Here are some similar issues that might help you. Please check if they can solve your problem.


Possible solution (Extracted from existing issue, might be incorrect; please verify carefully)

Please report this to Azure/azure-sdk-for-python#38618

Reference:

Powered by issue-sentinel

@yonzhan yonzhan 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 and removed bug This issue requires a change to an existing behavior in the product in order to be resolved. labels Mar 6, 2025
@yonzhan yonzhan added this to the Backlog milestone Mar 6, 2025
@bebound
Copy link
Contributor

bebound commented Mar 6, 2025

@evelyn-ys for awareness. deviceid produces this warning.

For the explanation of the warning, see #28829 (comment)

Similar issue: #30440 #28829

@evelyn-ys
Copy link
Member

I've reported to py-deviceid: https://github.com/microsoft/py-deviceid/issues/10.

Once there's a fix release, CLI will pick it up ASAP

@joelparkerhenderson
Copy link
Author

joelparkerhenderson commented Mar 9, 2025

Do I understand correctly that the problem is due to python deprecation warnings, and also that the Azure CLI is showing the warnings because of its dependency on the python toolchain?

If yes, then where do developers see any kind of Microsoft roadmap for trying an alternative language, such as C# or Rust?

@evelyn-ys
Copy link
Member

py-deviceid 0.1.1 has been released. Pls verify if this has been fixed by manually upgrade py-deviceid or reinstall azure-cli

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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. Possible-Solution question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Similar-Issue
Projects
None yet
Development

No branches or pull requests

4 participants