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

主页上下载了vnstudio安装程序,安装很顺利,但vnstation点击后一点反映也没有,打不开啊

Member
avatar
加入于:
帖子: 42
声望: 2

32位系统?

Administrator
avatar
加入于:
帖子: 1441
声望: 63
  1. 确保其他Python已经卸载干净
  2. 重新安装后,cmd中运行python看看是否能启动
Member
avatar
加入于:
帖子: 17
声望: 0

用Python的交易员 wrote:

  1. 确保其他Python已经卸载干净
  2. 重新安装后,cmd中运行python看看是否能启动

cmd中运行python,显示版本3.7.1

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

lonecity wrote:

32位系统?
64位

Administrator
avatar
加入于:
帖子: 1441
声望: 63

那么在cmd中运行 python -m vnstation,看看有什么输出信息

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

用Python的交易员 wrote:

那么在cmd中运行 python -m vnstation,看看有什么输出信息

C:\Users\Administrator>python -m vnstation
Traceback (most recent call last):
File "D:\VNstudio\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "D:\VNstudio\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "D:\VNstudio\lib\site-packages\vnstation__main.py", line 4, in <module>
cli()
File "D:\VNstudio\lib\site-packages\click\core.py", line 764, in
call
return self.main(args, kwargs)
File "D:\VNstudio\lib\site-packages\click\core.py", line 717, in main
rv = self.invoke(ctx)
File "D:\VNstudio\lib\site-packages\click\core.py", line 1114, in invoke
return Command.invoke(self, ctx)
File "D:\VNstudio\lib\site-packages\click\core.py", line 956, in invoke
return ctx.invoke(self.callback,
ctx.params)
File "D:\VNstudio\lib\site-packages\click\core.py", line 555, in invoke
return callback(
args, kwargs)
File "D:\VNstudio\lib\site-packages\click\decorators.py", line 17, in new_func
return f(get_current_context(), *args,
kwargs)
File "D:\VNstudio\lib\site-packages\vnstation\cli.py", line 15, in cli
run()
File "D:\VNstudio\lib\site-packages\click\core.py", line 764, in
call
return self.main(args, kwargs)
File "D:\VNstudio\lib\site-packages\click\core.py", line 717, in main
rv = self.invoke(ctx)
File "D:\VNstudio\lib\site-packages\click\core.py", line 956, in invoke
return ctx.invoke(self.callback,
ctx.params)
File "D:\VNstudio\lib\site-packages\click\core.py", line 555, in invoke
return callback(
args, **kwargs)
File "D:\VNstudio\lib\site-packages\vnstation\cli.py", line 20, in run
import vnstation.run
File "D:\VNstudio\lib\site-packages\vnstation\run.py", line 3, in <module>
from vnpy.trader.ui import QtGui, create_qapp
File "D:\VNstudio\lib\site-packages\vnpy\trader\ui\
init.py", line 9, in <module>
from .mainwindow import MainWindow
File "D:\VNstudio\lib\site-packages\vnpy\trader\ui\mainwindow.py", line 13, in <module>
from .widget import (
File "D:\VNstudio\lib\site-packages\vnpy\trader\ui\widget.py", line 14, in <module>
from ..engine import MainEngine
File "D:\VNstudio\lib\site-packages\vnpy\trader\engine.py", line 32, in <module>
from .setting import SETTINGS
File "D:\VNstudio\lib\site-packages\vnpy\trader\setting.py", line 39, in <module>
SETTINGS.update(load_json(SETTING_FILENAME))
File "D:\VNstudio\lib\site-packages\vnpy\trader\utility.py", line 88, 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 353, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Expecting ',' delimiter: line 12 column 5 (char 262)

Administrator
avatar
加入于:
帖子: 1441
声望: 63

这是因为版本号对应的json文件下载失败导致的,你的网络到vn.py网站的连接是否畅通呢?试试用浏览器打开网站论坛?

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

用Python的交易员 wrote:

这是因为版本号对应的json文件下载失败导致的,你的网络到vn.py网站的连接是否畅通呢?试试用浏览器打开网站论坛?
打开网站没问题

Administrator
avatar
加入于:
帖子: 1441
声望: 63

请删掉你的用户目录下的.vnstation和.vntrader目录再试试把

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

用Python的交易员 wrote:

请删掉你的用户目录下的.vnstation和.vntrader目录再试试把

GOOD,成功,万分感谢

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