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]: the JSON object must be str, bytes or bytearray, not bool in yeekit translator #129

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

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 this code:

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

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-25-651789a4e166> in <cell line: 1>()
----> 1 ts.translate_text('hello, how are you?', translator='yeekit', from_language='en', to_language='ar')

4 frames
/usr/lib/python3.10/json/__init__.py in loads(s, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw)
    337     else:
    338         if not isinstance(s, (bytes, bytearray)):
--> 339             raise TypeError(f'the JSON object must be str, bytes or bytearray, '
    340                             f'not {s.__class__.__name__}')
    341         s = s.decode(detect_encoding(s), 'surrogatepass')

TypeError: the JSON object must be str, bytes or bytearray, not bool

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)?
yeekit origin server is bad, you can access web to test.
Others questions, please upgrade v5.7.2

@ali1hammoud
Copy link
Author

ali1hammoud commented May 21, 2023

Hello, my RE is colab in all issues that I opened.

After updating to 5.7.6
I got:
The function yeekit() 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