报错如下:
runfile('D:/Software/vnstudio/Lib/site-packages/load_csv.py', wdir='D:/Software/vnstudio/Lib/site-packages')
Traceback (most recent call last):
File "<ipython-input-3-b10d314c99d6>", line 1, in <module>
runfile('D:/Software/vnstudio/Lib/site-packages/load_csv.py', wdir='D:/Software/vnstudio/Lib/site-packages')
File "D:\Software\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 786, in runfile
execfile(filename, namespace)
File "D:\Software\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 110, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "D:/Software/vnstudio/Lib/site-packages/load_csv.py", line 26, in <module>
datetime_format = "%Y-%m-%d %H:%M:%S")
File "D:\Software\vnstudio\Lib\site-packages\vnpy\app\csv_loader\engine.py", line 142, in load
datetime_format=datetime_format,
File "D:\Software\vnstudio\Lib\site-packages\vnpy\app\csv_loader\engine.py", line 108, in load_by_handle
database_manager.save_bar_data(bars)
File "D:\Software\vnstudio\Lib\site-packages\vnpy\trader\database\database_sql.py", line 374, in save_bar_data
self.class_bar.save_all(ds)
File "D:\Software\vnstudio\Lib\site-packages\vnpy\trader\database\database_sql.py", line 149, in save_all
c).on_conflict_replace().execute()
File "D:\Software\vnstudio\Lib\site-packages\peewee.py", line 1785, in inner
return method(self, database, *args, **kwargs)
File "D:\Software\vnstudio\Lib\site-packages\peewee.py", line 1856, in execute
return self._execute(database)
File "D:\Software\vnstudio\Lib\site-packages\peewee.py", line 2572, in _execute
return super(Insert, self)._execute(database)
File "D:\Software\vnstudio\Lib\site-packages\peewee.py", line 2320, in _execute
cursor = database.execute(self)
File "D:\Software\vnstudio\Lib\site-packages\peewee.py", line 2962, in execute
return self.execute_sql(sql, params, commit=commit)
File "D:\Software\vnstudio\Lib\site-packages\peewee.py", line 2956, in execute_sql
self.commit()
File "D:\Software\vnstudio\Lib\site-packages\peewee.py", line 2732, in exit
reraise(new_type, new_type(*exc_args), traceback)
File "D:\Software\vnstudio\Lib\site-packages\peewee.py", line 183, in reraise
raise value.with_traceback(tb)
File "D:\Software\vnstudio\Lib\site-packages\peewee.py", line 2949, in execute_sql
cursor.execute(sql, params or ())
OperationalError: table dbbardata has no column named open_interest
我要导入的csv文件里有open_interest这一列了,请问这个报错的原因是什么?