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

vnpy2.03@windows环境,手动安装,python run.py后碰到两个情况:

1、tiger的接口报错,如下:

Traceback (most recent call last):
File "run.py", line 12, in <module>
from vnpy.gateway.tiger import TigerGateway
File "C:\Anaconda3\lib\site-packages\vnpy\gateway\tiger__init__.py", line 1, in <module>
from .tiger_gateway import TigerGateway
File "C:\Anaconda3\lib\site-packages\vnpy\gateway\tiger\tiger_gateway.py", line 22, in <module>
from tigeropen.trade.domain.order import ORDER_STATUS
ImportError: cannot import name 'ORDER_STATUS' from 'tigeropen.trade.domain.order' (C:\Anaconda3\lib\site-packages\tiger
open\trade\domain\order.py)

目前注释了run.py中导入和添加接口(第12行和第42行),代码可以运行到主界面。

2、其他报错:
运行后,报错如下:
\conda3\lib\site-packages\deap\tools_hypervolume\pyhv.py:33: ImportWarning: Falling back to the python version of
hypervolume module. Expect this to be very slow.
"module. Expect this to be very slow.", ImportWarning)

似乎是模块不兼容,会导致模块运行速度降低,给出的警示

Administrator
avatar
加入于:
帖子: 1879
声望: 85

老虎接口升级了,最近他们在频繁升级,最新DEV分支已经更新。

那个降低的组件和vn.py内部应用无关,忽略就好。

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

了解,感谢!

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