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

Hi,我是新人,打开CTA策略回测模块之后报错

2023-03-07 21:32:10 VeighNa Trader进程启动
2023-03-07 21:32:11 Traceback (most recent call last):
File "D:\veighna_studio\lib\site-packages\vnpy\trader\datafeed.py", line 50, in get_datafeed
2023-03-07 21:32:11 module: ModuleType = import_module(module_name)
File "D:\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
2023-03-07 21:32:11 File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
2023-03-07 21:32:11 File "<frozen importlib._bootstrap>", line 1004, in _find_and_loadunlocked
2023-03-07 21:32:11 ModuleNotFoundError: No module named 'vnpy
'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\veighna_studio\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "D:\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>
File "build\bdist.win-amd64\egg\veighna_station\trader.py", line 30, in run_trader
2023-03-07 21:32:11 File "D:\veighna_studio\lib\site-packages\vnpy\trader\engine.py", line 102, in add_app
engine: BaseEngine = self.add_engine(app.engine_class)
File "D:\veighna_studio\lib\site-packages\vnpy\trader\engine.py", line 73, in add_engine
engine: BaseEngine = engine_class(self, self.event_engine)
File "D:\veighna_studio\lib\site-packages\vnpy_ctabacktester\engine.py", line 50, in init
self.datafeed: BaseDatafeed = get_datafeed()
File "D:\veighna_studio\lib\site-packages\vnpy\trader\datafeed.py", line 52, in get_datafeed
print(f"\u627e\u4e0d\u5230\u6570\u636e\u670d\u52a1\u9a71\u52a8{module_name}\uff0c\u4f7f\u7528\u9ed8\u8ba4\u7684RQData\u6570\u636e\u670d\u52a1")
File "D:\veighna_studio\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode characters in position 0-8: character maps to <undefined>

Member
avatar
加入于:
帖子: 1464
声望: 105

你的veighna_studio安装似乎有点问题,建议卸载后重装下,注意安装时关闭360之类的杀毒软件(安装完后再启动即可)

Member
avatar
加入于:
帖子: 4666
声望: 285

可以看下你系统的非Unicode程序的语言是否设成了中文,如果没有的话,可以设置成中文以后再试试看

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

沪公网安备 31011502017034号

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