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

求助。。。
vnstation最近vnpy2.0.10更新,在打开CTA回测模块,初始化rqdata时:

Traceback (most recent call last):
  File "D:\vnstudio\lib\site-packages\vnstation\cli.py", line 92, in run_trader
    main_engine.add_app(app)
  File "D:\vnstudio\lib\site-packages\vnpy\trader\engine.py", line 96, in add_app
    engine = self.add_engine(app.engine_class)
  File "D:\vnstudio\lib\site-packages\vnpy\trader\engine.py", line 71, in add_engine
    engine = engine_class(self, self.event_engine)
  File "D:\vnstudio\lib\site-packages\vnpy\app\chart_wizard\engine.py", line 24, in __init__
    rqdata_client.init()
  File "D:\vnstudio\lib\site-packages\vnpy\trader\rqdata.py", line 61, in init
    df = rqdata_all_instruments()
  File "D:\vnstudio\lib\site-packages\rqdatac\decorators.py", line 131, in wrap
    return func(*args, **kwargs)
  File "D:\vnstudio\lib\site-packages\rqdatac\services\basic.py", line 329, in all_instruments
    ins_ret = filter(cond, _all_instruments_list(market))
  File "D:\vnstudio\lib\site-packages\rqdatac\decorators.py", line 111, in wrapper
    value = user_function(*args, **kwargs)
  File "D:\vnstudio\lib\site-packages\rqdatac\services\basic.py", line 108, in _all_instruments_list
    return [Instrument(i) for i in get_client().execute("all_instruments", market=market)]
TypeError: 'NoneType' object is not iterable
Member
avatar
加入于:
帖子: 18
声望: 2

过了一会自己又好了。。。不知道什么原因

Administrator
avatar
加入于:
帖子: 3840
声望: 202

请在cmd中运行命令

pip install rqdatac --upgrade

升级RQData到最新版即可

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