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

description
Traceback (most recent call last):
File "C:\vnstudio\lib\site-packages\vnpy\app\csv_loader\ui\widget.py", line 124, in load_data
datetime_format
File "C:\vnstudio\lib\site-packages\vnpy\app\csv_loader\engine.py", line 138, in load
datetime_format=datetime_format,
File "C:\vnstudio\lib\site-packages\vnpy\app\csv_loader\engine.py", line 72, in load_by_handle
buf = [line.replace("\0", "") for line in f]
File "C:\vnstudio\lib\site-packages\vnpy\app\csv_loader\engine.py", line 72, in <listcomp>
buf = [line.replace("\0", "") for line in f]
UnicodeDecodeError: 'gbk' codec can't decode byte 0xb1 in position 5: illegal multibyte sequence

Administrator
avatar
加入于:
帖子: 4208
声望: 240

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

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

PY 文件有加:# encoding: UTF-8 吗?

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