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

(vnpy) romendlf@romendlf-Latitude-5280:~/桌面$ python run.py
Traceback (most recent call last):
File "run.py", line 2, in <module>
from vnpy.trader.engine import MainEngine
File "/home/romendlf/anaconda3/envs/vnpy/lib/python3.7/site-packages/vnpy/trader/engine.py", line 42, in <module>
from .setting import SETTINGS
File "/home/romendlf/anaconda3/envs/vnpy/lib/python3.7/site-packages/vnpy/trader/setting.py", line 30, in <module>
"database.timezone": get_localzone().zone,
File "/home/romendlf/anaconda3/envs/vnpy/lib/python3.7/site-packages/tzlocal/unix.py", line 165, in get_localzone
_cache_tz = _get_localzone()
File "/home/romendlf/anaconda3/envs/vnpy/lib/python3.7/site-packages/tzlocal/unix.py", line 90, in _get_localzone
utils.assert_tz_offset(tz)
File "/home/romendlf/anaconda3/envs/vnpy/lib/python3.7/site-packages/tzlocal/utils.py", line 46, in assert_tz_offset
raise ValueError(msg)
ValueError: Timezone offset does not match system offset: 0 != 28800. Please, check your config files.

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

已解决!
sudo vim /etc/timezone
Asia/Shanghai

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

沪公网安备 31011502017034号