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>