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

15:06:52 数据下载失败,触发异常:
Traceback (most recent call last):
File "C:\vnstudio\lib\site-packages\peewee.py", line 3005, in execute_sql
cursor.execute(sql, params or ())
sqlite3.OperationalError: table dbbardata has no column named open_interest

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\vnstudio\lib\site-packages\vnpy\app\cta_backtester\engine.py", line 384, in run_downloading
database_manager.save_bar_data(data)
File "C:\vnstudio\lib\site-packages\vnpy\trader\database\database_sql.py", line 374, in save_bar_data
self.class_bar.save_all(ds)
File "C:\vnstudio\lib\site-packages\vnpy\trader\database\database_sql.py", line 149, in save_all
c).on_conflict_replace().execute()
File "C:\vnstudio\lib\site-packages\peewee.py", line 1812, in inner
return method(self, database, args, **kwargs)
File "C:\vnstudio\lib\site-packages\peewee.py", line 1883, in execute
return self._execute(database)
File "C:\vnstudio\lib\site-packages\peewee.py", line 2623, in _execute
return super(Insert, self)._execute(database)
File "C:\vnstudio\lib\site-packages\peewee.py", line 2360, in _execute
cursor = database.execute(self)
File "C:\vnstudio\lib\site-packages\peewee.py", line 3018, in execute
return self.execute_sql(sql, params, commit=commit)
File "C:\vnstudio\lib\site-packages\peewee.py", line 3012, in execute_sql
self.commit()
File "C:\vnstudio\lib\site-packages\peewee.py", line 2783, in exit
reraise(new_type, new_type(
exc_args), traceback)
File "C:\vnstudio\lib\site-packages\peewee.py", line 183, in reraise
raise value.with_traceback(tb)
File "C:\vnstudio\lib\site-packages\peewee.py", line 3005, in execute_sql
cursor.execute(sql, params or ())
peewee.OperationalError: table dbbardata has no column named open_interest

如题,在CTA回测模块里下载历史数据的时候报错 下载的是IF88合约

已经升级到最新2.0.8版本

Administrator
avatar
加入于:
帖子: 3913
声望: 208

数据库版本升级了,请删掉C:\users\administrator.vntrader文件夹后,重启再下数据吧

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

已经解决了,多谢大神。

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