vn.py官网
你的开源社区量化交易平台
Member
avatar
加入于:
帖子: 5
声望: 0

在examples/vn_trader下运行 python3 run.py 出现如下报错
description

Traceback (most recent call last):
File "/Users/apple/vnpy-master/examples/vn_trader/run.py", line 145, in <module>
main()
File "/Users/apple/vnpy-master/examples/vn_trader/run.py", line 131, in main
main_engine.add_app(DataRecorderApp)
File "/Users/apple/Library/Python/3.7/lib/python/site-packages/vnpy/trader/engine.py", line 96, in add_app
engine = self.add_engine(app.engine_class)
File "/Users/apple/Library/Python/3.7/lib/python/site-packages/vnpy/trader/engine.py", line 71, in add_engine
engine = engine_class(self, self.event_engine)
File "/Users/apple/Library/Python/3.7/lib/python/site-packages/vnpy/app/data_recorder/engine.py", line 56, in init
self.put_event()
File "/Users/apple/Library/Python/3.7/lib/python/site-packages/vnpy/app/data_recorder/engine.py", line 262, in put_event
data
TypeError: init() takes from 1 to 2 positional arguments but 3 were given

description

Administrator
avatar
加入于:
帖子: 4469
声望: 302
  1. 请检查是否自行修改了代码
  2. 如果没有请卸载后重装最新的2.4.0版本试试
© 2015-2019 上海韦纳软件科技有限公司
备案服务号:沪ICP备18006526号-3

沪公网安备 31011502017034号

【用户协议】
【隐私政策】