VeighNa量化社区
你的开源社区量化交易平台
Member
avatar
加入于:
帖子: 31
声望: 0

脚本运行vnpy,报错如下,另外,请问如何加载vnpy_tqsdk和vnpy_tushare?

Faile to import cython option pricing model, please rebuild with cython in cmd.
找不到数据服务驱动vnpy_,使用默认的RQData数据服务
Traceback (most recent call last):
  File "D:/Tony/Documents/yunpan/invest/2021/Quant/VNPY_code/run.py", line 54, in <module>
    main()
  File "D:/Tony/Documents/yunpan/invest/2021/Quant/VNPY_code/run.py", line 41, in main
    main_engine.add_app(RpcServiceApp)
  File "D:\Anaconda3\envs\vnpy\lib\site-packages\vnpy\trader\engine.py", line 99, in add_app
    engine = self.add_engine(app.engine_class)
  File "D:\Anaconda3\envs\vnpy\lib\site-packages\vnpy\trader\engine.py", line 74, in add_engine
    engine = engine_class(self, self.event_engine)
  File "D:\Anaconda3\envs\vnpy\lib\site-packages\vnpy\app\rpc_service\engine.py", line 30, in __init__
    self.init_server()
  File "D:\Anaconda3\envs\vnpy\lib\site-packages\vnpy\app\rpc_service\engine.py", line 40, in init_server
    self.server.register(self.main_engine.send_orders)
AttributeError: 'MainEngine' object has no attribute 'send_orders'

description

Administrator
avatar
加入于:
帖子: 4541
声望: 324

请移除对RpcService模块的加载,这里有个bug需要修复

Member
avatar
加入于:
帖子: 31
声望: 0

移除对RpcService模块的加载后,可以正常运行

Member
avatar
加入于:
帖子: 4
声望: 0

我也是遇到一样的问题,2.6版本

Member
avatar
加入于:
帖子: 5005
声望: 301

请参考2楼

Member
avatar
加入于:
帖子: 4
声望: 0

啥时候这bug能修复好啊

Member
avatar
加入于:
帖子: 5005
声望: 301

可参考https://github.com/vnpy/vnpy/pull/3146/files

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

沪公网安备 31011502017034号

【用户协议】
【隐私政策】
【免责条款】