vn.py量化社区
By Traders, For Traders.
Member
avatar
加入于:
帖子: 5
声望: 0

Traceback (most recent call last):
File "D:\vnstudio\lib\threading.py", line 865, in run
self._target(self._args, **self._kwargs)
File "D:\yuanma\vnpy\vnpy\vnpy\event\engine.py", line 60, in _run
self._process(event)
File "D:\yuanma\vnpy\vnpy\vnpy\event\engine.py", line 76, in _process
[handler(event) for handler in self._general_handlers]
File "D:\yuanma\vnpy\vnpy\vnpy\event\engine.py", line 76, in <listcomp>
[handler(event) for handler in self._general_handlers]
File "D:\yuanma\vnpy\vnpy\vnpy\app\rpc_service\engine.py", line 115, in process_event
self.server.publish("", event)
File "D:\yuanma\vnpy\vnpy\vnpy\rpc__init.py", line 188, in publish
self.
socket_pub.send_pyobj([topic, data])
File "D:\vnstudio\lib\site-packages\zmq\sugar\socket.py", line 626, in send_pyobj
msg = pickle.dumps(obj, protocol)
TypeError: can't pickle _thread.lock objects
Exception in thread Thread-6:
Traceback (most recent call last):
File "D:\vnstudio\lib\threading.py", line 917, in _bootstrap_inner
self.run()
File "D:\vnstudio\lib\threading.py", line 865, in run
self._target(
self._args, **self._kwargs)
File "D:\yuanma\vnpy\vnpy\vnpy\event\engine.py", line 60, in _run
self._process(event)
File "D:\yuanma\vnpy\vnpy\vnpy\event\engine.py", line 76, in _process
[handler(event) for handler in self._general_handlers]
File "D:\yuanma\vnpy\vnpy\vnpy\event\engine.py", line 76, in <listcomp>
[handler(event) for handler in self._general_handlers]
File "D:\yuanma\vnpy\vnpy\vnpy\app\rpc_service\engine.py", line 115, in process_event
self.server.publish("", event)
File "D:\yuanma\vnpy\vnpy\vnpy\rpc__init.py", line 188, in publish
self.
socket_pub.send_pyobj([topic, data])
File "D:\vnstudio\lib\site-packages\zmq\sugar\socket.py", line 626, in send_pyobj
msg = pickle.dumps(obj, protocol)
TypeError: can't pickle _thread.lock objects

Administrator
avatar
加入于:
帖子: 4595
声望: 262

这里报错是说,你在尝试发送一个多线程锁对象,而这个对象是无法通过pickle序列化的,请检查是否什么地方代码写错了。

© 2015-2019 上海韦纳软件科技有限公司
备案服务号:沪ICP备18006526号-3

沪公网安备 31011502017034号