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

昨天用的回测还可以用,今天突然突然就打不开回测,一直报错如下,已经重新卸载安装了还是不行,VNPY版本是vnstudio-2.3.0:
Traceback (most recent call last):
File "C:\vnstudio\lib\site-packages\vnpy\trader\ui\mainwindow.py", line 281, in open_widget
widget = widget_class(self.main_engine, self.event_engine)
File "C:\vnstudio\lib\site-packages\vnpy\app\cta_backtester\ui\widget.py", line 51, in init
self.backtester_engine.init_engine()
File "C:\vnstudio\lib\site-packages\vnpy\app\cta_backtester\engine.py", line 60, in init_engine
self.init_rqdata()
File "C:\vnstudio\lib\site-packages\vnpy\app\cta_backtester\engine.py", line 66, in init_rqdata
result = rqdata_client.init()
File "C:\vnstudio\lib\site-packages\vnpy\trader\rqdata.py", line 63, in init
max_pool_size=1
File "C:\vnstudio\lib\site-packages\rqdatac\client.py", line 225, in init
quota = get_client().execute("user.get_quota")
File "C:\vnstudio\lib\site-packages\rqdatac\decorators.py", line 67, in wrap
return func(args, **kwargs)
File "C:\vnstudio\lib\site-packages\rqdatac\connection_pool.py", line 26, in execute
with self._get_connection() as conn:
File "C:\vnstudio\lib\contextlib.py", line 112, in enter
return next(self.gen)
File "C:\vnstudio\lib\site-packages\rqdatac\connection_pool.py", line 37, in _get_connection
conn = self._ensure_connection()
File "C:\vnstudio\lib\site-packages\rqdatac\connection_pool.py", line 58, in _ensure_connection
return self._new_connection()
File "C:\vnstudio\lib\site-packages\rqdatac\decorators.py", line 67, in wrap
return func(
args, kwargs)
File "C:\vnstudio\lib\site-packages\rqdatac\connection_pool.py", line 62, in _new_connection
s = Connection.sock_factory(self._addr, timeout=self._connect_timeout)
File "C:\vnstudio\lib\site-packages\rqdatac\client.py", line 71, in wrap
s = func(*args,
kwargs)
File "C:\vnstudio\lib\socket.py", line 727, in create_connection
raise err
File "C:\vnstudio\lib\socket.py", line 716, in create_connection
sock.connect(sa)
socket.timeout: timed out

Super Moderator
avatar
加入于:
帖子: 31
声望: 1

您这个问题大概率是网络环境的问题,您可以ping一下看看能否ping通
tcping rqdatad-pro.ricequant.com 16011
tcping下载连接:https://blog.csdn.net/qq_35428201/article/details/81048073
description

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

沪公网安备 31011502017034号