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

Traceback (most recent call last):
File "e:\vnstudio\lib\site-packages\peewee.py", line 3144, in execute_sql
cursor.execute(sql, params or ())
sqlite3.OperationalError: table dbtickdata has no column named turnover

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "e:\vnstudio\lib\site-packages\vnpy_datarecorder\ui\widget.py", line 157, in process_exception_event
raise exc_info[1].with_traceback(exc_info[2])
File "e:\vnstudio\lib\site-packages\vnpy_datarecorder\engine.py", line 84, in run
self.database.save_tick_data(data)
File "e:\vnstudio\lib\site-packages\vnpy_sqlite\sqlite_database.py", line 208, in save_tick_data
DbTickData.insert_many(c).on_conflict_replace().execute()
File "e:\vnstudio\lib\site-packages\peewee.py", line 1907, in inner
return method(self, database, args, **kwargs)
File "e:\vnstudio\lib\site-packages\peewee.py", line 1978, in execute
return self._execute(database)
File "e:\vnstudio\lib\site-packages\peewee.py", line 2745, in _execute
return super(Insert, self)._execute(database)
File "e:\vnstudio\lib\site-packages\peewee.py", line 2474, in _execute
cursor = database.execute(self)
File "e:\vnstudio\lib\site-packages\peewee.py", line 3157, in execute
return self.execute_sql(sql, params, commit=commit)
File "e:\vnstudio\lib\site-packages\peewee.py", line 3151, in execute_sql
self.commit()
File "e:\vnstudio\lib\site-packages\peewee.py", line 2917, in exit
reraise(new_type, new_type(exc_value,
exc_args), traceback)
File "e:\vnstudio\lib\site-packages\peewee.py", line 190, in reraise
raise value.with_traceback(tb)
File "e:\vnstudio\lib\site-packages\peewee.py", line 3144, in execute_sql
cursor.execute(sql, params or ())
peewee.OperationalError: table dbtickdata has no column named turnover

description

mysql能正常连接, 手动创建了新的空的数据库

Administrator
avatar
加入于:
帖子: 129
声望: 14

数据库名称没有配置好,系统默认使用了sqlite,sqlite应该还是老版本的,没有turnover字段,所以报错了

Administrator
avatar
加入于:
帖子: 4490
声望: 302

请参考vnpy-community公众号中的2.6.0的版本发布公告进行操作

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

沪公网安备 31011502017034号