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

Error: Traceback (most recent call last) #72

Open
laraws opened this issue Aug 5, 2021 · 3 comments
Open

Error: Traceback (most recent call last) #72

laraws opened this issue Aug 5, 2021 · 3 comments

Comments

@laraws
Copy link

laraws commented Aug 5, 2021

When I ran the wd command to get English translation from Chinese input, ther error displayed below:

➜  ~ wd 符号
Traceback (most recent call last):
  File "WudaoCommand.py", line 195, in <module>
    main()
  File "WudaoCommand.py", line 191, in main
    app.query(app.word)
  File "WudaoCommand.py", line 105, in query
    word_info = json.loads(server_context)
  File "/usr/lib/python3.8/json/__init__.py", line 357, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.8/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Why didn't this happen? How to solve it?

@Syize
Copy link

Syize commented Sep 12, 2021

使用""将汉字括起来

@laraws
Copy link
Author

laraws commented Sep 13, 2021

使用""将汉字括起来

I have tried it and it outputted the same error.

@ChestnutHeng
Copy link
Owner

I tried, only 符号 could replicate this error, it's a bug. If you find other words, please contact me

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

No branches or pull requests

3 participants