VeighNa量化社区
你的开源社区量化交易平台
Member
avatar
加入于:
帖子: 14
声望: 0

报错如下:
qt.qpa.fonts: Populating font family aliases took 796 ms. Replace uses of missing font family "微软雅黑" with one that exists to avoid this cost.
Traceback (most recent call last):
File "/Users/fenglingling/Downloads/vnpy-master/vnpy/trader/database.py", line 152, in get_database
module: ModuleType = import_module(module_name)
File "/Users/fenglingling/miniconda3/envs/py37_vnpy/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'vnpy_sqlite'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/fenglingling/Downloads/vnpy-master/run.py", line 26, in <module>
main()
File "/Users/fenglingling/Downloads/vnpy-master/run.py", line 16, in main
main_engine.add_app(CtaStrategyApp)
File "/Users/fenglingling/Downloads/vnpy-master/vnpy/trader/engine.py", line 102, in add_app
找不到数据库驱动vnpy_sqlite,使用默认的SQLite数据库
engine: BaseEngine = self.add_engine(app.engine_class)
File "/Users/fenglingling/Downloads/vnpy-master/vnpy/trader/engine.py", line 73, in add_engine
engine: BaseEngine = engine_class(self, self.event_engine)
File "/Users/fenglingling/miniconda3/envs/py37_vnpy/lib/python3.10/site-packages/vnpy_ctastrategy/engine.py", line 97, in init
self.database: BaseDatabase = get_database()
File "/Users/fenglingling/Downloads/vnpy-master/vnpy/trader/database.py", line 155, in get_database
module: ModuleType = import_module("vnpy_sqlite")
File "/Users/fenglingling/miniconda3/envs/py37_vnpy/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'vnpy_sqlite'

进程已结束,退出代码143 (interrupted by signal 15: SIGTERM)

然后版本如下:
tzlocal==4.2
PySide6==6.3.0
pyqtgraph==0.12.4
qdarkstyle==3.1
numpy==1.23.1
pandas==1.5.0
matplotlib==3.5.3
seaborn==0.11.2
ta-lib==0.4.24
deap==1.3.3
pyzmq==23.2.1
plotly==5.10.0
importlib-metadata==4.12.0
tqdm==4.64.1
backports.zoneinfo; python_version < '3.9'

然后python版本是3.10.12

pyqt5==5.15.9

LLM学员
avatar
加入于:
帖子: 1546
声望: 112
pip3 install vnpy_sqlite

提示少什么插件库就对应pip安装即可

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

沪公网安备 31011502017034号

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