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

Traceback (most recent call last):
File "c:\vnstudio\lib\site-packages\vnstation\cli.py", line 92, in run_trader
main_engine.add_app(app)
File "c:\vnstudio\lib\site-packages\vnpy\trader\engine.py", line 96, in add_app
engine = self.add_engine(app.engine_class)
File "c:\vnstudio\lib\site-packages\vnpy\trader\engine.py", line 71, in add_engine
engine = engine_class(self, self.event_engine)
File "c:\vnstudio\lib\site-packages\vnpy\app\option_master\engine.py", line 75, in init
self.load_setting()
File "c:\vnstudio\lib\site-packages\vnpy\app\option_master\engine.py", line 85, in load_setting
self.setting = load_json(self.setting_filename)
File "c:\vnstudio\lib\site-packages\vnpy\trader\utility.py", line 99, in load_json
data = json.load(f)
File "c:\vnstudio\lib\json__init.py", line 296, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File "c:\vnstudio\lib\json\
init__.py", line 348, in loads
return _default_decoder.decode(s)
File "c:\vnstudio\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "c:\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 1 column 1 (char 0)

Administrator
avatar
加入于:
帖子: 4228
声望: 241

json配置文件坏了,删掉C:\users\administrator.vntrader\vt_setting.json文件,然后重启

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

用Python的交易员 wrote:

json配置文件坏了,删掉C:\users\administrator.vntrader\vt_setting.json文件,然后重启

删掉重启以后还是报错

Administrator
avatar
加入于:
帖子: 4228
声望: 241

新的报错是什么?

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

jiu wrote:

用Python的交易员 wrote:

json配置文件坏了,删掉C:\users\administrator.vntrader\vt_setting.json文件,然后重启

删掉重启以后还是报错

同样的报错

Member
avatar
加入于:
帖子: 49
声望: 3

Debug

Administrator
avatar
加入于:
帖子: 4228
声望: 241

那删掉整个.vntrader目录试试

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