vn.py官网
开源量化社区
Member
avatar
加入于:
帖子: 30
声望: 2

安装过程中没有问题,完美安装。但是python run.py时提示如下时区错误:
(vnpy2.5) yinxiuqu@debian:~/vnpy2.5/examples/vn_trader$ python run.py
Traceback (most recent call last):
File "run.py", line 4, in <module>
from vnpy.trader.engine import MainEngine
File "/home/yinxiuqu/anaconda3/envs/vnpy2.5/lib/python3.7/site-packages/vnpy/trader/engine.py", line 42, in <module>
from .setting import SETTINGS
File "/home/yinxiuqu/anaconda3/envs/vnpy2.5/lib/python3.7/site-packages/vnpy/trader/setting.py", line 30, in <module>
"database.timezone": get_localzone().zone,
AttributeError: 'backports.zoneinfo.ZoneInfo' object has no attribute 'zone'

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

找到解决办法了:将tzlocal降级到2.1版就完美解决了问题。现在运行非常优秀!

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

沪公网安备 31011502017034号