I am running a simple code that utilizes google cloud vision api but it keeps on throwing this error. I have tries upgrading my packages shown here: How to fix AttributeError: 'module' object has no attribute 'Client' when running python in Google Cloud Interactive Shell but the error persists.
PS:am using a virtual environment(virtualenv)
The Client()
class was removed in the Client Library v0.25.1 and replaced with ImageAnnotatorClient().
You can either replace Client
withImageAnnotatorClient
, or use a version of the Client Library prior to v0.25.1 by specifying it in the requirements.txt