vnpy / vnpy_sqlite

VeighNa框架的SQLite数据库接口
https://www.vnpy.com
MIT License
7 stars 26 forks source link

AttributeError: module 'vnpy_sqlite' has no attribute 'Database' #7

Closed mbshqqb closed 7 months ago

mbshqqb commented 7 months ago

没有配置要使用的数据服务,请修改全局配置中的datafeed相关内容 Traceback (most recent call last): File "E:\Workspace\Python\vnpy\examples\veighna_trader\run.py", line 101, in main() File "E:\Workspace\Python\vnpy\examples\veighna_trader\run.py", line 85, in main main_engine.add_app(ChartWizardApp) File "E:\Workspace\Python\vnpy\vnpy\trader\engine.py", line 102, in add_app engine: BaseEngine = self.add_engine(app.engine_class) File "E:\Workspace\Python\vnpy\vnpy\trader\engine.py", line 73, in add_engine engine: BaseEngine = engine_class(self, self.event_engine) File "E:\Workspace\Python\vnpy\vnpy_chartwizard\engine.py", line 29, in init self.database: BaseDatabase = get_database() File "E:\Workspace\Python\vnpy\vnpy\trader\database.py", line 158, in get_database database = module.Database() AttributeError: module 'vnpy_sqlite' has no attribute 'Database'

vnpy commented 7 months ago

运行下述命令升级到新版本试试:

pip install vnpy_sqlite --upgrade