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

群主和各位大神,你们好:

  1. 我一直用的是2.06版本,突然下午不能正常打开cta模块了,于是直接卸载2.06,下载安装2.07(win10)
  2. 打开2.07 cta模块依然无法正常打开且报错,报错原因一模一样(如下所示),请教下,谢谢
    Traceback (most recent call last):
    File "D:\vnstudio\lib\site-packages\vnpy\trader\ui\mainwindow.py", line 265, in open_widget
    widget = widget_class(self.main_engine, self.event_engine)
    File "D:\vnstudio\lib\site-packages\vnpy\app\cta_strategy\ui\widget.py", line 37, in init
    self.cta_engine.init_engine()
    File "D:\vnstudio\lib\site-packages\vnpy\app\cta_strategy\engine.py", line 109, in init_engine
    self.load_strategy_data()
    File "D:\vnstudio\lib\site-packages\vnpy\app\cta_strategy\engine.py", line 790, in load_strategy_data
    self.strategy_data = load_json(self.data_filename)
    File "D:\vnstudio\lib\site-packages\vnpy\trader\utility.py", line 92, in load_json
    data = json.load(f)
    File "D:\vnstudio\lib\json__init.py", line 296, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
    File "D:\vnstudio\lib\json\
    init__.py", line 348, in loads
    return _default_decoder.decode(s)
    File "D:\vnstudio\lib\json\decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
    File "D:\vnstudio\lib\json\decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
    json.decoder.JSONDecodeError: Expecting value: line 208 column 22 (char 4432)

description

Administrator
avatar
加入于:
帖子: 2976
声望: 133

删了C:\users\administrator.vntrader\cta_strategy_setting.json文件,然后重启。

不是特别熟悉请不要手动修改json文件

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

已解决,群主NB

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