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

系统配置为1核CPU,1G内存,已根据git上的wiki进行了配置。
执行python run.py后,系统报如下错误:
root@iZj6c84rhxwhgy9q3ro7ixZ:~/vnpy/examples/VnTrader# python run.py
Traceback (most recent call last):
File "run.py", line 28, in <module>
from vnpy.trader.gateway import (ctpGateway, ibGateway, huobiGateway)
File "/root/anaconda2/lib/python2.7/site-packages/vnpy-1.9.2-py2.7.egg/vnpy/trader/gateway/huobiGateway/init.py", line 5, in <module>
from .huobiGateway import HuobiGateway
File "/root/anaconda2/lib/python2.7/site-packages/vnpy-1.9.2-py2.7.egg/vnpy/trader/gateway/huobiGateway/huobiGateway.py", line 19, in <module>
from vnpy.api.rest import Request, RestClient
File "/root/anaconda2/lib/python2.7/site-packages/vnpy-1.9.2-py2.7.egg/vnpy/api/rest/init.py", line 1, in <module>
from .RestClient import Request, RequestStatus, RestClient
File "/root/anaconda2/lib/python2.7/site-packages/vnpy-1.9.2-py2.7.egg/vnpy/api/rest/RestClient.py", line 12, in <module>
from typing import Any, Callable, Optional
ImportError: No module named typing

Administrator
avatar
加入于:
帖子: 4122
声望: 229

pip install typing,少了这个库

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

楼主你好!不知道你问题解决了没有??
想问下根据git上的教程将新版本配置在阿里云上会不会有很多坑啊?

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