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

Traceback (most recent call last):
File "e:/vnpy207/run.py", line 25, in <module>
main()
File "e:/vnpy207/run.py", line 17, in main
main_engine.add_app(CtaBacktesterApp)
File "e:\vnpy207\vnpy\trader\engine.py", line 88, in add_app
engine = self.add_engine(app.engine_class)
File "e:\vnpy207\vnpy\trader\engine.py", line 63, in add_engine
engine = engine_class(self, self.event_engine)
File "e:\vnpy207\vnpy\app\cta_backtester\engine.py", line 48, in init
self.load_strategy_class()
File "e:\vnpy207\vnpy\app\cta_backtester\engine.py", line 86, in load_strategy_class
self.load_strategy_class_from_folder(path2, "strategies")
File "e:\vnpy207\vnpy\app\cta_backtester\engine.py", line 101, in load_strategy_class_from_folder
self.load_strategy_class_from_module(strategy_module_name)
UnboundLocalError: local variable 'strategy_module_name' referenced before assignment

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

卸载了vnpy studio,然后重装,问题依旧

使用vn trader pro 启动,选择不加载回测模块,启动正常

呜呼,回测功能没法用啦!有办法修复吗?

Administrator
avatar
加入于:
帖子: 3810
声望: 199

请问用的是最新的2.0.7系统嘛?我们查了下无法重现这个bug

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

是的,2.07,从vnpy网站主页安装
问题的引起,是我在回测我的策略,反复卡死,重启,卡死,重启,可能把回测模块搞坏了(好吧,我的策略烂出了境界!)

因为重装没有解决问题,很大的可能是卸载vnpy的时候没有卸载干净,导致重装的回测模块仍无法使用
所以现在的问题就变成了,如何能够卸载干净?

谢谢

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

澄清,重启后能删除干净。再重装,回测模块正常

上个贴误导了,sorry

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