ricequant / rqalpha-mod-vnpy

RQAlpha 对接 vnpy 的扩展 Mod。通过启用该 Mod 来实现期货策略的实盘交易
Apache License 2.0
298 stars 59 forks source link

运行vnpy mod时报错 #3

Closed FallacyWalker closed 7 years ago

FallacyWalker commented 7 years ago

rqalpha version: 2.0.7 rqalpha_mod_vnpy version: 0.9.11 使用pycharm运行;

今天又没有这个错误了 。

Exception in thread Thread-7: Traceback (most recent call last): File "C:\APPS\Anaconda4_32\lib\threading.py", line 801, in bootstrap_inner self.run() File "C:\APPS\Anaconda4_32\lib\threading.py", line 754, in run self.target(*self.args, **self.kwargs) File "C:\vnpy\vn.trader\eventEngine.py", line 218, in run self.process(event) File "C:\vnpy\vn.trader\eventEngine.py", line 228, in process [handler(event) for handler in self.handlers[event.type_]] File "C:\LocalRqalpha\rqalpha\rqalpha\mod\rqalpha_mod_vnpy\vnpy_engine.py", line 254, in self.event_engine.register(EVENT_ERROR, lambda e: system_log.error(e['data'])) AttributeError: Event instance has no attribute 'getitem'

Cuizi7 commented 7 years ago

麻烦您贴一下 rqalpha 的版本以及 rqalpha-mod-vnpy 的版本。

FallacyWalker commented 7 years ago

issue已更新;

Cuizi7 commented 7 years ago

那暂时 close了,如果之后再遇到相同的问题可以先尝试删掉 .rqalpha 文件夹下的配置文件。