出错反馈信息如下,拷贝下来不支持中文显示,帐号密码XXXXX/MMMMM替代:
Python 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 24 2018, 00:16:47) [MSC v.1916 64 bit (AMD64)] on win32
Type “help”, “copyright”, “credits” or “license()” for more information.
>>>
============================= RESTART: C:\rb.py =============================
?????????,????????????????,????????????:https://www.shinnytech.com/blog/disclaimer/
— Logging error —
Traceback (most recent call last):
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\logging\__init__.py”, line 996, in emit
stream.write(msg)
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\encodings\cp1252.py”, line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: ‘charmap’ codec can’t encode characters in position 135-138: character maps to <undefined>
Call stack:
File “<string>”, line 1, in <module>
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\idlelib\run.py”, line 144, in main
ret = method(*args, **kwargs)
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\idlelib\run.py”, line 474, in runcode
exec(code, self.locals)
File “C:\rb.py”, line 4, in <module>
api = TqApi(TqAccount(“M????”, “XXXXXX”, “MMMMMM”))
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\tqsdk\api.py”, line 239, in __init__
if not self.wait_update(deadline=deadline): # ?????????????
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\tqsdk\api.py”, line 959, in wait_update
self._run_once()
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\tqsdk\api.py”, line 1634, in _run_once
self._loop.run_forever()
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\asyncio\base_events.py”, line 438, in run_forever
self._run_once()
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\asyncio\base_events.py”, line 1451, in _run_once
handle._run()
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\asyncio\events.py”, line 145, in _run
self._callback(*self._args)
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\tqsdk\api.py”, line 1741, in _connect
self._logger.debug(“websocket message received from %s: %s”, url, msg)
Message: ‘websocket message received from %s: %s’
Arguments: (‘ws://140.206.244.250:37480/trade’, ‘{“aid”:”rtn_brokers”,”brokers”:[“M????”]}’)
2020-07-16 16:26:36,028 – INFO – ??: ? ws://140.206.244.250:37480/trade ????????
— Logging error —
Traceback (most recent call last):
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\logging\__init__.py”, line 996, in emit
stream.write(msg)
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\encodings\cp1252.py”, line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: ‘charmap’ codec can’t encode characters in position 35-36: character maps to <undefined>
Call stack:
File “<string>”, line 1, in <module>
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\idlelib\run.py”, line 144, in main
ret = method(*args, **kwargs)
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\idlelib\run.py”, line 474, in runcode
exec(code, self.locals)
File “C:\rb.py”, line 4, in <module>
api = TqApi(TqAccount(“M????”, “xxxxxx”, “mmmmmm”))
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\tqsdk\api.py”, line 239, in __init__
if not self.wait_update(deadline=deadline): # ?????????????
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\tqsdk\api.py”, line 942, in wait_update
self._run_until_idle()
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\tqsdk\api.py”, line 1643, in _run_until_idle
self._run_once()
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\tqsdk\api.py”, line 1634, in _run_once
self._loop.run_forever()
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\asyncio\base_events.py”, line 438, in run_forever
self._run_once()
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\asyncio\base_events.py”, line 1451, in _run_once
handle._run()
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\asyncio\events.py”, line 145, in _run
self._callback(*self._args)
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\tqsdk\api.py”, line 1687, in _notify_watcher
notify_logger.log(level, “??: %s”, notify[n][“content”])
Message: ‘??: %s’
Arguments: (‘? ws://140.206.244.250:37480/trade ????????’,)
— Logging error —
Traceback (most recent call last):
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\logging\__init__.py”, line 996, in emit
stream.write(msg)
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\encodings\cp1252.py”, line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: ‘charmap’ codec can’t encode characters in position 252-255: character maps to <undefined>
Call stack:
File “<string>”, line 1, in <module>
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\idlelib\run.py”, line 144, in main
ret = method(*args, **kwargs)
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\idlelib\run.py”, line 474, in runcode
exec(code, self.locals)
File “C:\rb.py”, line 4, in <module>
api = TqApi(TqAccount(“M????”, “xxxxxx”, “mmmmmm”))
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\tqsdk\api.py”, line 239, in __init__
if not self.wait_update(deadline=deadline): # ?????????????
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\tqsdk\api.py”, line 942, in wait_update
self._run_until_idle()
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\tqsdk\api.py”, line 1643, in _run_until_idle
self._run_once()
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\tqsdk\api.py”, line 1634, in _run_once
self._loop.run_forever()
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\asyncio\base_events.py”, line 438, in run_forever
self._run_once()
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\asyncio\base_events.py”, line 1451, in _run_once
handle._run()
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\asyncio\events.py”, line 145, in _run
self._callback(*self._args)
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\tqsdk\api.py”, line 1741, in _connect
self._logger.debug(“websocket message received from %s: %s”, url, msg)
Message: ‘websocket message received from %s: %s’
Arguments: (‘ws://140.206.244.250:37480/trade’, ‘{“aid”:”rtn_data”,”data”:[{“notify”:{“92e925f2f68844ddbb93351df2981aac”:{“type”:”MESSAGE”,”level”:”INFO”,”code”:324,”session_id”:-375096035,”content”:”????”}}}]}’)
— Logging error —
Traceback (most recent call last):
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\logging\__init__.py”, line 996, in emit
stream.write(msg)
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\encodings\cp1252.py”, line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: ‘charmap’ codec can’t encode characters in position 2085-2093: character maps to <undefined>
Call stack:
File “<string>”, line 1, in <module>
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\idlelib\run.py”, line 144, in main
ret = method(*args, **kwargs)
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\idlelib\run.py”, line 474, in runcode
exec(code, self.locals)
File “C:\rb.py”, line 4, in <module>
api = TqApi(TqAccount(“M????”, “xxxxxx”, “mmmmmm”))
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\tqsdk\api.py”, line 239, in __init__
if not self.wait_update(deadline=deadline): # ?????????????
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\tqsdk\api.py”, line 942, in wait_update
self._run_until_idle()
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\tqsdk\api.py”, line 1643, in _run_until_idle
self._run_once()
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\tqsdk\api.py”, line 1634, in _run_once
self._loop.run_forever()
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\asyncio\base_events.py”, line 438, in run_forever
self._run_once()
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\asyncio\base_events.py”, line 1451, in _run_once
handle._run()
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\asyncio\events.py”, line 145, in _run
self._callback(*self._args)
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\tqsdk\api.py”, line 1741, in _connect
self._logger.debug(“websocket message received from %s: %s”, url, msg)
Message: ‘websocket message received from %s: %s’
Arguments: (‘ws://140.206.244.250:37480/trade’, ‘{“aid”:”rtn_data”,”data”:[{“trade”:{“xxxxxx”:{“user_id”:”xxxxxx”,”trading_day”:””,”trade_more_data”:false,”accounts”:{“CNY”:{“user_id”:”xxxxxx”,”currency”:”CNY”,”pre_balance”:10688.64,”deposit”:0.0,”withdraw”:0.0,”close_profit”:689.9999999999909,”commission”:7.4349272,”premium”:0.0,”static_balance”:10688.64,”position_profit”:0.0,”float_profit”:0.0,”balance”:11371.20507279999,”margin”:0.0,”frozen_margin”:0.0,”frozen_commission”:0.0,”frozen_premium”:0.0,”available”:11371.20507279999,”risk_ratio”:0.0,”market_value”:0.0,”ctp_balance”:11371.20507279999,”ctp_available”:11371.20507279999}},”positions”:{“SHFE.rb2010”:{“user_id”:”xxxxxx”,”exchange_id”:”SHFE”,”instrument_id”:”rb2010″,”volume_long_today”:0,”volume_long_his”:0,”volume_long”:0,”volume_long_frozen_today”:0,”volume_long_frozen_his”:0,”volume_long_frozen”:0,”volume_short_today”:0,”volume_short_his”:0,”volume_short”:0,”volume_short_frozen_today”:0,”volume_short_frozen_his”:0,”volume_short_frozen”:0,”volume_long_yd”:0,”volume_short_yd”:2,”pos_long_his”:0,”pos_long_today”:0,”pos_short_his”:0,”pos_short_today”:0,”open_price_long”:0.0,”open_price_short”:0.0,”open_cost_long”:0.0,”open_cost_short”:0.0,”position_price_long”:0.0,”position_price_short”:0.0,”position_cost_long”:0.0,”position_cost_short”:0.0,”last_price”:3703.0,”float_profit_long”:0.0,”float_profit_short”:0.0,”float_profit”:0.0,”position_profit_long”:0.0,”position_profit_short”:0.0,”position_profit”:0.0,”margin_long”:0.0,”margin_short”:0.0,”margin”:0.0,”market_value_long”:0.0,”market_value_short”:0.0,”market_value”:0.0}},”orders”:{“8dccc63d9d12b1cb743f3373955bab3b”:{“seqno”:8,”user_id”:”xxxxxx”,”order_id”:”8dccc63d9d12b1cb743f3373955bab3b”,”exchange_id”:”SHFE”,”instrument_id”:”rb2010″,”direction”:”BUY”,”offset”:”CLOSE”,”volume_orign”:1,”price_type”:”LIMIT”,”limit_price”:3712.0,”time_condition”:”GFD”,”volume_condition”:”ANY”,”insert_date_time”:1594882418000000000,”exchange_order_id”:” 32874525″,”status”:”FINISHED”,”volume_left”:0,”last_msg”:”?????????”,”frozen_margin”:0.0,”frozen_premium”:0.0,”frozen_commission”:0.0},”SERVER.000000000001.1d334252.9″:{“seqno”:1,”user_id”:”xxxxxx”,”order_id”:”SERVER.000000000001.1d334252.9″,”exchange_id”:”SHFE”,”instrument_id”:”ag2012″,”direction”:”BUY”,”offset”:”OPEN”,”volume_orign”:1,”price_type”:”LIMIT”,”limit_price”:0.0,”time_condition”:”GFD”,”volume_condition”:”ANY”,”insert_date_time”:0,”exchange_order_id”:”TJBD_0000011″,”status”:”FINISHED”,”volume_left”:0,”last_msg”:””,”frozen_margin”:0.0,”frozen_premium”:0.0,”frozen_commission”:0.0},”b27d92155cb5d0e8b99afb7668f37398″:{“seqno”:4,”user_id”:”xxxxxx”,”order_id”:”b27d92155cb5d0e8b99afb7668f37398″,”exchange_id”:”SHFE”,”instrument_id”:”rb2010″,”direction”:”BUY”,”offset”:”CLOSE”,”volume_orign”:1,”price_type”:”LIMIT”,”limit_price”:3697.0,”time_condition”:”GFD”,”volume_condition”:”ANY”,”insert_date_time”:1594881851000000000,”exchange_order_id”:” 32205593″,”status”:”FINISHED”,”volume_left”:0,”last_msg”:”?????????”,”frozen_margin”:0.0,”frozen_premium”:0.0,”frozen_commission”:0.0}},”trades”:{“8dccc63d9d12b1cb743f3373955bab3b| 3366423”:{“seqno”:9,”user_id”:”xxxxxx”,”trade_id”:”8dccc63d9d12b1cb743f3373955bab3b| 3366423″,”exchange_id”:”SHFE”,”instrument_id”:”rb2010″,”order_id”:”8dccc63d9d12b1cb743f3373955bab3b”,”exchange_trade_id”:” 3366423″,”direction”:”BUY”,”offset”:”CLOSE”,”volume”:1,”price”:3712.000000000001,”trade_date_time”:1594882418000000000,”commission”:0.0},”b27d92155cb5d0e8b99afb7668f37398| 3272163″:{“seqno”:5,”user_id”:”xxxxxx”,”trade_id”:”b27d92155cb5d0e8b99afb7668f37398| 3272163″,”exchange_id”:”SHFE”,”instrument_id”:”rb2010″,”order_id”:”b27d92155cb5d0e8b99afb7668f37398″,”exchange_trade_id”:” 3272163″,”direction”:”BUY”,”offset”:”CLOSE”,”volume”:1,”price”:3697.0,”trade_date_time”:1594881851000000000,”commission”:0.0}},”banks”:{“10”:{“id”:”10″,”name”:”????”},”12″:{“id”:”12″,”name”:”????”},”2″:{“id”:”2″,”name”:”????”},”5″:{“id”:”5″,”name”:”????”},”6″:{“id”:”6″,”name”:”????”}},”transfers”:{}}}}]}’)
— Logging error —
Traceback (most recent call last):
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\logging\__init__.py”, line 996, in emit
stream.write(msg)
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\encodings\cp1252.py”, line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: ‘charmap’ codec can’t encode characters in position 255-266: character maps to <undefined>
Call stack:
File “<string>”, line 1, in <module>
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\idlelib\run.py”, line 144, in main
ret = method(*args, **kwargs)
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\idlelib\run.py”, line 474, in runcode
exec(code, self.locals)
File “C:\rb.py”, line 4, in <module>
api = TqApi(TqAccount(“M????”, “xxxxxx”, “mmmmmm”))
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\tqsdk\api.py”, line 239, in __init__
if not self.wait_update(deadline=deadline): # ?????????????
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\tqsdk\api.py”, line 942, in wait_update
self._run_until_idle()
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\tqsdk\api.py”, line 1643, in _run_until_idle
self._run_once()
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\tqsdk\api.py”, line 1634, in _run_once
self._loop.run_forever()
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\asyncio\base_events.py”, line 438, in run_forever
self._run_once()
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\asyncio\base_events.py”, line 1451, in _run_once
handle._run()
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\asyncio\events.py”, line 145, in _run
self._callback(*self._args)
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\tqsdk\api.py”, line 1741, in _connect
self._logger.debug(“websocket message received from %s: %s”, url, msg)
Message: ‘websocket message received from %s: %s’
Arguments: (‘ws://140.206.244.250:37480/trade’, ‘{“aid”:”rtn_data”,”data”:[{“notify”:{“5fe8f4500fa549b19fcbf7c16d10f4ba”:{“type”:”MESSAGE”,”level”:”WARNING”,”code”:336,”session_id”:-375096035,”content”:”????????????!”}}}]}’)
2020-07-16 16:26:36,575 – INFO – ??: ????
— Logging error —
Traceback (most recent call last):
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\logging\__init__.py”, line 996, in emit
stream.write(msg)
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\encodings\cp1252.py”, line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: ‘charmap’ codec can’t encode characters in position 35-36: character maps to <undefined>
Call stack:
File “<string>”, line 1, in <module>
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\idlelib\run.py”, line 144, in main
ret = method(*args, **kwargs)
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\idlelib\run.py”, line 474, in runcode
exec(code, self.locals)
File “C:\rb.py”, line 4, in <module>
api = TqApi(TqAccount(“M????”, “xxxxxx”, “mmmmmm”))
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\tqsdk\api.py”, line 239, in __init__
if not self.wait_update(deadline=deadline): # ?????????????
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\tqsdk\api.py”, line 942, in wait_update
self._run_until_idle()
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\tqsdk\api.py”, line 1643, in _run_until_idle
self._run_once()
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\tqsdk\api.py”, line 1634, in _run_once
self._loop.run_forever()
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\asyncio\base_events.py”, line 438, in run_forever
self._run_once()
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\asyncio\base_events.py”, line 1451, in _run_once
handle._run()
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\asyncio\events.py”, line 145, in _run
self._callback(*self._args)
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\tqsdk\api.py”, line 1687, in _notify_watcher
notify_logger.log(level, “??: %s”, notify[n][“content”])
Message: ‘??: %s’
Arguments: (‘????’,)
2020-07-16 16:26:36,685 – WARNING – ??: ????????????!
— Logging error —
Traceback (most recent call last):
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\logging\__init__.py”, line 996, in emit
stream.write(msg)
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\encodings\cp1252.py”, line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: ‘charmap’ codec can’t encode characters in position 36-37: character maps to <undefined>
Call stack:
File “<string>”, line 1, in <module>
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\idlelib\run.py”, line 144, in main
ret = method(*args, **kwargs)
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\idlelib\run.py”, line 474, in runcode
exec(code, self.locals)
File “C:\rb.py”, line 4, in <module>
api = TqApi(TqAccount(“M????”, “xxxxxx”, “mmmmmm”))
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\tqsdk\api.py”, line 239, in __init__
if not self.wait_update(deadline=deadline): # ?????????????
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\tqsdk\api.py”, line 942, in wait_update
self._run_until_idle()
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\tqsdk\api.py”, line 1643, in _run_until_idle
self._run_once()
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\tqsdk\api.py”, line 1634, in _run_once
self._loop.run_forever()
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\asyncio\base_events.py”, line 438, in run_forever
self._run_once()
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\asyncio\base_events.py”, line 1451, in _run_once
handle._run()
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\asyncio\events.py”, line 145, in _run
self._callback(*self._args)
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\tqsdk\api.py”, line 1687, in _notify_watcher
notify_logger.log(level, “??: %s”, notify[n][“content”])
Message: ‘??: %s’
Arguments: (‘????????????!’,)
2020-07-16 16:26:36,763 – INFO – ??: ? wss://openmd.shinnytech.com/t/md/front/mobile ????????
— Logging error —
Traceback (most recent call last):
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\logging\__init__.py”, line 996, in emit
stream.write(msg)
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\encodings\cp1252.py”, line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: ‘charmap’ codec can’t encode characters in position 35-36: character maps to <undefined>
Call stack:
File “<string>”, line 1, in <module>
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\idlelib\run.py”, line 144, in main
ret = method(*args, **kwargs)
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\idlelib\run.py”, line 474, in runcode
exec(code, self.locals)
File “C:\rb.py”, line 4, in <module>
api = TqApi(TqAccount(“M????”, “xxxxxx”, “mmmmmm”))
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\tqsdk\api.py”, line 239, in __init__
if not self.wait_update(deadline=deadline): # ?????????????
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\tqsdk\api.py”, line 942, in wait_update
self._run_until_idle()
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\tqsdk\api.py”, line 1643, in _run_until_idle
self._run_once()
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\tqsdk\api.py”, line 1634, in _run_once
self._loop.run_forever()
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\asyncio\base_events.py”, line 438, in run_forever
self._run_once()
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\asyncio\base_events.py”, line 1451, in _run_once
handle._run()
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\asyncio\events.py”, line 145, in _run
self._callback(*self._args)
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\tqsdk\api.py”, line 1687, in _notify_watcher
notify_logger.log(level, “??: %s”, notify[n][“content”])
Message: ‘??: %s’
Arguments: (‘? wss://openmd.shinnytech.com/t/md/front/mobile ????????’,)