原来运行的是no_ui文件夹下面的run.py不行,现在运行vntrader文件夹下面的run.py,介面可以了。
以上问题解决了,是没有启动数据库。但运行python run.py时,出现”启动CTA策略守护父进程“后一直没反应了
(tutorial-env) (base) root@zhou6288:/home/vnpy-2.1.9/examples/no_ui# python run.py
Traceback (most recent call last):
File "run.py", line 8, in <module>
from vnpy.trader.setting import SETTINGS
File "/root/tutorial-env/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'
Python 3.7.6 (default, Jan 8 2020, 19:59:22)