Skip to content
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

'NoneType' object has no attribute 'group' #29

Open
jerry460 opened this issue Jun 30, 2022 · 2 comments
Open

'NoneType' object has no attribute 'group' #29

jerry460 opened this issue Jun 30, 2022 · 2 comments

Comments

@jerry460
Copy link

Traceback (most recent call last):
File "c:/Users/user/Downloads/free-google-translate-master/Python/1.py", line 5, in
translator.translate('Good Morning', dest='ta')
File "C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\site-packages\googletrans\client.py", line 182, in translate
data = self._translate(text, dest, src, kwargs)
File "C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\site-packages\googletrans\client.py", line 78, in _translate
token = self.token_acquirer.do(text)
File "C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\site-packages\googletrans\gtoken.py", line 194, in do
self._update()
File "C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\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'
This is my trace back.
i want to know how can fix the problem

@shauryauppal
Copy link

Same issue I am also facing you found any fix?

@jerry460
Copy link
Author

no,QAQ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants