nidhaloff / deep-translator

A flexible free and unlimited python tool to translate between different languages in a simple way using multiple translators.
https://deep-translator.readthedocs.io/en/latest/?badge=latest
Apache License 2.0
1.61k stars 185 forks source link

RequestError #239

Open roaddust2 opened 1 year ago

roaddust2 commented 1 year ago

Description

Hello! And thank you for your work

Recently the translation (ka -> en) stopped working and the error below appeared. I did not change anything in code base related to translation

What I Did

Just calling translate:

from deep_translator import GoogleTranslator

translator = GoogleTranslator(source='ka', target='en')
translator.translate('somestring')

Traceback:

File "/opt/venv/lib/python3.11/site-packages/deep_translator/google.py", line 74, in translate
raise RequestError()
deep_translator.exceptions.RequestError: Request exception can happen due to an api connection error. Please check your connection and try again
mistune commented 1 year ago

@roaddust2 Were you able to resolve this?

IliasAarab commented 6 months ago

@roaddust2 Were you able to resolve this?

Same question, as I have the same issue across different languages.

roaddust2 commented 6 months ago

@mistune @IliasAarab Unfortunately no, used MyMemoryTranslator instead for quick hotfix.