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

直接安装VeighNa Studio.exe和python手动安装都试过了,打开报如下错,在vm虚拟环境中安装,没有用anaconda3,请问如何解决

qt.qpa.plugin: Could not load the Qt platform plugin "windows" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: direct2d, minimal, offscreen, windows.

Administrator
avatar
加入于:
帖子: 4502
声望: 322

这个是图形驱动库缺失导致的问题,可以设置环境变量后基于日志进行排查,以下是windows cmd举例:

set QT_DEBUG_PLUGINS=1
Member
avatar
加入于:
帖子: 3
声望: 0

qt.core.plugin.factoryloader: checking directory path "E:/Python/Python310/lib/site-packages/PySide6/plugins/platforms" ...
qt.core.plugin.factoryloader: looking at "E:/Python/Python310/lib/site-packages/PySide6/plugins/platforms/qdirect2d.dll"
qt.core.plugin.loader: Found metadata in lib E:/Python/Python310/lib/site-packages/PySide6/plugins/platforms/qdirect2d.dll, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"direct2d"
]
},
"archlevel": 0,
"className": "QWindowsDirect2DIntegrationPlugin",
"debug": false,
"version": 393984
}

qt.core.plugin.factoryloader: Got keys from plugin meta data QList("direct2d")
qt.core.plugin.factoryloader: looking at "E:/Python/Python310/lib/site-packages/PySide6/plugins/platforms/qminimal.dll"
qt.core.plugin.loader: Found metadata in lib E:/Python/Python310/lib/site-packages/PySide6/plugins/platforms/qminimal.dll, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"minimal"
]
},
"archlevel": 0,
"className": "QMinimalIntegrationPlugin",
"debug": false,
"version": 393984
}

qt.core.plugin.factoryloader: Got keys from plugin meta data QList("minimal")
qt.core.plugin.factoryloader: looking at "E:/Python/Python310/lib/site-packages/PySide6/plugins/platforms/qoffscreen.dll"
qt.core.plugin.loader: Found metadata in lib E:/Python/Python310/lib/site-packages/PySide6/plugins/platforms/qoffscreen.dll, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"offscreen"
]
},
"archlevel": 0,
"className": "QOffscreenIntegrationPlugin",
"debug": false,
"version": 393984
}

qt.core.plugin.factoryloader: Got keys from plugin meta data QList("offscreen")
qt.core.plugin.factoryloader: looking at "E:/Python/Python310/lib/site-packages/PySide6/plugins/platforms/qwindows.dll"
qt.core.plugin.loader: Found metadata in lib E:/Python/Python310/lib/site-packages/PySide6/plugins/platforms/qwindows.dll, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"windows"
]
},
"archlevel": 0,
"className": "QWindowsIntegrationPlugin",
"debug": false,
"version": 393984
}

qt.core.plugin.factoryloader: Got keys from plugin meta data QList("windows")
qt.core.plugin.factoryloader: checking directory path "E:/Python/Python310/platforms" ...
qt.core.plugin.factoryloader: looking at "E:/Python/Python310/platforms/qdirect2d.dll"
qt.core.plugin.loader: Found metadata in lib E:/Python/Python310/platforms/qdirect2d.dll, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"direct2d"
]
},
"archlevel": 0,
"className": "QWindowsDirect2DIntegrationPlugin",
"debug": false,
"version": 393984
}

qt.core.plugin.factoryloader: Got keys from plugin meta data QList("direct2d")
qt.core.plugin.factoryloader: looking at "E:/Python/Python310/platforms/qminimal.dll"
qt.core.plugin.loader: Found metadata in lib E:/Python/Python310/platforms/qminimal.dll, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"minimal"
]
},
"archlevel": 0,
"className": "QMinimalIntegrationPlugin",
"debug": false,
"version": 393984
}

qt.core.plugin.factoryloader: Got keys from plugin meta data QList("minimal")
qt.core.plugin.factoryloader: looking at "E:/Python/Python310/platforms/qoffscreen.dll"
qt.core.plugin.loader: Found metadata in lib E:/Python/Python310/platforms/qoffscreen.dll, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"offscreen"
]
},
"archlevel": 0,
"className": "QOffscreenIntegrationPlugin",
"debug": false,
"version": 393984
}

qt.core.plugin.factoryloader: Got keys from plugin meta data QList("offscreen")
qt.core.plugin.factoryloader: looking at "E:/Python/Python310/platforms/qwindows.dll"
qt.core.plugin.loader: Found metadata in lib E:/Python/Python310/platforms/qwindows.dll, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"windows"
]
},
"archlevel": 0,
"className": "QWindowsIntegrationPlugin",
"debug": false,
"version": 393984
}

qt.core.plugin.factoryloader: Got keys from plugin meta data QList("windows")
qt.core.library: "E:/Python/Python310/lib/site-packages/PySide6/plugins/platforms/qwindows.dll" cannot load: Cannot load library E:\Python\Python310\lib\site-packages\PySide6\plugins\platforms\qwindows.dll: 找不到指定的程序。
qt.core.plugin.loader: QLibraryPrivate::loadPlugin failed on "E:/Python/Python310/lib/site-packages/PySide6/plugins/platforms/qwindows.dll" : "Cannot load library E:\Python\Python310\lib\site-packages\PySide6\plugins\platforms\qwindows.dll: 找不到指定的程序。"
qt.qpa.plugin: Could not load the Qt platform plugin "windows" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: direct2d, minimal, offscreen, windows.

尝试了一天还是不行,debug日志如上,路径什么都是一样的,路径里也有相关dll,麻烦老师帮忙再看看,想用vnpy

Member
avatar
加入于:
帖子: 1475
声望: 105

E:/Python/Python310/lib/site-packages/PySide6/plugins/platforms/qwindows.dll

检查下这个路径下的qwindows.dll是否存在,另外你用的什么虚拟机?

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

存在,是在机房开的vm,使用的win10,好像是windows原因,windows自动更新后,执行run.py后就可以打开vnpy了。麻烦老师了多谢

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

沪公网安备 31011502017034号

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