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

[Bug]: Expecting value: line 1 column 1 (char 0) in tilde, sysTran and volcEngine translators #128

Open
2 tasks done
ali1hammoud opened this issue May 13, 2023 · 3 comments
Assignees

Comments

@ali1hammoud
Copy link

ali1hammoud commented May 13, 2023

Debug Tips

  • I'm sure I've read this project's Issues of README.

What happened?

I wrote these code:
ts.translate_text('hello, how are you?', translator='sysTran', from_language='en', to_language='ar')

ts.translate_text('hello, how are you?', translator='tilde', from_language='en', to_language='ar')

ts.translate_text('hello, how are you?', translator='volcEngine', 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

---------------------------------------------------------------------------
JSONDecodeError                           Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/requests/models.py in json(self, **kwargs)
    970         try:
--> 971             return complexjson.loads(self.text, **kwargs)
    972         except JSONDecodeError as e:

8 frames
JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

JSONDecodeError                           Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/requests/models.py in json(self, **kwargs)
    973             # Catch JSON-related errors and raise as requests.JSONDecodeError
    974             # This aliases json.JSONDecodeError and simplejson.JSONDecodeError
--> 975             raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
    976 
    977     @property

JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Screenshots

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@UlionTse
Copy link
Owner

Hello fiend,
What is your Runtime Environment(Other)?
Others questions, please upgrade v5.7.2
translators_issues125

@ali1hammoud
Copy link
Author

After updating to 5.7.6
translator='sysTran' is working now.

but the another translators:
The function tilde() has been not certified yet.
The function volcEngine() has been not certified yet.

@UlionTse
Copy link
Owner

Hello friend!
Although these functions are implemented, they have not passed the test due to various reasons, and they are in an unavailable status. This status is also marked on the README page.

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

No branches or pull requests

2 participants