Azure / azure-sdk-for-python

This repository is for active development of the Azure SDK for Python. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/python/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-python.
MIT License
4.53k stars 2.76k forks source link

SyntaxWarning: invalid escape sequence - azure-search-documents #36428

Closed jeffreyrubi closed 2 weeks ago

jeffreyrubi commented 2 months ago

Describe the bug When running the with the library, there is a Deprecation warning: invalid escape sequence.

To Reproduce Steps to reproduce the behavior:

  1. Build a docker image with a python app importing the captioned library.

Expected behavior No warning.

Screenshots image

Additional context Seems relate to https://github.com/Azure/azure-sdk-for-python/issues/36232, https://github.com/Azure/azure-sdk-for-python/issues/36233

xiangyan99 commented 2 months ago

Thanks for the feedback, we’ll investigate asap.

pabloapast commented 1 month ago

+1, having this same issue with:

@xiangyan99 any updates?

xiangyan99 commented 1 month ago

I am working on a fix.

Could you help to share your repro steps so I can make sure it works?

github-actions[bot] commented 1 month ago

Hi @jeffreyrubi. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue.

github-actions[bot] commented 1 month ago

Hi @jeffreyrubi, we're sending this friendly reminder because we haven't heard back from you in 7 days. We need more information about this issue to help address it. Please be sure to give us your input. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!

pzavolinsky commented 21 hours ago

:wave: @xiangyan99 , here's a quick repro in docker:

1) Save this to Dockerfile:

FROM python:3.12.5-slim
RUN pip install --no-compile -v azure-search-documents==11.5.1
CMD ["python", "-c", "import azure.search.documents"]

2) In that same dir:

docker build -t test .
docker run --rm -ti test

Hope this helps!

btw, this still happens the latest version of azure-search-documents, 11.5.1 and it looks like you are missing r in here