-
Notifications
You must be signed in to change notification settings - Fork 729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
googletrans is not working #346
Comments
Same issue here. Did you find a solution? |
Duplicate with #234 |
Same error. |
same ! |
Same issue, doing |
|
So this doesn't throw the group error, but says |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
python code
from googletrans import Translator
translator = Translator()
translated = translator.translate('svízelná situace', src='cs', dest='hu')
print(translated.text)
this error
D:\work\python\google-message>py index.py
Traceback (most recent call last):
File "index.py", line 48, in
translated = translator.translate('svízelná situace', src='cs', dest='hu')
File "C:\Users\lthak\AppData\Roaming\Python\Python37\site-packages\googletrans\client.py", line 182, in translate
data = self._translate(text, dest, src, kwargs)
File "C:\Users\lthak\AppData\Roaming\Python\Python37\site-packages\googletrans\client.py", line 78, in _translate
token = self.token_acquirer.do(text)
File "C:\Users\lthak\AppData\Roaming\Python\Python37\site-packages\googletrans\gtoken.py", line 194, in do
self._update()
File "C:\Users\lthak\AppData\Roaming\Python\Python37\site-packages\googletrans\gtoken.py", line 62, in _update
code = self.RE_TKK.search(r.text).group(1).replace('var ', '')
AttributeError: 'NoneType' object has no attribute 'group'
The text was updated successfully, but these errors were encountered: