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

Import error with TextOperationStatusCodes #92693

Closed kyleharperSAIT closed 2 years ago

kyleharperSAIT commented 2 years ago

Afternoon,

there seems to be an issue with one of the imports;

ImportError: cannot import name 'TextOperationStatusCodes' from 'azure.cognitiveservices.vision.computervision.models' (**/anaconda3/lib/python3.9/site-packages/azure/cognitiveservices/vision/computervision/models/init.py)


Document details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ram-msft commented 2 years ago

@kyleharperSAIT Thanks for the question. We are investigating the issue and will update you shortly.

ram-msft commented 2 years ago

@[kyleharperSAIT Thanks, Please upgrade the client library with the following command : pip install --upgrade azure-cognitiveservices-vision-computervision

We are able to successfully run the sample without import error as shown below.

image

ram-msft commented 2 years ago

We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.