Closed emdupre closed 2 years ago
Good news : I was able to get this running by removing the discoveryServiceUrl
param !
I also needed to update my JSON to not use OAuth (as I had done previously) but instead use a ServiceAccount key. Apparently this is not currently recommended for security reasons (😬 ), but it works. Here's the guide I followed : https://cloud.google.com/iam/docs/creating-managing-service-accounts
This is likely something I just overlooked from the existing documentation, but happy to send a PR with these changes if you think anyone else is likely to benefit from this !
I'm seeing consistent errors for the Google API converters, that I think trace back to an updated internal API :
For example, when running the
GoogleSpeechAPIConverter
:Similarly for the
GoogleVision
APIs:Following this guide and its accompanying Python quickstart, I believe that
google-api-python-client
-- while still officially supported ! -- had a breaking change 2.0 release which affected private APIs such as those used here.It's unfortunately still not obvious to me how to update the calls to
google-api-python-client
within the existing library structure, but I'd guess we need to update thebuild
call here:https://github.com/PsychoinformaticsLab/pliers/blob/df432abb11eb56950ca5cc67896f61e9c21f304b/pliers/transformers/api/google.py#L49-L51
following this comment.
Alternatively, a larger update would be to move to the Google Cloud Client libraries, as recommended in the
google-api-python-client
documentation.Any input here -- to either patch the current calls or on potential paths forward -- would be appreciated !