Closed ali1hammoud closed 1 year ago
I wrote this code: ts.translate_text('hello, how are you?', translator='languageWire', from_language='en', to_language='ar')
ts.translate_text('hello, how are you?', translator='languageWire', from_language='en', to_language='ar')
5.7.1
3.10
Other
Russia
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-19-0524fc051e29> in <cell line: 1>() ----> 1 ts.translate_text('hello, how are you?', translator='languageWire', from_language='en', to_language='ar') 4 frames /usr/local/lib/python3.10/dist-packages/translators/server.py in get_lwt_data(self, lwt_js_url, ss, headers, timeout, proxies) 4374 js_html = ss.get(lwt_js_url, headers=headers, timeout=timeout, proxies=proxies).text 4375 lwt_data = { -> 4376 'x-lwt-application-id': re.compile('"X-LWT-Application-ID":"(.*?)"').search(js_html).group(1), 4377 'x-lwt-build-id': re.compile('"X-LWT-Build-ID":"(.*?)"').search(js_html).group(1), 4378 } AttributeError: 'NoneType' object has no attribute 'group'
Hello fiend, What is your Runtime Environment(Other)? This is a bug, please upgrade v5.7.2
Debug Tips
What happened?
I wrote this code:
ts.translate_text('hello, how are you?', translator='languageWire', from_language='en', to_language='ar')
APP Version
5.7.1
Python Version
3.10
Runtime Environment
Other
Country/Region
Russia
Relevant log output
Code of Conduct