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

不知道问题是什么,也不知道如何解决。请指教

Member
avatar
加入于:
帖子: 2117
声望: 140

请在cmd中用python -m vnstation启动,看看cmd是否有任何报错

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

谢谢您的指导!这是运行结果。我的电脑时间不可调,就是系统时间、时区与internet同步无效(同步时间总是不准确或同步失败),手动调整电脑无反应,时区调整会迅速变回来(把windowstime和时区服务关闭了,也不行),把cmos时间调成准确时间后系统时间还是不一样。这个是影响因素吗?
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 829, in
call
return self.main(args, kwargs)
File "C:\vnstudio\lib\site-packages\click\core.py", line 782, in main
rv = self.invoke(ctx)
File "C:\vnstudio\lib\site-packages\click\core.py", line 1236, in invoke
return Command.invoke(self, ctx)
File "C:\vnstudio\lib\site-packages\click\core.py", line 1066, in invoke
return ctx.invoke(self.callback,
ctx.params)
File "C:\vnstudio\lib\site-packages\click\core.py", line 610, in invoke
return callback(
args, kwargs)
File "C:\vnstudio\lib\site-packages\click\decorators.py", line 21, 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 829, in
call
return self.main(args, kwargs)
File "C:\vnstudio\lib\site-packages\click\core.py", line 782, in main
rv = self.invoke(ctx)
File "C:\vnstudio\lib\site-packages\click\core.py", line 1066, in invoke
return ctx.invoke(self.callback,
ctx.params)
File "C:\vnstudio\lib\site-packages\click\core.py", line 610, 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 11, in <module>
from .mainwindow import MainWindow
File "C:\vnstudio\lib\site-packages\vnpy\trader\ui\mainwindow.py", line 14, in <module>
from .widget import (
File "C:\vnstudio\lib\site-packages\vnpy\trader\ui\widget.py", line 19, in <module>
from ..engine import MainEngine
File "C:\vnstudio\lib\site-packages\vnpy\trader\engine.py", line 42, in <module>
from .setting import SETTINGS
File "C:\vnstudio\lib\site-packages\vnpy\trader\setting.py", line 30, in <module>
"database.timezone": get_localzone().zone,
File "C:\vnstudio\lib\site-packages\tzlocal\win32.py", line 93, in get_localzone
_cache_tz = pytz.timezone(get_localzone_name())
File "C:\vnstudio\lib\site-packages\tzlocal\win32.py", line 84, in get_localzone_name
raise pytz.UnknownTimeZoneError('Can not find timezone ' + tzkeyname)
pytz.exceptions.UnknownTimeZoneError: 'Can not find timezone '

Member
avatar
加入于:
帖子: 2117
声望: 140

可参考https://www.vnpy.com/forum/topic/4061-xiao-bai-qiu-zhu-:win10huan-jing-shou-ci-an-zhuang-vnpy-2-1-4-zhuo-mian-shuang-ji-tu-biao-mei-you-xiang-ying?page=1#pid14614

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

谢谢您的热心帮忙!已解决,随便选一个时区就行了

Member
avatar
加入于:
帖子: 2117
声望: 140

建议还是选本地时区吧,vnpy从2.1.3开始数据就都处理成带全球时间戳的了

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

好的。再次感谢!

Member
avatar
加入于:
帖子: 73
声望: 4

xiaohe wrote:

请在cmd中用python -m vnstation启动,看看cmd是否有任何报错
vnstation 更新遇到相同情况,上述方法,显示没有vnstation模块;系统环境变量D:\vnstudio\Scripts,D:\vnstudio\这儿也没问题

Member
avatar
加入于:
帖子: 2117
声望: 140

可以卸载重装试一下

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

我的也是,2.1.6点升级之后,有个报错,没在成功,然后就打不开软件了。
请在cmd中用python -m vnstation启动,显示没有vnstation模块;

Administrator
avatar
加入于:
帖子: 4661
声望: 266

请卸载VN Studio之后重新安装新版本即可

Member
avatar
加入于:
帖子: 73
声望: 4

description
更新后又无法启动了,请教下是不是又得重新安装了?

Administrator
avatar
加入于:
帖子: 4661
声望: 266

是的,PyQt自动安装失败了,有时是网络问题,有时是360之类的软件作梗

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

显示 No module named vnstation怎么办

Member
avatar
加入于:
帖子: 323
声望: 13

Bambi wrote:

显示 No module named vnstation怎么办

请参考11楼

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

沪公网安备 31011502017034号