azure-sdk-for-python icon indicating copy to clipboard operation
azure-sdk-for-python copied to clipboard

Incorrect SDK import for Python

Open jsundy opened this issue 2 years ago • 4 comments

Type of issue

Typo

Description

Steps to reproduce:

  1. Navigate to the SDK overview page.
  2. go to "2. Import the SDK client library into your application"
  3. Update the import for python client:

The block needs to change from:

from azure.core.credentials import TextTranslationClient
from azure-ai-translation-text import TextTranslationClient

to:

from azure.ai.translation.text import TextTranslationClient

Page URL

https://learn.microsoft.com/en-us/python/api/azure-ai-translation-text/azure.ai.translation.text.models.translation?view=azure-python-preview

Content source URL

https://github.com/MicrosoftDocs/azure-docs-sdk-python/blob/main/preview/docs-ref-autogen/azure-ai-translation-text/azure.ai.translation.text.models.Translation.yml

Document Version Independent Id

0e17284c-9174-0c1b-c378-0cee1a889fe6

Article author

@VSC-Service-Account

Metadata

  • ID: 6dd143e7-d616-df06-07c7-c78907f0c79e

jsundy avatar Jun 04 '24 17:06 jsundy

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @swmachan.

github-actions[bot] avatar Jun 04 '24 17:06 github-actions[bot]

It looks like the doc has been fixed to reflect the correct import statement: https://learn.microsoft.com/en-us/azure/ai-services/translator/text-translation/sdk-overview?tabs=python#2-import-the-sdk-client-library-into-your-application

kristapratico avatar Mar 19 '25 00:03 kristapratico

Hi @jsundy. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text "/unresolve" to remove the "issue-addressed" label and continue the conversation.

github-actions[bot] avatar Mar 19 '25 00:03 github-actions[bot]

Hi @jsundy, since you haven’t asked that we /unresolve the issue, we’ll close this out. If you believe further discussion is needed, please add a comment /unresolve to reopen the issue.

github-actions[bot] avatar Mar 26 '25 04:03 github-actions[bot]