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

Traceback (most recent call last):
File "C:\veighna_studio\lib\site-packages\vnpy_datamanager\ui\widget.py", line 216, in import_data
start, end, count = self.engine.import_data_from_csv(
File "C:\veighna_studio\lib\site-packages\vnpy_datamanager\engine.py", line 48, in import_data_from_csv
buf: list = [line.replace("\0", "") for line in f]
File "C:\veighna_studio\lib\site-packages\vnpy_datamanager\engine.py", line 48, in <listcomp>
buf: list = [line.replace("\0", "") for line in f]
UnicodeDecodeError: 'gbk' codec can't decode byte 0xbf in position 2: illegal multibyte sequence

我已经提前将csv文件的表头都改成如下了:
id datetime open high low close turnover volume open_interest

Member
avatar
加入于:
帖子: 4882
声望: 293

检查下你的csv文件,编码格式是否为GBK

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

沪公网安备 31011502017034号

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