got an unexpected keyword argument 'content' – Errors on new release from Google Cloud …

soup in black ceramic bowl beside black handled knife on brown wooden table

Google-cloud-translate package new release for Python 3x has been presenting trouble.

For a regular configuration as indicated on the documentation:

from import translate_v3 as translate
client = translate.TranslationServiceClient(credentials = credentials)

When using language detection, with detect_language module:

detect_language = client.detect_language(content="any given string", parent=parent)

I’m getting following error since the last release of google-cloud translation:

TypeError: detect_language() got an unexpected keyword argument 'content'

The documentation does NOT indicate changes on how to use this module:

How have your resolved this issue?

asked 16 hours ago

3951 gold badge5 silver badges13 bronze badges

Latest posts