|
发表于 2018-5-6 22:30:02
|
显示全部楼层
本帖最后由 jozhi 于 2018-5-6 22:43 编辑
目前有這個錯誤的log @@?
root@HomeAssistant:/config/custom_components# python3 hello_miai.py
请输入米家账号:xxxxxxxxxxx
请输入密码:xxxxxxxxxx
请输入音箱编号(从0开始):0
Traceback (most recent call last):
File "hello_miai.py", line 254, in <module>
xiaomi_tts(miid,password,login_info_dir='../.xiaoai',can_input_capt=True).sp
eech("Token已生成",int(num))
File "hello_miai.py", line 81, in __init__
self._get_logon_info()
File "hello_miai.py", line 231, in _get_logon_info
model=json.load(json_file)
File "/usr/local/lib/python3.6/json/__init__.py", line 299, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File "/usr/local/lib/python3.6/json/__init__.py", line 354, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/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)
|
|