请输入验证码:4peW5G
Traceback (most recent call last):
File "hello_miai.py", line 232, in _get_logon_info
with open(self._login_info_dir+'/config.json','r',encoding='utf-8') as json_file:
FileNotFoundError: [Errno 2] No such file or directory: '../.xiaoai/config.json'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "hello_miai.py", line 256, in <module>
xiaomi_tts(miid,password,login_info_dir='../.xiaoai',can_input_capt=True).speech("Token已生成",int(num))
File "hello_miai.py", line 81, in __init__
self._get_logon_info()
File "hello_miai.py", line 238, in _get_logon_info
self._serviceToken()
File "hello_miai.py", line 173, in _serviceToken
_serviceLoginAuth2_json=self._serviceLoginAuth2(capt_code)
File "hello_miai.py", line 125, in _serviceLoginAuth2
auth_post_data['captCode']=captCode
UnboundLocalError: local variable 'auth_post_data' referenced before assignment