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…
"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
Bro it it showing Type error : one positional argument missing : "self"
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.
@Prasad Katkade was your problem solved? I am getting the same error and I am not able to join the whatsapp grp either.
@Try2Catch please can you post the solution here?
Hi sir how can I do the same thing while it's in the file i.e. reading data from an XYZ.txt and converting to any language and output to ABC.TXT please let us know
You should put it in github…Good job by the way.
Sir it is showing error
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???
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?
"If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry." i am facing this error
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."