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

windows 平台。之前都没问题,升级至2.08后就打不开了(点击vnstation.exe之后没反应),也没有任何的报错信息。请问该如何排查?哪里可以看到输出日志?

Administrator
avatar
加入于:
帖子: 2568
声望: 109

哈哈哈,你的头像非常不错啊,如果在上海可以找我喝一杯。

请在cmd中运行python -m vnstation,看看启动时有什么报错

Member
avatar
加入于:
帖子: 15
声望: 1

johnnie walker 厚,,,好啊,还参加过最近2次的线下活动~~

错误信息如下:

Traceback (most recent call last):
  File "C:\vnstudio\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\vnstudio\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\vnstudio\lib\site-packages\vnstation\__main__.py", line 4, in <module
>
    cli()
  File "C:\vnstudio\lib\site-packages\click\core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "C:\vnstudio\lib\site-packages\click\core.py", line 717, in main
    rv = self.invoke(ctx)
  File "C:\vnstudio\lib\site-packages\click\core.py", line 1114, in invoke
    return Command.invoke(self, ctx)
  File "C:\vnstudio\lib\site-packages\click\core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "C:\vnstudio\lib\site-packages\click\core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "C:\vnstudio\lib\site-packages\click\decorators.py", line 17, in new_func

    return f(get_current_context(), *args, **kwargs)
  File "C:\vnstudio\lib\site-packages\vnstation\cli.py", line 15, in cli
    run()
  File "C:\vnstudio\lib\site-packages\click\core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "C:\vnstudio\lib\site-packages\click\core.py", line 717, in main
    rv = self.invoke(ctx)
  File "C:\vnstudio\lib\site-packages\click\core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "C:\vnstudio\lib\site-packages\click\core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "C:\vnstudio\lib\site-packages\vnstation\cli.py", line 20, in run
    import vnstation.run
  File "C:\vnstudio\lib\site-packages\vnstation\run.py", line 4, in <module>
    from vnpy.trader.ui import QtGui, create_qapp
  File "C:\vnstudio\lib\site-packages\vnpy\trader\ui\__init__.py", line 10, in <
module>
    from .mainwindow import MainWindow
  File "C:\vnstudio\lib\site-packages\vnpy\trader\ui\mainwindow.py", line 27, in
 <module>
    from .editor import CodeEditor
  File "C:\vnstudio\lib\site-packages\vnpy\trader\ui\editor.py", line 4, in <mod
ule>
    from PyQt5 import QtWidgets, Qsci, QtGui
RuntimeError: the sip module implements API v12.0 to v12.6 but the PyQt5.Qsci mo
dule requires API v12.7

另外,我手动安装了最新的vnpy。运行vnpy\examples\vn_trader\run.py 正常。但是,为何手动安装没有vnstation?

Administrator
avatar
加入于:
帖子: 2568
声望: 109

请卸载VNStudio重装2.0.8版本吧,可能版本太老了,PyQt5的依赖库SIP没法自动升级,手动处理非常麻烦

Member
avatar
加入于:
帖子: 15
声望: 1

好吧!
手动安装的vnpy为何没有vnstation?site-packages里没有vnstation这个module。

Administrator
avatar
加入于:
帖子: 2568
声望: 109

VNStation是属于VNStudio的模块,并不是vn.py框架内的

Member
avatar
加入于:
帖子: 15
声望: 1

VNStudio的模块的source code是不开源的?

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

我这边通过运行 python -m vnstation 之后, 点击启动VN Trader Pro没有反应。发现报错是 ValueError: source code string cannot contain null bytes

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

版本2.0.8

Member
avatar
加入于:
帖子: 15
声望: 1

我的电脑之间将exe识别成了病毒。所以只能手工安装,但是手工安装里没有vnstation。

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