C:\vnpy\examples\VnTrader>python run.py
F:\ProgramData\Anaconda2\lib\site-packages\vnpy-1.8.1-py2.7.egg\vnpy\api\ib__in
it.py:3: RuntimeWarning: to-Python converter for class std::vector<class ibapi
::shared_ptr,class std::allocator<class ibapi::shared_ptr<
class OrderCondition> > > already registered; second conversion method ignored.
from vnib import *
Traceback (most recent call last):
File "run.py", line 29, in
from vnpy.trader.gateway import (femasGateway, xspeedGateway,
File "F:\ProgramData\Anaconda2\lib\site-packages\vnpy-1.8.1-py2.7.egg\vnpy\tra
der\gateway\futuGateway\init.py", line 4, in
from futuGateway import FutuGateway
File "F:\ProgramData\Anaconda2\lib\site-packages\vnpy-1.8.1-py2.7.egg\vnpy\tra
der\gateway\futuGateway\futuGateway.py", line 14, in
import futuquant as ft
File "F:\ProgramData\Anaconda2\lib\site-packages\futuquant\init__.py", line
20, in
from futuquant.quote.open_quote_context import OpenQuoteContext
File "F:\ProgramData\Anaconda2\lib\site-packages\futuquant\quote\open_quote_co
ntext.py", line 11, in
from futuquant.common.open_context_base import OpenContextBase, ContextStatu
s
File "F:\ProgramData\Anaconda2\lib\site-packages\futuquant\common\open_context
_base.py", line 334
def on_activate(self, conn_id, now: datetime):
^
SyntaxError: invalid syntax
环境
Issue类型
三选一:Question 我已经按照步骤安装。但是运行VNTrader目录下的run.py还是打不开VNPY界面。
预期程序行为
本来应该安装好了,直接可以打开界面。
实际程序行为
C:\vnpy\examples\VnTrader>python run.py F:\ProgramData\Anaconda2\lib\site-packages\vnpy-1.8.1-py2.7.egg\vnpy\api\ib__in it.py:3: RuntimeWarning: to-Python converter for class std::vector<class ibapi ::shared_ptr,class std::allocator<class ibapi::shared_ptr<
class OrderCondition> > > already registered; second conversion method ignored.
from vnib import *
Traceback (most recent call last):
File "run.py", line 29, in
from vnpy.trader.gateway import (femasGateway, xspeedGateway,
File "F:\ProgramData\Anaconda2\lib\site-packages\vnpy-1.8.1-py2.7.egg\vnpy\tra
der\gateway\futuGateway\ init.py", line 4, in
from futuGateway import FutuGateway
File "F:\ProgramData\Anaconda2\lib\site-packages\vnpy-1.8.1-py2.7.egg\vnpy\tra
der\gateway\futuGateway\futuGateway.py", line 14, in
import futuquant as ft
File "F:\ProgramData\Anaconda2\lib\site-packages\futuquant\ init__.py", line
20, in
from futuquant.quote.open_quote_context import OpenQuoteContext
File "F:\ProgramData\Anaconda2\lib\site-packages\futuquant\quote\open_quote_co
ntext.py", line 11, in
from futuquant.common.open_context_base import OpenContextBase, ContextStatu
s
File "F:\ProgramData\Anaconda2\lib\site-packages\futuquant\common\open_context
_base.py", line 334
def on_activate(self, conn_id, now: datetime):
^
SyntaxError: invalid syntax
重现步骤
针对Bug类型Issue,请提供具体重现步骤以及报错截图