VeighNa量化社区
你的开源社区量化交易平台 | vn.py | vnpy
Member
avatar
加入于:
帖子: 27
声望: 0

按照帖子中的代码补全后运行,出现下面错误:

File "C:\Users\AppData\Local\Programs\Python\Python310\lib\site-packages\vnpy\trader\engine.py", line 98, in add_gateway
self.tick_filters[gateway_name] = TickFilter(self.event_engine, gateway_name)
File "C:\Users\AppData\Local\Programs\Python\Python310\lib\site-packages\vnpy\usertools\tickfilter.py", line 58, in init
self.db = get_database()
File "C:\Users\AppData\Local\Programs\Python\Python310\lib\site-packages\vnpy\trader\database.py", line 177, in get_database
database = module.Database()
File "C:\Users\AppData\Local\Programs\Python\Python310\lib\site-packages\vnpy_mysql\mysql_database.py", line 230, in init
self.db.connect()
File "C:\Users\AppData\Local\Programs\Python\Python310\lib\site-packages\peewee.py", line 3259, in connect
raise OperationalError('Connection already opened.')
peewee.OperationalError: Connection already opened.

description

description

description

发给gpt折腾完还是没解决,请教前辈帮忙,感谢!

Member
avatar
加入于:
帖子: 27
声望: 0

已解决~

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

沪公网安备 31011502017034号

【用户协议】
【隐私政策】
【免责条款】