You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I keep getting this error. Sometimes it works but 90% of the time I get this.
File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\site-packages\translators\apis.py", line 964, in <lambda>
repl = lambda x: translator(query_text=x.group(1).strip(), **translator_params) if x.group(1).strip() else ''
File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\site-packages\translators\apis.py", line 248, in google_api
self.language_map = self.get_language_map(host_html)
File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\site-packages\translators\apis.py", line 216, in get_language_map
lang_list_str = re.findall("source_code_name:\[(.*?)\],", host_html)[0]
IndexError: list index out of range
I think it also happens when trying to find tkk ( tkk = re.findall("tkk:'(.*?)'", host_html)[0] )
The text was updated successfully, but these errors were encountered:
trans = translators.google(sent, self.language['src'], self.language['dest'], sleep_seconds=0.1)
File "\anaconda2\envs\python3\lib\site-packages\translators\apis.py", line 248, in google_api
self.language_map = self.get_language_map(host_html)
File "\envs\python3\lib\site-packages\translators\apis.py", line 216, in get_language_map
lang_list_str = re.findall("source_code_name:[(.*?)],", host_html)[0]
IndexError: list index out of range
I keep getting this error. Sometimes it works but 90% of the time I get this.
I think it also happens when trying to find tkk ( tkk = re.findall("tkk:'(.*?)'", host_html)[0] )
The text was updated successfully, but these errors were encountered: