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
ImportError: cannot import name 'DocumentAnalysisClient' from 'azure.ai.formrecognizer' #21766
Comments
Hi @DFMERA, DocumentAnalysisClient is only available in the recent beta release of the Form Recognizer library. Your snippet shows installing version 3.1.2 and you need 3.2.0b1 or greater. Use command Also if you're intending to use the latest GA, stable package and not the beta, please see the samples here: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/v3.1 |
Hi, we're sending this friendly reminder because we haven't heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you! |
Hi, I tried the latest GA sdk and followed the example you shared and it worked, thank you very much. |
Thanks for the response @DFMERA! Will close this issue now then, please feel free to open new issues if there are other things we can help with :) |
Hi @DFMERA. 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 “ |
Update billingbenefits.json (Azure#21766)
Describe the bug
Hi. I'm trying to run this example:
https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/v3.2-beta/sample_analyze_invoices.py
But I keep getting this error:
ImportError: cannot import name 'DocumentAnalysisClient' from 'azure.ai.formrecognizer'
even after I installed and reinstalled the azure.ai.formrecognizer package several times
To Reproduce
Just download the file, replace the endpoint and the key and try to run the example:
https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/v3.2-beta/sample_analyze_invoices.py
Expected behavior
Not getting an error when I try to run the example.
Screenshots
Additional context
Thank you very much for your help!!!
The text was updated successfully, but these errors were encountered: