vn.py官网
开源量化社区
Member
avatar
加入于:
帖子: 12
声望: 0

Traceback (most recent call last):
File "c:\vnstudio\lib\site-packages\vnpy\app\data_recorder\ui\widget.py", line 155, in process_exception_event
raise exc_info[1].with_traceback(exc_info[2])
File "c:\vnstudio\lib\site-packages\vnpy\app\data_recorder\engine.py", line 80, in run
database_manager.save_tick_data(data)
File "c:\vnstudio\lib\site-packages\vnpy\database\sqlite\sqlite_database.py", line 203, in save_tick_data
DbTickData.insert_many(c).on_conflict_replace().execute()
File "c:\vnstudio\lib\site-packages\peewee.py", line 1907, in inner
return method(self, database, *args, **kwargs)
File "c:\vnstudio\lib\site-packages\peewee.py", line 1978, in execute
return self._execute(database)
File "c:\vnstudio\lib\site-packages\peewee.py", line 2745, in _execute
return super(Insert, self)._execute(database)
File "c:\vnstudio\lib\site-packages\peewee.py", line 2474, in _execute
cursor = database.execute(self)
File "c:\vnstudio\lib\site-packages\peewee.py", line 3156, in execute
sql, params = ctx.sql(query).query()
File "c:\vnstudio\lib\site-packages\peewee.py", line 613, in sql
return obj.sql(self)
File "c:\vnstudio\lib\site-packages\peewee.py", line 2730, in sql
self._generate_insert(self._insert, ctx)
File "c:\vnstudio\lib\site-packages\peewee.py", line 2610, in _generate_insert
column = getattr(self.table, column)
AttributeError: type object 'DbTickData' has no attribute 'localtime'

Member
avatar
加入于:
帖子: 3033
声望: 174

请注释掉关于localtime的代码在试试看

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

沪公网安备 31011502017034号