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

SyntaxWarning: invalid escape sequence '\s' in azure-batch #38618

Open
bebound opened this issue Nov 20, 2024 · 3 comments
Open

SyntaxWarning: invalid escape sequence '\s' in azure-batch #38618

bebound opened this issue Nov 20, 2024 · 3 comments
Labels
Batch Client This issue points to a problem in the data-plane of the library. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team Service Attention Workflow: This issue is responsible by Azure service team.

Comments

@bebound
Copy link

bebound commented Nov 20, 2024

  • Package Name: azure-batch
  • Package Version: 14.2.0
  • Operating System: windows
  • Python Version: 3.12

Describe the bug
In azure-batch-14.2.0.tar.gz, azure/batch/models/_models_py3.py line 4846 raises SyntaxWarning in Python 3.12. \s should be \\s.

Node. (AZ_BATCH_NODE_ROOT_DIR\shared), or starting a local service on the

Expected behavior
No syntax warning.

I'm not sure if there are more syntax warnings in sdk package.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Related issue: Azure/azure-cli#28829 (comment)

@github-actions github-actions bot added Batch Client This issue points to a problem in the data-plane of the library. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team Service Attention Workflow: This issue is responsible by Azure service team. labels Nov 20, 2024
Copy link

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @cRui861 @dpwatrous @jingjlii @JJJessieWang @wanghoppe @wiboris.

@corganfuzz
Copy link

corganfuzz commented Nov 23, 2024

to me this still happens when I do

az webapp ... (anything)

/opt/homebrew/Cellar/azure-cli/2.67.0/libexec/lib/python3.12/site-packages/azure/mgmt/web/v2023_01_01/models/_models_py3.py:20621: SyntaxWarning: invalid escape sequence '\S'
  """Configuration of an App Service app.
/opt/homebrew/Cellar/azure-cli/2.67.0/libexec/lib/python3.12/site-packages/azure/mgmt/web/v2023_01_01/models/_models_py3.py:20981: SyntaxWarning: invalid escape sequence '\S'
  """
/opt/homebrew/Cellar/azure-cli/2.67.0/libexec/lib/python3.12/site-packages/azure/mgmt/web/v2023_01_01/models/_models_py3.py:21292: SyntaxWarning: invalid escape sequence '\S'
  """Web app configuration ARM resource.
/opt/homebrew/Cellar/azure-cli/2.67.0/libexec/lib/python3.12/site-packages/azure/mgmt/web/v2023_01_01/models/_models_py3.py:21680: SyntaxWarning: invalid escape sequence '\S'
  """

but everything else works normally

az --version

                                                                                                                                             
azure-cli                         2.67.0

core                              2.67.0
telemetry                          1.1.0

Extensions:
account                            0.2.5
azure-devops                       1.0.1
logic                              1.1.0
ssh                                2.0.6

Dependencies:
msal                              1.31.0
azure-mgmt-resource               23.1.1

Python location '/opt/homebrew/Cellar/azure-cli/2.67.0/libexec/bin/python'
Extensions directory '/Users/gerruiz/.azure/cliextensions'

Python (Darwin) 3.12.7 (main, Oct  1 2024, 02:05:46) [Clang 16.0.0 (clang-1600.0.26.3)]

Legal docs and information: aka.ms/AzureCliLegal


Your CLI is up-to-date.

@upasnagandhi0
Copy link

To me, it happens when I try to fetch my iOS certificate password from Azure Keyvault and because, it happens for the first time. My pipeline breaks while uploading the .ipa build to App Store as it always run from scratch.

az keyvault secret show --name <secret-name> --vault-name <keyvault-name>

Created this bug for more detail.
Azure/azure-cli#30440

Thanks @bebound for pointing to right place for this bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Batch Client This issue points to a problem in the data-plane of the library. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team Service Attention Workflow: This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

3 participants