How to use Google Translate in python:Part-2



Hello Friends,

Part – 1 : https://youtu.be/WH7EQFbuIrI

In this video, you will learn that how you can use google translation api in python.

In this part of the video, you will be able to get that how to configure the things on your system.

Below is the link to get all the instructions:

https://cloud.google.com/translate/docs/reference/libraries#client-libraries-usage-python

If you have not subscribed the channel please hit the subscribe button and press the bell icon. You can connect…

Related Posts

11 Comments

  1. "E:PythonPython ProjectsJARVISvenvScriptspython.exe" "E:/Python/Python Projects/JARVIS/translate.py"

    Traceback (most recent call last):

    File "E:/Python/Python Projects/JARVIS/translate.py", line 15, in <module>

    target_language=target)

    TypeError: translate() missing 1 required positional argument: 'self'

    Process finished with exit code 1

  2. Hey ! thanks for video but i'm getting this error

    google.api_core.exceptions.Forbidden: 403 POST https://translation.googleapis.com/language/translate/v2: Cloud Translation API has not been used in project 519806447603 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/translate.googleapis.com/overview?project=519806447603 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.

  3. hey, I did what you did and I imported the google cloud module using the Pycharm Terminal but when I try to import it says it isnt there! I looked trought the folder lib and inside the site packedges google was there…. what should i do???

  4. HI thanks very much for the video.
    I followed all your step but I still get error as below:
    Traceback (most recent call last):
    File "C:/Users/三星/PycharmProjects/translator/main.py", line 4, in <module>
    translate_client = translate.Client()
    File "C:Users三星PycharmProjectstranslatorvenvlibsite-packagesgooglecloudtranslate_v2client.py", line 64, in _init_
    super(Client, self).__init__(credentials=credentials, _http=_http)
    File "C:Users三星PycharmProjectstranslatorvenvlibsite-packagesgooglecloudclient.py", line 130, in _init_
    credentials, _ = google.auth.default()
    File "C:Users三星PycharmProjectstranslatorvenvlibsite-packagesgoogleauth_default.py", line 306, in default
    raise exceptions.DefaultCredentialsError(_HELP_MESSAGE)
    google.auth.exceptions.DefaultCredentialsError: Could not automatically determine credentials. Please set GOOGLE_APPLICATION_CREDENTIALS or explicitly create credentials and re-run the application. For more information, please see https://cloud.google.com/docs/authentication/getting-started

    Process finished with exit code 1

    I already set credentials and added it in advanced settings as well.
    How should I fix it?

  5. i follow your steps but this error appear when i run the python code " raise exceptions.from_http_response(response)

    Forbidden: 403 POST https://translation.googleapis.com/language/translate/v2: Cloud Translation API has not been used in project 1033817950685 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/translate.googleapis.com/overview?project=1033817950685 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry."

Leave a Reply

Your email address will not be published.

© 2022 Code As Pro - Theme by WPEnjoy · Powered by WordPress