deep-translator
deep-translator copied to clipboard
RequestError
- deep_translator version: 1.11.4
- Python version: 3.11
- Operating System: Debian 12 slim (as a container)
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
@roaddust2 Were you able to resolve this?
@roaddust2 Were you able to resolve this?
Same question, as I have the same issue across different languages.
@mistune @IliasAarab Unfortunately no, used MyMemoryTranslator instead for quick hotfix.