Python-Voice-Assistant icon indicating copy to clipboard operation
Python-Voice-Assistant copied to clipboard

无法运行的问题

Open uuair opened this issue 4 years ago • 0 comments

第一个问题是pyaudio已经不被新版python支持了python3.7.4,Mac或者Linux下,win的还有机会继续使用。 另一个是编码问题:

you said: 你好
Traceback (most recent call last):
  File "aitalk.py", line 129, in <module>
    response = robot(request)
  File "aitalk.py", line 78, in robot
    response_dict = json.loads(response.text)
  File "/Users/uuair/.pyenv/versions/3.6.0/lib/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/Users/uuair/.pyenv/versions/3.6.0/lib/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/Users/uuair/.pyenv/versions/3.6.0/lib/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

uuair avatar Oct 14 '19 03:10 uuair