报错信息也没有和我代码相关的地方,代码仔细检查过了没有对图形化界面有操作,麻烦看下可能是什么问题
Error handling request
Traceback (most recent call last):
File "C:\Users\jay\AppData\Local\Programs\Python\Python38\lib\site-packages\aiohttp\web_protocol.py", line 418, in start
resp = await task
File "C:\Users\jay\AppData\Local\Programs\Python\Python38\lib\site-packages\aiohttp\web_app.py", line 458, in _handle
resp = await handler(request)
File "C:\Users\jay\AppData\Local\Programs\Python\Python38\lib\site-packages\tqsdk\tqwebhelper.py", line 268, in connection_handler
send_msg = self.get_send_msg(self._data)
File "C:\Users\jay\AppData\Local\Programs\Python\Python38\lib\site-packages\tqsdk\tqwebhelper.py", line 260, in get_send_msg
return simplejson.dumps({
File "C:\Users\jay\AppData\Local\Programs\Python\Python38\lib\site-packages\simplejson\__init__.py", line 398, in dumps
return cls(
File "C:\Users\jay\AppData\Local\Programs\Python\Python38\lib\site-packages\simplejson\encoder.py", line 296, in encode
chunks = self.iterencode(o, _one_shot=True)
File "C:\Users\jay\AppData\Local\Programs\Python\Python38\lib\site-packages\simplejson\encoder.py", line 378, in iterencode
return _iterencode(o, 0)
File "C:\Users\jay\AppData\Local\Programs\Python\Python38\lib\site-packages\simplejson\encoder.py", line 272, in default
raise TypeError('Object of type %s is not JSON serializable' %
TypeError: Object of type int64 is not JSON serializable
Error handling request
Traceback (most recent call last):
File "C:\Users\jay\AppData\Local\Programs\Python\Python38\lib\site-packages\aiohttp\web_protocol.py", line 418, in start
resp = await task
File "C:\Users\jay\AppData\Local\Programs\Python\Python38\lib\site-packages\aiohttp\web_app.py", line 458, in _handle
resp = await handler(request)
File "C:\Users\jay\AppData\Local\Programs\Python\Python38\lib\site-packages\tqsdk\tqwebhelper.py", line 268, in connection_handler
send_msg = self.get_send_msg(self._data)
File "C:\Users\jay\AppData\Local\Programs\Python\Python38\lib\site-packages\tqsdk\tqwebhelper.py", line 260, in get_send_msg
return simplejson.dumps({
File "C:\Users\jay\AppData\Local\Programs\Python\Python38\lib\site-packages\simplejson\__init__.py", line 398, in dumps
return cls(
File "C:\Users\jay\AppData\Local\Programs\Python\Python38\lib\site-packages\simplejson\encoder.py", line 296, in encode
chunks = self.iterencode(o, _one_shot=True)
File "C:\Users\jay\AppData\Local\Programs\Python\Python38\lib\site-packages\simplejson\encoder.py", line 378, in iterencode
return _iterencode(o, 0)
File "C:\Users\jay\AppData\Local\Programs\Python\Python38\lib\site-packages\simplejson\encoder.py", line 272, in default
raise TypeError('Object of type %s is not JSON serializable' %
TypeError: Object of type int64 is not JSON serializable
Error handling request
Traceback (most recent call last):
File "C:\Users\jay\AppData\Local\Programs\Python\Python38\lib\site-packages\aiohttp\web_protocol.py", line 418, in start
resp = await task
File "C:\Users\jay\AppData\Local\Programs\Python\Python38\lib\site-packages\aiohttp\web_app.py", line 458, in _handle
resp = await handler(request)
File "C:\Users\jay\AppData\Local\Programs\Python\Python38\lib\site-packages\tqsdk\tqwebhelper.py", line 268, in connection_handler
send_msg = self.get_send_msg(self._data)
File "C:\Users\jay\AppData\Local\Programs\Python\Python38\lib\site-packages\tqsdk\tqwebhelper.py", line 260, in get_send_msg
return simplejson.dumps({
File "C:\Users\jay\AppData\Local\Programs\Python\Python38\lib\site-packages\simplejson\__init__.py", line 398, in dumps
return cls(
File "C:\Users\jay\AppData\Local\Programs\Python\Python38\lib\site-packages\simplejson\encoder.py", line 296, in encode
chunks = self.iterencode(o, _one_shot=True)
File "C:\Users\jay\AppData\Local\Programs\Python\Python38\lib\site-packages\simplejson\encoder.py", line 378, in iterencode
return _iterencode(o, 0)
File "C:\Users\jay\AppData\Local\Programs\Python\Python38\lib\site-packages\simplejson\encoder.py", line 272, in default
raise TypeError('Object of type %s is not JSON serializable' %
TypeError: Object of type int64 is not JSON serializable