MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.26k stars 21.43k forks source link

Error importing python classes #57982

Closed gitsathish closed 4 years ago

gitsathish commented 4 years ago

In the python section, unable to import these - from azure.cognitiveservices.vision.computervision.models import TextOperationStatusCodes from azure.cognitiveservices.vision.computervision.models import TextRecognitionMode

Have installed, azure-cognitiveservices-vision-computervision-0.6.0 --- error message -- ImportError Traceback (most recent call last)

in ----> 1 from azure.cognitiveservices.vision.computervision.models import TextOperationStatusCodes 2 from azure.cognitiveservices.vision.computervision.models import TextRecognitionMode ImportError: cannot import name 'TextOperationStatusCodes' ----------------------- --- #### Document Details ⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.* * ID: ef96562d-099d-9400-c88c-ba0439e136a6 * Version Independent ID: 049314ea-8e68-50ee-3469-4d39c801fc54 * Content: [Quickstart: Computer Vision client library - Azure Cognitive Services](https://docs.microsoft.com/en-us/azure/cognitive-services/Computer-vision/quickstarts-sdk/client-library?pivots=programming-language-python#read-printed-and-handwritten-text) * Content Source: [articles/cognitive-services/Computer-vision/quickstarts-sdk/client-library.md](https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/cognitive-services/Computer-vision/quickstarts-sdk/client-library.md) * Service: **cognitive-services** * Sub-service: **computer-vision** * GitHub Login: @PatrickFarley * Microsoft Alias: **pafarley**
BharathNimmala-MSFT commented 4 years ago

@gitsathish Thank you for your query, our team will look into it and get back to you at the earliest.

YutongTie-MSFT commented 4 years ago

@gitsathish Thanks for the feedback, actually this is not existing in 0.6.0 version anymore. Could you please share the document you are following so that we can fix it?

If you want to use, please install 0.5.0 version, thanks. pip install azure-cognitiveservices-vision-computervision==0.5.0

YutongTie-MSFT commented 4 years ago

@gitsathish We will now proceed to close this thread. If there are further questions regarding this matter, please respond here and @YutongTie-MSFT and we will gladly continue the discussion.