VeighNa量化社区
你的开源社区量化交易平台
Member
avatar
加入于:
帖子: 4
声望: 0

数据使用迅投xt,vntrader报错,无法进入,并弹出 触发异常 的窗口
如何处理呢?
现在进不去,改不了datafeed的设置

报错信息,如下:

2024-01-25 15:30:05 --------------------------------------------------
2024-01-25 15:30:05 VeighNa Trader进程启动
2024-01-25 15:30:07 Traceback (most recent call last):
File "C:\veighna_studio\lib\runpy.py", line 196, in _run_module_as_main
2024-01-25 15:30:07 return _run_code(code, main_globals, None,
File "C:\veighna_studio\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "build\bdist.win-amd64\egg\veighna_station\trader.py", line 39, in <module>
2024-01-25 15:30:07 File "build\bdist.win-amd64\egg\veighna_station\trader.py", line 30, in run_trader
File "C:\veighna_studio\lib\site-packages\vnpy\trader\engine.py", line 102, in add_app
engine: BaseEngine = self.add_engine(app.engine_class)
File "C:\veighna_studio\lib\site-packages\vnpy\trader\engine.py", line 73, in add_engine
engine: BaseEngine = engine_class(self, self.event_engine)
File "C:\veighna_studio\lib\site-packages\vnpy_ctabacktester\engine.py", line 50, in init
self.datafeed: BaseDatafeed = get_datafeed()
File "C:\veighna_studio\lib\site-packages\vnpy\trader\datafeed.py", line 56, in get_datafeed
module: ModuleType = import_module(module_name)
File "C:\veighna_studio\lib\importlib__init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
2024-01-25 15:30:07 File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
2024-01-25 15:30:07 File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
2024-01-25 15:30:07 File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "C:\veighna_studio\lib\site-packages\vnpy_xt\
init.py", line 26, in <module>
2024-01-25 15:30:07 from .xt_datafeed import XtDatafeed as Datafeed
File "C:\veighna_studio\lib\site-packages\vnpy_xt\xt_datafeed.py", line 11, in <module>
from xtquant import xtdatacenter as xtdc
File "C:\veighna_studio\lib\site-packages\xtquant\xtdatacenter.py", line 9, in <module>
2024-01-25 15:30:08 from . import datacenter as
dc
ImportError: generic_type: type "IPythonApiClient" is already registered!

Member
avatar
加入于:
帖子: 4870
声望: 292

你的xtquant包获取方式是?
通过启动目录下的.vntrader文件夹下vt_setting.json可以配置数据服务信息

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

xtquant 是从迅投网站下载的。
现在下载了最新的包,现在没问题了,可以进去了
之前的包不是最新的

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

沪公网安备 31011502017034号

【用户协议】
【隐私政策】
【免责条款】