-
Notifications
You must be signed in to change notification settings - Fork 485
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
'GCVAgent' object has no attribute '_client' #111
Comments
Could you please share your solution with me? I'm experiencing the same problem. |
Same here.. |
send me the code please |
same here |
2 similar comments
same here |
same here |
AttributeError: 'GCVAgent' object has no attribute '_client' |
This is not a bug: it just says that your google credentials are wrong. As seen in the documentation: |
Hi, when I was running the tutorial of "OCR tables and parse the output", when I was trying to obtain the result:
res = ocr_agent.detect(image, return_response=True)
The response was
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/layoutparser/ocr/gcv_agent.py", line 168, in detect res = self._detect(img_content) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/layoutparser/ocr/gcv_agent.py", line 134, in _detect response = self._client.document_text_detection( AttributeError: 'GCVAgent' object has no attribute '_client'
I googled and some sites said The Client() class was removed in the Client Library v0.25.1 and replaced with ImageAnnotatorClient().
Was this a problem? Thank you.
The text was updated successfully, but these errors were encountered: