还有这个:
Traceback (most recent call last):
File "c:\Users\Think\Documents\GitHub\learning_for_stock_testing_and_trading_system\vnpy-2.0.9\vnpy\app\cta_strategy\strategies\Testing.py", line 1, in <module>
from vnpy.app.cta_strategy import (
File "C:\ProgramData\VNConda\lib\site-packages\vnpy\app\cta_strategy__init.py", line 9, in <module>
from .engine import CtaEngine
File "C:\ProgramData\VNConda\lib\site-packages\vnpy\app\cta_strategy\engine.py", line 27, in <module>
from vnpy.trader.database import DbTickData, DbBarData
File "C:\ProgramData\VNConda\lib\site-packages\vnpy\trader\database.py", line 234, in <module>
DB.create_tables([DbBarData, DbTickData])
File "C:\ProgramData\VNConda\lib\site-packages\peewee.py", line 2871, in create_tables
model.create_table(options)
File "C:\ProgramData\VNConda\lib\site-packages\peewee.py", line 5846, in create_table
cls._schema.create_all(safe, options)
File "C:\ProgramData\VNConda\lib\site-packages\peewee.py", line 5072, in create_all
self.create_indexes(safe=safe)
File "C:\ProgramData\VNConda\lib\site-packages\peewee.py", line 4986, in create_indexes
self.database.execute(query)
File "C:\ProgramData\VNConda\lib\site-packages\peewee.py", line 2727, in execute
return self.execute_sql(sql, params, commit=commit)
File "C:\ProgramData\VNConda\lib\site-packages\peewee.py", line 2721, in execute_sql
self.commit()
File "C:\ProgramData\VNConda\lib\site-packages\peewee.py", line 2512, in exit__
reraise(new_type, new_type(*exc_args), traceback)
File "C:\ProgramData\VNConda\lib\site-packages\peewee.py", line 186, in reraise
raise value.with_traceback(tb)
File "C:\ProgramData\VNConda\lib\site-packages\peewee.py", line 2714, in execute_sql
cursor.execute(sql, params or ())
peewee.IntegrityError: UNIQUE constraint failed: index 'dbbardata_vt_symbol_interval_datetime'