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

Traceback (most recent call last):
File "C:\veighna_studio\lib\site-packages\vnpy_datamanager\ui\widget.py", line 226, in import_data
start, end, count = self.engine.import_data_from_csv(
File "C:\veighna_studio\lib\site-packages\vnpy_datamanager\engine.py", line 59, in import_data_from_csv
dt: datetime = datetime.strptime(item[datetime_head], datetime_format)
File "C:\veighna_studio\lib_strptime.py", line 568, in _strptime_datetime
tt, fraction, gmtoff_fraction = _strptime(data_string, format)
File "C:\veighna_studio\lib_strptime.py", line 349, in _strptime
raise ValueError("time data %r does not match format %r" %
ValueError: time data '' does not match format '%Y/%m/%d'

Member
avatar
加入于:
帖子: 19
声望: 1

Traceback (most recent call last):
File "C:\veighna_studio\lib\site-packages\vnpy_datamanager\ui\widget.py", line 226, in import_data
start, end, count = self.engine.import_data_from_csv(
File "C:\veighna_studio\lib\site-packages\vnpy_datamanager\engine.py", line 59, in import_data_from_csv
dt: datetime = datetime.strptime(item[datetime_head], datetime_format)
File "C:\veighna_studio\lib_strptime.py", line 568, in _strptime_datetime
tt, fraction, gmtoff_fraction = _strptime(data_string, format)
File "C:\veighna_studio\lib_strptime.py", line 349, in _strptime
raise ValueError("time data %r does not match format %r" %
ValueError: time data ' 2019/12/31' does not match format '%Y/%m/%d '

Member
avatar
加入于:
帖子: 19
声望: 1

好吧,终于导进去了,日期格式不对,如果2022/02/03的话,应该不要中间的0,应该是2022/2/3

Member
avatar
加入于:
帖子: 737
声望: 39

感谢分享

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

沪公网安备 31011502017034号

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