-
Notifications
You must be signed in to change notification settings - Fork 191
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
[Bug]: KeyError: 'data' in iflytek translator #126
Labels
Comments
After updating to 5.7.6 KeyError: 'data'
During handling of the above exception, another exception occurred:
TranslatorError Traceback (most recent call last)
[/usr/local/lib/python3.10/dist-packages/translators/server.py](https://localhost:8080/#) in _wrapper(*args, **kwargs)
279 raise_tips2_url = 'https://github.com/UlionTse/translators#supported-translation-services'
280 raise_tips2 = f'Please read for details: Status of Translator on this webpage({raise_tips2_url}).'
--> 281 raise TranslatorError(f'{raise_tips1} {raise_tips2}')
282 return _wrapper
283
TranslatorError: The function iflytek() has been not certified yet. Please read for details: Status of Translator on this webpage(https://github.com/UlionTse/translators#supported-translation-services). KeyError: 'data'
During handling of the above exception, another exception occurred:
TranslatorError Traceback (most recent call last)
[/usr/local/lib/python3.10/dist-packages/translators/server.py](https://localhost:8080/#) in _wrapper(*args, **kwargs)
279 raise_tips2_url = 'https://github.com/UlionTse/translators#supported-translation-services'
280 raise_tips2 = f'Please read for details: Status of Translator on this webpage({raise_tips2_url}).'
--> 281 raise TranslatorError(f'{raise_tips1} {raise_tips2}')
282 return _wrapper
283
TranslatorError: The function niutrans() has been not certified yet. Please read for details: Status of Translator on this webpage(https://github.com/UlionTse/translators#supported-translation-services). now it is clear that: |
Hello friend! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Debug Tips
What happened?
I wrote this code:
ts.translate_text('hello, how are you?', translator='iflytek', from_language='en', to_language='ar')
ts.translate_text('hello, how are you?', translator='niutrans', from_language='en', to_language='ar')
APP Version
5.7.1
Python Version
3.10
Runtime Environment
colab google
Country/Region
Russia
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: